APP_DIR="/src"
mkdir $APP_DIR && cd $APP_DIR
git init
git config core.worktree $APP_DIR
git config receive.denycurrentbranch ignore
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
<!--[if lt IE 9]> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script> | |
<script src="//s3.amazonaws.com/nwapi/nwmatcher/nwmatcher-1.2.5-min.js"></script> | |
<script src="//html5base.googlecode.com/svn-history/r38/trunk/js/selectivizr-1.0.3b.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.1.0/respond.min.js"></script> | |
// REM Polyfill from https://github.com/chuckcarpenter/REM-unit-polyfill | |
// <script src="js/rem.min.js"></script> | |
<![endif]--> |
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 Nightmare = require('nightmare'); | |
function changeFacebookProfilePicture(email, pass, id) { | |
new Nightmare({ | |
show: false, | |
'webPreferences':{ | |
partition: 'nopersist' | |
} | |
}).goto('https://facebook.com') | |
// .screenshot(__dirname + '/00.png') |
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
begin | |
prog = irexec | |
button = KEY_POWER | |
config = pgrep kodi || kodi & | |
repeat = 0 | |
end |
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
FROM ubuntu:14.04 | |
RUN apt-get update && \ | |
apt-get install -y wget php5 php5-pgsql && \ | |
rm -rf /var/lib/apt/lists/* | |
WORKDIR /opt/phppgadmin | |
RUN wget http://downloads.sourceforge.net/project/phppgadmin/phpPgAdmin%20%5Bstable%5D/phpPgAdmin-5.1/phpPgAdmin-5.1.tar.gz && \ | |
tar xvfz phpPgAdmin-5.1.tar.gz --strip=1 && \ |
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
# axis | |
set style line 99 lc rgb '#A0A0A0' lt 1 | |
set border 3 back ls 99 | |
set tics nomirror | |
# grid | |
set style line 98 lc rgb '#e0e0e0' lt 0 lw 1 | |
set grid back ls 98 | |
# styles |
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
const Nightmare = require('nightmare') | |
const Datastore = require('nedb') | |
const DB = new Datastore({ filename: 'ticks.db', autoload: true }) | |
const INTERVAL = process.env.INTERVAL || 15000 | |
var nightmare = new Nightmare({ | |
show: true, | |
webPreferences: { | |
partition: 'nopersist' |
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
$.ajax('https://api.bandsintown.com/artists/Roosevelt/events.json', { | |
data: { | |
api_version: '2.0', | |
//date: '2014-01-01,2016-12-31', | |
app_id: 'ENTER_APPID_HERE' | |
}, | |
dataType: 'jsonp', | |
jsonpCallback: 'createPastConcertsList', | |
crossDomain: true | |
}) |
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
env $(cat .env 2>/dev/null | grep -v ^# | xargs) node |
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 | |
IP="192.168.0.1" | |
USERNAME= | |
PASSWORD="admin" | |
FAILURE_THRESHOLD=10 | |
SLEEP_TIME=5 | |
function restart { | |
CREDENTIALS="$(printf "$USERNAME:$PASSWORD" | base64)" |
OlderNewer