brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| // Media Queries in Sass 3.2 | |
| // | |
| // These mixins make media queries a breeze with Sass. | |
| // The media queries from mobile up until desktop all | |
| // trigger at different points along the way | |
| // | |
| // And important point to remember is that and width | |
| // over the portrait width is considered to be part of the | |
| // landscape width. This allows us to capture widths of devices | |
| // that might not fit the dimensions exactly. This means the break |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| admin account info" filetype:log | |
| !Host=*.* intext:enc_UserPassword=* ext:pcf | |
| "# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
| "AutoCreate=TRUE password=*" | |
| "http://*:*@www” domainname | |
| "index of/" "ws_ftp.ini" "parent directory" | |
| "liveice configuration file" ext:cfg -site:sourceforge.net | |
| "parent directory" +proftpdpasswd | |
| Duclassified" -site:duware.com "DUware All Rights reserved" | |
| duclassmate" -site:duware.com |
| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
| // In middleware | |
| app.use(function (req, res, next) { | |
| // action after response | |
| var afterResponse = function() { | |
| logger.info({req: req}, "End request"); | |
| // any other clean ups |
| #!/usr/bin/python | |
| # Downloads the current "Astronomy Picture of the Day" from nasa.gov and sets as wallpaper | |
| # | |
| # Installation steps: | |
| # - store this file somewhere and take note of the path | |
| # - change WALLPAPER_DIR to some folder in your home directory | |
| # and create the folder | |
| # - make it executable: | |
| # chmod a+x /path/to/change_wallpaper | |
| # - follow instructions given in the .plist file to make it run daily |
| /** | |
| * Created by alicia.sykes on 17/07/2015. | |
| * To run script run "gulp" in the command line | |
| * To just watch files run "gulp watch" | |
| * To just clean the public directory run "gulp clean" | |
| */ | |
| /* Include the necessary modules */ | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); // For logging stats and warnings |
| # NOTES | |
| # Spotify 0.9 vs 1.0 is stable, uses less resources overall and works well with Spotify Connect, SpotCommander, Local Files etc | |
| # The sources of the Dropbox files, which are hosted by me and the latest and greatest available, are listed above each one | |
| # No system files will be overwritten by these or used by other programs since they depend on the later openSUSE versions | |
| # Make sure you copy the whole lines into Terminal | |
| # Each command is on one line and might be long | |
| # START GUIDE |
| var sendString = (function(rfb, force, sendDelay) { | |
| sendDelay = sendDelay || 25; | |
| var _q = []; | |
| var _qStart = function() { | |
| var chr = _q.shift(); | |
| if (chr) { | |
| rfb.sendKey(chr); | |
| setTimeout(_qStart, sendDelay); | |
| } | |
| }; |