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 mongod --config /usr/local/etc/mongod.conf --fork |
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
var found = 0; | |
Array.prototype.slice.call(document.querySelectorAll('video')).forEach(function(me){ me.playbackRate = (33/45); found++; }); | |
if (found === 0 && window.location.href.indexOf('www.youtube.com/watch?v=') !== -1) { // force HTML5 youtube | |
var id = window.location.href.substring(window.location.href.indexOf('watch?v=')+8); | |
if (id.indexOf('&') !== -1) id = id.substring(0, id.indexOf('&')); | |
if (confirm("To attempt to slow down this Youtube, we need to refresh the page, and then you can re-run this bookmarklet. Is this OK?")) { | |
window.location.href = 'http://www.youtube.com/watch_popup?v='+id; | |
} | |
} |
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
tell application "Safari" | |
make new document at end of documents | |
set URL of document 1 to "http://www.fitbit.com/" | |
do JavaScript "function myValue() {return 10;} myValue();" in document 1 | |
display dialog the result | |
end tell |
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
Show hidden characters
{ | |
"cmd": ["${project_path}vendor/bin/phpunit", "-c", "${project_path}test/phpunit.xml", "test"], | |
"file_regex": "php$", | |
"working_dir": "${project_path:${folder}}", | |
} |
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
# add this to yer .bash_profile ==> | |
function youtube_slower { | |
if [ ! -z $2 ]; then | |
tempo="$2" | |
else | |
tempo="0.8" | |
fi | |
base_filename="$(youtube-dl "$1" --get-filename)" | |
extensionless="${base_filename%.*}" |
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
// requires: sqlite3, ntwitter | |
var sqlite3 = require('sqlite3'), | |
db = new sqlite3.Database('biz.db'), | |
twitter = require('ntwitter'); | |
var twit = new twitter({ | |
consumer_key: 'all', | |
consumer_secret: 'your', | |
access_token_key: 'tokens', |
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
var system = require('system'), | |
fs = require("fs"), | |
CACHED_HEADER_NAME_REGEX = /X-Cache/, | |
CACHED_HEADER_VALUE_REGEX = /HIT/, | |
address, | |
parsedAddress, | |
cachedBytes = 0, | |
nocacheBytes= 0, | |
showAllURLS = false, | |
quiet = false, |
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-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFHp5VjLFBaRwe7JH4kG2SwhQpIH/d3AOhqX2zYJI66s2vNTDI1H20AuXCMqClOPSEGHEjz8lKVaSmHN0F2YKIwwTT9M6soqSHU5tk9h2/AjiH2dN7PhvTDAw88hxiqr9oE0QF9IyngCFgxbEzwHwOBmZsgYGJIlga4gneTKe/ufNq6Z6RydVK5sGWqv86tfPQUyUztC+ZqVlqsTV2+arLcZwwtpc9sR9pJZOxmHI8AfxE+GWFPJesQzQFvFH/Bs+G20g0a7QcRO45SY7j1FR9vzH7EuE8L673JtXvScHK7s3DBRqBgCEvVrQfUYXEc/TsEhh2MP4UH3C33QU+82sn jeffsisson@jeffs-imac.domain |
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
javascript:var element1 = document.createElement(%27script%27);element1.src = %27https:%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.4.4%2Fjquery.min.js%27;element1.type=%27text%2Fjavascript%27;document.getElementsByTagName(%27head%27)[0].appendChild(element1);var div = document.getElementById(%27ID-navPanelContainer%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-reportTitle%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-newKennedyHeader%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-headerPanel%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div = document.getElementById(%27ID-overviewPanelTrafficSourceValueOrganicTable%27).style; if(div) void(div.display=(div.display==%27none%27)%3F %27block%27:%27none%27);var div |
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
javascript:void($(%27%23ID-report div div div:contains(\%27Real-time reports do not include profile filtering\%27)%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelTrafficSourceNameTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelRequestUriTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelTrafficSourceValueOrganicTable%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-overviewPanelGeoComponent%27).siblings(%27div%27).css(%27display%27,%27none%27));void($(%27%23ID-reportHeader-titleSection%27).css(%27display%27,%27none%27));void($(%27%23ID-reportHeader-toolbarSection%27).css(%27display%27,%27none%27));void($(%27%23ID-report%27).css(%27padding%27,%270 60px%27));void($(%27%23ID-realtimeReportFootnote%27).css(%27display%27,%27none%27));void($(%27%23ID-mainLayoutContainer%27).css(%27background-color%27, %27%23FFF%27));void($(%27body%27).css(%27background-color%27, %27%23FFF%27));void($(%27%23main-bo |