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
git fetch --all | |
git reset --hard origin/master |
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
Download the firmware into your PC. Head to http://tomato.groov.pl/download/K26RT-N/build5x-116-EN/Linksys%20E-series/, and grab the E3200USB (check the filename) file. If you have other Linksys routers, you can look around in the directory for your model number. | |
Perform a 30-30-30 reset of the Linksys E3200. While the E3200 is plugged in with the power on, and no other cables connected, press and hold the reset button for 30 seconds. Still keeping the reset button depressed, unplug the power cable, and hold the reset button for a further 30 seconds. Finally, with the reset button still depressed, reconnect the power cable, and wait 30 more seconds before releasing the reset button. Altogether, you would have held the reset button for at least 90 seconds. | |
Login to the E3200. It’s default IP is 192.168.1.1, username is admin and password is admin. I suggest to connect via an Ethernet cable to the LAN port. | |
Go to Administration, Firmware update. | |
Select the file you downloaded above. Press |
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
# 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" |
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
sudo nano /etc/ssh/sshd_config | |
PermitRootLogin without-password | |
reload ssh |
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
# 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 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 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 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 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 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/ . |
OlderNewer