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
sencha fs web -p 80 start -map /path/to/webroot/ |
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
dokku config:set appname KEY=value |
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 shutdown -h now |
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 service apache2 restart |
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
//login to your droplet. | |
//1. output the hostname | |
hostname | |
//2. modify the hosts | |
nano /etc/host | |
//3. the first line in this file, should use the hostname on the end. For example: "Lee" | |
127.0.0.1 localhost localhost.domainname Lee |
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://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-14-04 | |
//Check if mongo is running | |
service mongod status | |
//You can also stop, start, and restart MongoDB using the service command (e.g. service mongod stop, server mongod start). |
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
yo nodejs | |
//install modules globally | |
npm install packagename -g | |
//install modules and save in package.json | |
npm install packagename --save |
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
This trick involves refreshing the discoveryd service by unloading and reloading it with the launchctl command. | |
This is a bit curious but apparently it works for some users, suggesting there could be an issue with discovery or resolving DNS on some Yosemite Macs. | |
It’s certainly worth a try if the above tricks failed to resolve your wi-fi connectivity problems in OS X 10.10, as there are a fair amount of positive reports with this one: | |
Open Terminal (found in /Applications/Utilities/ or with Spotlight) and enter the following command: | |
`sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist` | |
Hit return and enter an admin password to use the sudo command | |
Now run the following command to reload discoveryd (this used to be called mDNSResponder) | |
`sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist` |
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
Listing running containers: dokku ps | |
To kill a container: | |
dokku kill <id-container> | |
https://docs.docker.com/articles/basics/ |
OlderNewer