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 google bar */ | |
body { | |
margin-top: -25px !important; | |
margin-bottom: 20px; | |
height: 100%; | |
} | |
/* but leave the settings link */ | |
a[href="https://mail.google.com/mail/#settings"] { | |
position: absolute !important; |
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:(function(){ | |
//inspired by http://userscripts.org/scripts/show/8924 | |
var s = document.createElement('script'); | |
s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'); | |
if(typeof jQuery=='undefined') document.getElementsByTagName('head')[0].appendChild(s); | |
(function() { | |
if(typeof jQuery=='undefined') setTimeout(arguments.callee, 100) | |
else{ | |
jQuery("*").one("click",function(event){ | |
//http://snippets.dzone.com/posts/show/4349 |
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
# To install the Python client library: | |
# pip install -U selenium | |
# Import the Selenium 2 namespace (aka "webdriver") | |
from selenium import webdriver | |
# iPhone | |
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
# Android |
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
; | |
;My hotkeys (NTJ) | |
; | |
;Remap back/forward browser buttons to Windows keys | |
;*SC16A down::Send, {LWINDOWN} | |
;*SC169 down::Send, {APPSKEY down} | |
;*SC16A up::Send, {LWINUP} | |
;*SC169 up::Send, {APPSKEY up} |
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
#Persistent | |
; update mouse tooltip position this often, in ms | |
; 10 ms looks the smoothest, but you may prefer a higher value | |
; if the CPU load is too high with 10 ms | |
MouseTipUpdateInterval := 10 | |
; a usage example | |
Tip("This is an example mousetip.") |
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 is a method to using your Ubuntu 12.04 server without the Unity desktop on a very fast remote desktop program. This is by far the best method to managing your Ubuntu server if you like GUI. | |
apt-get install --no-install-recommends ubuntu-desktop | |
apt-get --yes purge unity unity-2d unity-2d-places unity-2d-panel unity-2d-spread | |
apt-get --yes purge unity-asset-pool unity-services unity-lens-* unity-scope-* | |
apt-get --yes purge liboverlay-scrollbar* | |
apt-get --yes purge appmenu-gtk appmenu-gtk3 appmenu-qt | |
apt-get --yes purge firefox-globalmenu thunderbird-globalmenu | |
apt-get --yes purge unity-2d-common unity-common | |
apt-get --yes purge libunity-misc4 libunity-core-5* |
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
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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() { | |
var script = document.createElement('script'); | |
script.async = 1; | |
script.src = '<url to script>'; | |
document.getElementsByTagName('body')[0].appendChild(script); | |
})(); |
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 is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
OlderNewer