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
/* Hide the 'Jobs' stuff */ | |
#MOTD, | |
#NavigationLinks .Jobs, | |
.JobContent { | |
display: none; | |
} | |
/* Increase the item numbers */ | |
.Frontpage .InnerPage ol li:before, .Newest .InnerPage ol li:before, .Sponsored .InnerPage ol li:before, .Search .InnerPage ol li:before, .Notifications .InnerPage ol li:before, .Discussions .InnerPage ol li:before { | |
font-size: 20px; | |
line-height: 20px; |
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
if [ "$(uname -s)" == "Darwin" ]; then | |
# Mac stuff | |
else | |
# Linux stuff | |
fi |
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
function murder { | |
ps ax | grep "${*}" | grep -v grep | awk "{print \$1}" | xargs sudo kill -9 | |
} |
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
deb http://ppa.launchpad.net/elementary-os/stable/ubuntu trusty main | |
deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu trusty main | |
deb http://ppa.launchpad.net/elementary-os/os-patches/ubuntu trusty main | |
deb-src http://ppa.launchpad.net/elementary-os/os-patches/ubuntu trusty main |
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
* {} -> specificity = 0,0,0,0 | |
p {} -> specificity = 0,0,0,1 | |
p:first-child {} -> specificity = 0,0,0,2 | |
p span {} -> specificity = 0,0,0,2 | |
p span+i {} -> specificity = 0,0,0,3 | |
p span i.red {} -> specificity = 0,0,1,3 | |
p.red.active {} -> specificity = 0,0,2,1 | |
#name {} -> specificity = 0,1,0,0 | |
style="" -> specificity = 1,0,0,0 |
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
# Then simply set up a cron job | |
$ nano ~/crontab | |
# Paste the following | |
1 0 * * * osascript ~/Desktop/relaunchSpotify.applescript |
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
/*jslint node: true */ | |
(function (){ | |
'use strict'; | |
var nodeStatic = require('node-static'); | |
var http = require('http'); | |
var io = require('socket.io')(); | |
var server = new(nodeStatic.Server)(); | |
var app = http.createServer(function (request, response) { |
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
// Here you specify the fonts that you don't want to change, so as not to conflict with icon fonts, etc. | |
var excludedFonts = ["FontAwesome", "Icomoon", "Fontelico", "octicons", "Entypo", "Typicons"]; | |
// Here you specify your new font for everything else | |
var newFont = "ComicSansMS, Arial"; | |
// Wrap the changer as a function | |
var conditionallyChangeFont = function () { | |
// Here be dragons. Lots of DOM traversal |
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
curl https://api.github.com/repos/AverageMarcus/Test/issues -X POST -H 'Authorization: token <NO TOKEN FOR YOU>' -d '{"title":"Testing via CURL","body":"Using an OAuth key, will it work?"}' |
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
# If you've already got an instance of a device open, it will warn | |
# you and you'll have to switch to a different model/OS version. | |
# | |
# From a terminal window: | |
open -n /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app |