Skip to content

Instantly share code, notes, and snippets.

View Poltergeist's full-sized avatar

Philipp Hinrichsen Poltergeist

  • Hamburg
View GitHub Profile
@Poltergeist
Poltergeist / xss
Created April 8, 2011 14:16
location
alert('read it!');
window.location='https://encrypted.google.com/search?hl=de&source=hp&biw=1920&bih=664&q=xss&aq=f&aqi=g4g-s2g2g-s1g1&aql=&oq=';
var test;
@Poltergeist
Poltergeist / .gitignore
Created May 10, 2011 09:55
My .gitignore dummy
.htaccess
.DS_Store
mkdir -p /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/
cat <<EOF >/Users/$USER/Applications/DropboxAltStarter.app/Contents/Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleExecutable</key>
@Poltergeist
Poltergeist / dabblet.css
Created December 16, 2011 00:12
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html{
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
h1{
text-align:center;
@Poltergeist
Poltergeist / node_debian_init.sh
Created June 1, 2012 13:43 — forked from peterhost/node_debian_init.sh
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
@Poltergeist
Poltergeist / dabblet.css
Created March 4, 2013 09:55
tooltip css3
span{
color:#333;
font-size:1.2em;
font-family:'Helvetica';
}
span[data-tooltip]{
color:#396;
position:relative;
display:inline-block;
cursor:help;
@Poltergeist
Poltergeist / dabblet.css
Created March 4, 2013 11:33
Close Button
/**
* Close Button
*/
.close{
font-weight:bold;
background:#333;
color:#eee;
text-decoration:none;
font-size:46px;
height:1em;
@Poltergeist
Poltergeist / dabblet.css
Created March 4, 2013 14:15
Knight Rider Flavoured Animation
/**
* Knight Rider Flavoured Animation
**/
div{
background: rgb(0,0,0); /* Old browsers */
background: -moz-linear-gradient(left, rgba(0,0,0,1) 0%, rgba(255,0,0,1) 35%, rgba(255,0,0,1) 65%, rgba(0,0,0,1) 100%),#000; /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,1)), color-stop(35%,rgba(255,0,0,1)), color-stop(65%,rgba(255,0,0,1)), color-stop(100%,rgba(0,0,0,1))),#000; /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(255,0,0,1) 35%,rgba(255,0,0,1) 65%,rgba(0,0,0,1) 100%),#000; /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(255,0,0,1) 35%,rgba(255,0,0,1) 65%,rgba(0,0,0,1) 100%),#000; /* Opera 11.10+ */
background: -ms-linear-gradient(left, rgba(0,0,0,1) 0%,rgba(255,0,0,1) 35%,rgba(255,0,0,1) 65%,rgba(0,0,0,1) 100%),#000; /* IE10+ */
@Poltergeist
Poltergeist / dabblet.css
Created March 5, 2013 00:02
FlexBox demo
/*
FlexBox demo
Browser support
Chrome any
Firefox any
Safari any
Opera 12.1+
IE 10+