NOTE: Anything in angle brackets like <this>
should be replaced with your own value
Global ignore file
git config --global core.excludesfile ~/.gitignore_global
More about ignoring files and sensible defaults for ~/.gitignore
box() { t="$1xxxx";c=${2:-=}; echo ${t//?/$c}; echo "$c $1 $c"; echo ${t//?/$c}; } |
# 5G BLACKLIST/FIREWALL (2013) | |
# @ http://perishablepress.com/5g-blacklist-2013/ | |
# 5G:[QUERY STRINGS] | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{QUERY_STRING} (\"|%22).*(<|>|%3) [NC,OR] | |
RewriteCond %{QUERY_STRING} (javascript:).*(\;) [NC,OR] | |
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3) [NC,OR] |
# editorconfig.org | |
root = true | |
[*] | |
indent_style = tab | |
end_of_line = crlf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
sc create shortname binpath= "\"C:\Path\To\Your\program.exe\" --your-program-options" displayname= "Full Name of Service for Service Manager" start= auto |
NOTE: Anything in angle brackets like <this>
should be replaced with your own value
Global ignore file
git config --global core.excludesfile ~/.gitignore_global
More about ignoring files and sensible defaults for ~/.gitignore
// http://responsivenews.co.uk/post/18948466399/cutting-the-mustard | |
if('querySelector' in document | |
&& 'localStorage' in window | |
&& 'addEventListener' in window) { | |
// bootstrap the javascript application | |
} |
<script type="text/javascript"> | |
//<![CDATA[ | |
(function() { | |
document.write('<fb:like width="200"></fb:like>'); | |
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0]; | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = 'http://connect.facebook.net/en_US/all.js#xfbml=1'; | |
s1.parentNode.insertBefore(s, s1); | |
})(); |
<script> | |
function openDir( form ) { | |
var newIndex = form.blogviewselect.selectedIndex; | |
if ( newIndex == 0 ) { | |
alert( "Please select a view" ); | |
} | |
else { | |
cururl = form.blogviewselect.options[ newIndex ].value; | |
window.location.assign( cururl ); | |
} |
This looks like a good way to limit the height of a dynamic image (perhaps user submitted).
A Pen by Trippnology on CodePen.
I have marked with a * those which I think are absolutely essential | |
Items for each section are sorted by oldest to newest. Come back soon for more! | |
BASH | |
* In bash, 'ctrl-r' searches your command history as you type | |
- Input from the commandline as if it were a file by replacing | |
'command < file.in' with 'command <<< "some input text"' | |
- '^' is a sed-like operator to replace chars from last command | |
'ls docs; ^docs^web^' is equal to 'ls web'. The second argument can be empty. | |
* '!!:n' selects the nth argument of the last command, and '!$' the last arg |