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
| # edit file: /etc/ssh/sshd_config | |
| ChallengeResponseAuthentication no | |
| PasswordAuthentication no | |
| UsePAM no | |
| PermitRootLogin no |
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
| StrictHostKeyChecking no | |
| HashKnownHosts yes | |
| TCPKeepAlive yes | |
| ServerAliveInterval 20 | |
| GSSAPIAuthentication no | |
| GSSAPIDelegateCredentials no | |
| Host my |
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
| (Thread/setDefaultUncaughtExceptionHandler | |
| (reify Thread$UncaughtExceptionHandler | |
| (uncaughtException [_ thread ex] | |
| (track-error :thread-exception ex "Uncaught exception on" (.getName thread))))) |
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
| (fn lazy-search | |
| "elegant as fuck, http://www.4clojure.com/problem/108" | |
| [& x] | |
| (let [[[b & e] & c] (sort-by first x)] | |
| (if (apply = (map first x)) | |
| b | |
| (apply lazy-search (conj c e))))) |
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
| # >/var/log/lastlog | |
| # >/var/log/wtmp | |
| # >/var/log/btmp |
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
| http://apple.stackexchange.com/questions/22785/how-do-i-disable-the-command-control-d-word-definition-keyboard-shortcut-in-os-x | |
| defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>' |
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
| jstatd -J-Djava.security.policy=/work/jstatd.all.policy -J-Djava.rmi.server.logCalls=true -J-Djava.rmi.server.hostname=IP_ADDR | |
| grant codebase "file:/work/jdk1.8.0_45/lib/tools.jar" { permission java.security.AllPermission; }; |
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
| gitlab_rails['smtp_enable'] = true | |
| gitlab_rails['smtp_address'] = "email-smtp.eu-west-1.amazonaws.com" #important, | |
| gitlab_rails['smtp_port'] = 25 | |
| gitlab_rails['smtp_user_name'] = "usre_name" #important | |
| gitlab_rails['smtp_password'] = "password" #important | |
| gitlab_rails['smtp_domain'] = "example.com" | |
| gitlab_rails['smtp_authentication'] = "login" | |
| gitlab_rails['smtp_enable_starttls_auto'] = true |
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
| # basics | |
| sudo apt-get update && sudo apt-get install vim-nox fish git zip unzip openjdk-8-jdk -y | |
| #oh my fish | |
| curl -L github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | sh | |
| omf theme | |
| #docker | |
| curl -sSL https://get.docker.com/ | sh |
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
| sudo apt-add-repository ppa:fish-shell/release-2 | |
| sudo apt-get update | |
| sudo apt-get install fish |