This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openai-whisper==20230314 | |
spacy==3.5.3 | |
transformers==4.30.2 | |
nltk==3.8.1 | |
sentencepiece-0.1.99 | |
gensim==3.8.3 | |
sumy==0.11.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspired by Ruby's mailcatcher but simple drop to run version in Python | |
# check logs for email content | |
import asyncore, email | |
from smtpd import SMTPServer | |
class MyServer(SMTPServer): | |
def process_message(self, peer, mailfrom, *args, **kwargs): | |
print('====') | |
print('= ') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_read_timeout 600; | |
proxy_connect_timeout 600; | |
proxy_send_timeout 600; | |
server { | |
listen 80; | |
server_name | |
"~^(?P<app_name>[\w+\-]+)-(?P<app_port>\d{4})\.local$" | |
"~^(?P<app_name>[\w+\-]+)-(?P<app_port>\d{4})\.dev\.local$"; | |
root /Volumes/Work/$app_name/public; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tayasui Sketches - paint replacement | |
Rectangle - windows layout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
apt-get update | |
apt-get install bash-completion ufw curl git docker.io postfix psmisc fail2ban gnupg logcheck rsync python3-pip libffi-dev | |
echo '' > /etc/motd | |
timedatectl set-timezone Asia/Tokyo | |
pip3 install docker-compose | |
sed -i 's/#Storage.*/Storage=persistent/' /etc/systemd/journald.conf | |
sed -i 's/#SystemMaxUse=.*/SystemMaxUse=2G/' /etc/systemd/journald.conf | |
killall -USR1 systemd-journald | |
cd /usr/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export MANPAGER="less -X" # Don't clear the screen after quitting a manual page | |
export PYTHONIOENCODING=utf-8 | |
export PYTHONUNBUFFERED=1 | |
export PYTHONWARNINGS="ignore:Deprecation" | |
export JAVA_OPTS="-Xms32m -Xmx256m" | |
export JVM_OPTS=$JAVA_OPTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# auto use virtual env | |
export PATH="$HOME/.virtualenvs/${PWD##*/}/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_name "~^(?P<app_group>\w+)?(?:\.)?(?P<app_name>\w+)-(?P<app_port>\d{4})\.devel$"; | |
root /work/$app_name/public; | |
location / { | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:$app_port; | |
proxy_redirect http://127.0.0.1:$app_port /; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"initial_path":"%2Fpython%7E2.7%2Flibrary%2Fstringio","layout":"_native-scrollbars","dark":"1","hideDisabled":"1","docs":"apache_http_server/bootstrap~3/coffeescript~1/css/django~2.0/django~1.11/docker~17/dom/dom_events/go/html/http/javascript/jquery/jqueryui/jsdoc/less/markdown/moment/nginx/node~8_lts/node~6_lts/php/postgresql~9.6/python~3.6/python~2.7/redis/ruby~2.4/underscore","manualUpdate":"1","tips":"KeyNav"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machinectl pull-tar https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.tar.gz bionic | |
systemd-nspawn -M bionic | |
# Centos | |
machinectl pull-raw --verify=no https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.raw.tar.gz centos7 | |
systemd-nspawn -M centos7 |
NewerOlder