This file contains 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
{ | |
"[clojure]": { | |
"editor.autoClosingBrackets": "always", | |
"editor.autoClosingOvertype": "always", | |
"editor.formatOnPaste": true, | |
"editor.defaultFormatter": "betterthantomorrow.calva" | |
}, | |
"calva.prettyPrintingOptions": { | |
"enabled": true, | |
"width": 120, |
This file contains 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
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
import time | |
import notify2 | |
import os | |
driver = webdriver.Chrome() | |
notify2.init("Python Notification") | |
while True: |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>nlimit</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>launchctl</string> | |
<string>limit</string> |
This file contains 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
#!/bin/bash | |
sshuttle -r root@X.X.X.X -x X.X.X.X 0/0 -vv --ssh-cmd 'ssh -i id_rsa' |
$ tree
.
├── docker-compose.web1.yml
├── docker-compose.web2.yml
├── docker-compose.yml
└── traefik.toml
Coding guidelines:
- https://github.com/bahlo/go-styleguide
- https://github.com/Pungyeon/clean-go-article
- http://devs.cloudimmunity.com/gotchas-and-common-mistakes-in-go-golang/
- https://talks.golang.org/2014/names.slide
- https://github.com/uber-go/guide/blob/master/style.md
- https://github.com/golang/go/wiki/CodeReviewComments
More resources :
This file contains 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
alias dockercleancontainers="docker ps -aq | xargs docker rm" | |
alias dockercleanimages="docker images -aq -f dangling=true | xargs docker rmi" | |
alias dockerclean="dockercleancontainers && dockercleanimages" | |
alias docker-killall="docker ps -q | xargs docker kill" | |
# runs docker exec in the latest container | |
function docker-exec-last { | |
docker exec -ti $( docker ps -a -q -l) /bin/bash | |
} |
This file contains 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
import atexit | |
import io | |
import sys | |
_INPUT_LINES = sys.stdin.read().splitlines() | |
input = iter(_INPUT_LINES).__next__ | |
_OUTPUT_BUFFER = io.StringIO() | |
sys.stdout = _OUTPUT_BUFFER | |
This file contains 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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=mydocsmaller.pdf mydoc.pdf |
NewerOlder