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-get autoremove | |
| sudo apt --fix-broken install | |
| sudo apt-get update | |
| sudo apt-get upgrade |
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
| test |
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
| test |
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
| Install :npm install -g pm2 | |
| Start the ap: pm2 start app.js -i 3 | |
| Start the pm2 processes on start up : pm2 startup |
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
| this.$parent.mainInstanceMethod(); |
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
| Go into the folder.. If the folder is empty, then: | |
| git clone git@github.com:whatever . else | |
| 1. git init | |
| 2. git remote add origin PATH/TO/REPO | |
| 3. git fetch | |
| 4. git checkout -t origin/master |
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
| Try: | |
| Reminder: | |
| Virtualbox and VBGuestAdditions should have same version | |
| vagrant plugin install vagrant-vbguest | |
| vagrant up | |
| If won't work, here are the manual steps to install VirtualBox Guest Additions kernel modules inside the VM: | |
| Download the ISO file, e.g. |
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
| 1. Install gulp-notify | |
| npm install --save-dev gulp-notify --no-bin-links | |
| 2. gulpfile | |
| elixir(function(mix) { | |
| mix | |
| .sass('app.scss') | |
| .browserify('app.js') | |
| .version(['public/css/app.css' , 'public/js/app.js']); |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| import urllib, json | |
| def Forecast(location): | |
| baseurl = "https://query.yahooapis.com/v1/public/yql?" | |
| yql_query = "select * from weather.forecast where woeid in (select woeid from geo.places(1) where text='"+location+"')" | |
| yql_url = baseurl + urllib.urlencode({'q':yql_query}) + "&format=json" | |
| result = urllib.urlopen(yql_url).read() | |
| data = json.loads(result.decode()) | |
| for it in data['query']['results']['channel']['item']['forecast']: |
NewerOlder