Skip to content

Instantly share code, notes, and snippets.

View daxxog's full-sized avatar

David Volm daxxog

View GitHub Profile
#/etc/init/no-ip.conf
#upstart service for noip2
description "No-IP Linux Dynamic Update Client (DUC)"
author "No-IP <[email protected]>"
# When to start the service
start on runlevel [2345]
# When to stop the service
@daxxog
daxxog / install-node.sh
Last active December 11, 2015 14:38
Install node
#!/bin/bash
#curl -L https://gist.githubusercontent.com/daxxog/4615060/raw/install-node.sh | sh
#get gcc toolchain
sudo apt-get update
sudo apt-get install make gcc g++ -y
#make a dev directory and switch to it
cd ~
mkdir dev
#auto run all this
#curl https://gist.github.com/raw/4616170/install-mongo-repset.sh | sh
#make a dev directory and switch to it
cd ~
mkdir dev
cd dev
#download latest mongodb
curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.2.2.tgz > mongo.tgz
#/etc/init/mongod-repset.conf
#upstart service for mongod replica set
description "MongoDB Replica Set"
author "daXXog <[email protected]>"
# When to start the service
start on runlevel [2345]
# When to stop the service
#!/bin/bash
ulimit -f unlimited -t unlimited -v unlimited -n 64000 -m unlimited -u 32000
if [ -f /var/lib/mongodb/mongod.lock ]; then
rm /var/lib/mongodb/mongod.lock
sudo /usr/bin/mongod --port 27017 --logpath /var/log/mongodb.log --replSet rs0 --repair
else
sudo /usr/bin/mongod --port 27017 --logpath /var/log/mongodb.log --replSet rs0
fi
#!/bin/bash
#curl https://gist.github.com/raw/4631150/install-exapark.sh | sh
#install java
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless openjdk-7-jdk -y
#make a dev directory and switch to it
cd ~
mkdir dev
@daxxog
daxxog / install-scripts.md
Last active December 11, 2015 16:58
my install scripts

My install scripts

designed for use on ubuntu

#redis
curl -L https://gist.githubusercontent.com/daxxog/f80c83e1200deca04fcc/raw/redis-install.sh | sh

#mongodb replica set
curl -L https://gist.github.com/raw/4616170/install-mongo-repset.sh | sh
for(var i=0; i<80; i++){$("#edit-button").click();}
@daxxog
daxxog / replaceOne.js
Created March 1, 2013 17:57
.replace without regex
String.prototype.replaceOne = function(_what, _with) {
var what = _what.split(''),
that = this.split(''),
found = false,
skip = 0,
_new = [];
that.forEach(function(v, i, a) {
var fail = false;
@daxxog
daxxog / dubstep
Last active December 15, 2015 15:59
Broken Piano kopud
UKF Dubstep Tutorial
I Knew You Were Trouble (Vanic Remix)
Skyfall (Flashbacks ft LuckyStars Bootleg Remix 2013)
Firestorm (Karetus Remix)
Dubstep Thugs (Dubtron Reboot) - Doctor P
Chop Up (feat. Julia Marks)
Beetlejuice (Dubstep Mix)
Fractura (Original Mix)
Hero Down - Schoolboy & James Egbert