Skip to content

Instantly share code, notes, and snippets.

Alexis Tyler OmgImAlexis

View GitHub Profile
OmgImAlexis / gist:d8741394c4c599bdeed4
Last active Aug 29, 2015
Fresh centos 64 bit with Node and mongo
View gist:d8741394c4c599bdeed4
sudo yum update -y
echo "[mongodb]" >> /etc/yum.repos.d/mongodb.repo
echo "name=MongoDB Repository" >> /etc/yum.repos.d/mongodb.repo
echo "baseurl=" >> /etc/yum.repos.d/mongodb.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/mongodb.repo
echo "enabled=1" >> /etc/yum.repos.d/mongodb.repo
sudo yum install mongodb-org -y
sudo service mongod start
sudo chkconfig mongod on
OmgImAlexis / gist:355ab8407b9015e4d722
Last active Aug 29, 2015
Install and setup drywall
View gist:355ab8407b9015e4d722
sudo yum install git -y
git clone && cd ./drywall
npm install inherits -g
npm install grunt-cli -g
npm install bower -g
npm install && bower install --allow-root
mv ./config.example.js ./config.js
OmgImAlexis / gist:3154d5c8e1e6fb303cbd
Last active Aug 29, 2015
Centos IP Tables | Normal + port 3000 > 80
View gist:3154d5c8e1e6fb303cbd
iptables -F
iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 3000 -j ACCEPT
OmgImAlexis / gist:db4776f6fd53e4112dda
Created May 21, 2014
Full install and setup of node.js, mongodb and drywall with port 80 outside redirecting to port 3000 inside.
View gist:db4776f6fd53e4112dda
bash -c "$(curl -fsSL"
bash -c "$(curl -fsSL"
bash -c "$(curl -fsSL"

Minecraft - Versioning your saves

This is a tutorial show how to version your saves using Git.

Q: Why would anyone go through this process?
A: Because if you do, you can undo an otherwise un-undoable action, such as swimming in a pit of lava and accidentally dropping your Notch armpit forged special edition diamond pickaxe and your 35 stacks of cobblestone.

Step by step tutorial

Download and install the appropriate version of Git

View gist:f8749971df699a454994
### Keybase proof
I hereby claim:
* I am omgimalexis on github.
* I am omgimalexis ( on keybase.
* I have a public key whose fingerprint is 4223 46FF 2DB2 B9AE 7A0F 1AC0 2E6C 844F 4E83 5E3F
To claim this, I am signing this object:
OmgImAlexis / nodejs-unlock
Last active Aug 29, 2015 — forked from suhajdab/nodejs-unlock
Lock and unlock OSX from http request.
View nodejs-unlock
var applescript = require('applescript');
var http = require('http');
var script =
'tell application "System Events"\n\
if name of every process contains "ScreenSaverEngine" then \n\
tell application "ScreenSaverEngine"\n\
end tell\n\
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
View sickrage.log
2015-06-14 14:21:37 ERROR POSTPROCESSER :: Exception generated in thread POSTPROCESSER: ascii : /mnt/downloads/DONE/tvshow/Hannibal.S01E11.Rôti.720p.WEB-DL.DD5.1.H.264-NTb.mkv : error 44 : error 45 : ordinal not in range(128)
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: This download is marked a priority download so I'm going to replace an existing file if I find one
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: There is no existing file so there's no worries about replacing it
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: Is ep a priority download: True
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: SB snatched this episode and it is not processed before
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: Quality of the episode we're processing: 32
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: Snatch history had a quality in it, using that: 720p WEB-DL
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: 259063: Loading episode details from DB for episode 1x11
2015-06-14 14:21:37 DEBUG POSTPROCESSER :: 259063: An o
# ^^^^^^^ That tells your shell what shell should be used to execute this script.
# As a rule you nearly always write in borne shell (plain sh)
# regardless of what shell you use for your terminals.
# Hence this should always be the first line in every script you write.
You can’t perform that action at this time.