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
| vector<vector<int > > v(M, vector<int> (N)); |
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
| p3 -m cProfile -s time main.py > stats |
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
| ssh [email protected] | |
| WVkMTBkZ | |
| git init --bare | |
| git clone [email protected]:~/CSCI4160/project1/ . |
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://killtheyak.com/schedule-jobs-launchd/ | |
| launchctl unload -w bgmac.plist | |
| launchctl load -w bgmac.plist | |
| launchctl start com.me.bgmac |
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
| https://github.com/carlosabalde/ngwallpaper/blob/master/ngwallpaper.py | |
| https://stackoverflow.com/questions/431205/how-can-i-programmatically-change-the-background-in-mac-os-x | |
| https://gist.github.com/willurd/5829224 |
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
| defaults write com.apple.Finder AppleShowAllFiles true | |
| killall Finder |
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
| # opening and closing windows and popovers | |
| defaults write -g NSAutomaticWindowAnimationsEnabled -bool false | |
| # smooth scrolling | |
| defaults write -g NSScrollAnimationEnabled -bool false | |
| # showing and hiding sheets, resizing preference windows, zooming windows | |
| # float 0 doesn't work | |
| defaults write -g NSWindowResizeTime -float 0.001 |
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
| # restart nginx systemd service | |
| sudo service nginx restart | |
| # restart uwsgi config | |
| sudo uwsgi --ini /var/www/homedash/uwsgi.ini | |
| # troublshooting nginx | |
| tail -f /var/log/nginx/access.log | |
| tail -f /var/log/nginx/error.log |
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 nano /etc/ssh/sshd_config | |
| PermitRootLogin without-password | |
| reload ssh |
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
| # make key | |
| ssh-keygen -t rsa | |
| # send key | |
| ssh-copy-id [email protected] | |
| # OR | |
| cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" |