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
<script> | |
var head = document.getElementsByTagName("head")[0]; | |
var css = document.createElement('link'); | |
css.type = 'text/css'; | |
css.rel = 'stylesheet'; | |
css.href = 'http://product.website.here/update_1.0.css?'+Date.now(); | |
// css.href = 'http://product.website.here/update_1.2.css?'+Date.now(); Uncomment for version 1.2 | |
css.media = 'screen'; | |
head.appendChild(css) | |
</script> |
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
Disable font enumeration for Adobe Flash through mms.cfg: | |
DisableDeviceFontEnumeration=1 | |
File Location: | |
32-bit Windows - %WINDIR%\System32\Macromed\Flash | |
64-bit Windows - %WINDIR%\SysWow64\Macromed\Flash | |
Macintosh - /Library/Application Support/Macromedia | |
Linux - /etc/adobe/ |
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
<!doctype html><meta charset='utf-8'> | |
<link rel='stylesheet' href='http://espadrine.github.com/aulx/demo/codemirror/lib/codemirror.css'> | |
<style> | |
div.CodeMirror-cursor { | |
transition-property: top, left; | |
transition-duration: 0.1s; | |
-webkit-transition-property: top, left; | |
-webkit-transition-duration: 0.1s; | |
-moz-transition-property: top, left; | |
-moz-transition-duration: 0.1s; |
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 ln /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /usr/local/bin/jsc |
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
#!/bin/sh | |
while (true) | |
do | |
ls -la some/directory | |
sleep 1 | |
clear | |
done |
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
RewriteEngine on | |
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^.*$ https://www.mydomain.com%{REQUEST_URI} [L,R] | |
RewriteCond %{HTTP_HOST} ^mydomain.com [NC] | |
RewriteRule ^.*$ https://www.mydomain.com%{REQUEST_URI} [L,R] |
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
LF="\n"; CR="\r" | |
INVT="\033[7m"; NORM="\033[0m"; BOLD="\033[1m"; BLINK="\033[5m" | |
#UNDR="\033[2m\033[4m"; EOL="\033[0K"; EOD="\033[0J" | |
UNDR="\033[4m"; EOL="\033[0K"; EOD="\033[0J" | |
SOD="\033[1;1f"; CUR_UP="\033[1A"; CUR_DN="\033[1B"; CUR_LEFT="\033[1D" | |
CUR_RIGHT="\033[1C" | |
#-- ANSI code | |
SCR_HOME="\033[0;0H" #-- Home of the display |
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
`airport -s -x | egrep 'BSSID|>CHANNEL<|NOISE|SSID_STR|RSSI' --after-context=1 \ | |
| egrep -v "AGE|array|WPA|80211" | tr '\n' ' ' | tr -d '\t' \ | |
| sed -e 's/<[^>]*>//g' \ | |
-e 's/ -- /, /g' \ | |
-e 'y/:/-/' \ | |
-e 's/ \([0-9]\)-/ 0\1-/g' -e 's/-\([0-9]\)\([-|,]\)/-0\1\2/g' \ | |
-e 's/BSSID \([a-f0-9-]*\)/{"mac_address": "\1"/g' \ | |
-e 's/CHANNEL \([0-9]*\)/"channel": \1/g' \ | |
-e 's/NOISE \([0-9]*\)/"signal_to_noise": \1/g' \ | |
-e 's/RSSI \([0-9]*\)/"signal_strength": \1/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
class LinkedList | |
include Enumerable | |
def initialize | |
@first = Node.new nil | |
@last = Node.new nil | |
@first.next = @last | |
@last.prev = @first |
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
search() { | |
find . –name "*.*" -exec grep -l $1 {} \; | |
} | |
alias ll='ls -lha $1' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
convert2pdf() { | |
/System/Library/Printers/Libraries/convert -f "$1" -o "$2" -j "application/pdf" | |
} |