Skip to content

Instantly share code, notes, and snippets.

Avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
View pipenv.md
pyenv virtualenv 3.6.2 3.6.2-ProjectNameHere
pyenv local 3.6.2-ProjectNameHere
echo ".python-version" >> .gitignore
pipenv --python 3.6.2
pipenv shell
@minhoryang
minhoryang / screenshot.sh
Last active Jun 1, 2018 — forked from raphael-riel/screenshot.sh
Screenshot of X11 Window.
View screenshot.sh
#!/bin/bash
import -window $(xwininfo | grep -Po 'Window id: .*? ' | grep -Po '0x.* ') screenshot.jpg
View .chrome-remote-desktop-session
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export DefaultIMModule=fcitx
exec lxsession -s Lubuntu -e LXDE
View gpg.conf
auto-key-locate keyserver
keyserver hkps://hkps.pool.sks-keyservers.net
keyserver-options no-honor-keyserver-url
keyserver-options ca-cert-file=/etc/sks-keyservers.netCA.pem
keyserver-options no-honor-keyserver-url
keyserver-options debug
keyserver-options verbose
personal-cipher-preferences AES256 AES192 AES CAST5
personal-digest-preferences SHA512 SHA384 SHA256 SHA224
View gist:7642c5cf1dd438ba2e2d2a19098fbb78
cat << "-----END PGP SIGNATURE-----" > /dev/null
-----BEGIN PGP SIGNATURE-----
...
-----END PGP SIGNATURE-----
@minhoryang
minhoryang / cloudSettings
Last active Nov 6, 2018 — forked from AilisObrian/cloudSettings
Visual Studio Code Sync Settings Gist
View cloudSettings
{"lastUpload":"2017-08-10T11:51:57.295Z","extensionVersion":"v2.8.2"}
@minhoryang
minhoryang / build_dm_awsec2.sh
Last active Aug 12, 2017 — forked from pahud/build_dm_awsec2.sh
build your docker-machine on AWS EC2 instance
View build_dm_awsec2.sh
#!/bin/bash
machine=$(python -c "import uuid;print(uuid.uuid4())")
# NEEDED: AmazonEC2FullAccess, AmazonEC2SpotFleetRole
AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id)
AWS_DEFAULT_REGION=$(aws configure get region)
AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key)
VPC=$(aws ec2 describe-vpcs | jq -r '.Vpcs[0].VpcId')
View wtf.py
import sys
def func_name(_):
return sys._getframe(1).f_code.co_name
def line_number(_):
return str(sys._getframe(1).f_lineno)
def file_name(_):
return sys._getframe(1).f_code.co_filename
@minhoryang
minhoryang / haproxy.cfg
Created Jul 25, 2017 — forked from jpawlowski/haproxy.cfg
Geeking out with HAproxy on pfSense: The ultimate port 443 TLS/SSL router | http://loredo.me/post/116633549315/geeking-out-with-haproxy-on-pfsense-the-ultimate
View haproxy.cfg
global
maxconn 2000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
# Modern browser compatibility only as mentioned here: