Skip to content

Instantly share code, notes, and snippets.

View OmgImAlexis's full-sized avatar
🇹🇼

Alexis Tyler OmgImAlexis

🇹🇼
View GitHub Profile
Processing folder /mnt/downloads/DONE/tvshow
TV_DOWNLOAD_DIR: /mnt/downloads/DONE/tvshow
PostProcessing Path: /mnt/downloads/DONE/tvshow
PostProcessing Dirs: []
PostProcessing Files: ['About.a.Boy.S02E10.About.a.Boy.Becoming.a.Man.1080p.WEB-DL.DD5.1.h.264-NTb.mkv', 'American.Odyssey.S01E02.1080p.WEB-DL.DD5.1.H.264-KiNGS.mkv', 'American.Odyssey.S01E04.1080p.WEB-DL.DD5.1.H.264-KiNGS.mkv', 'Complications.S01E10.720p.HDTV.X264-DIMENSION.mkv', 'Crowded.S01E01.1080p.X264-DIMENSION.mkv', 'Hannibal (2015) S03E11,1080p WEB-DL NL Subs SAM TBS.mkv', 'Hannibal.S01E04.Coquilles.1080p.WEB-DL.DD5.1.H-264-NTb.mkv', 'Hannibal.S03E12.The.Number.of.the.Beast.is.666.1080p.WEB-DL.DD5.1.H.264-Xrep.mkv', 'Last.Week.Tonight.With.John.Oliver.S02E25.720p.HDTV.x264-BATV.mkv', 'Mr.Robot.S01E08.wh1ter0se.1080p.WEB-DL.DD5.1.H.264-RARBG.m4v.mkv', 'Mr.Robot.S01E09.m1rr0r1ng.qt.WEB-DL.DD5.1.H.264-RARBG.mkv', 'orange.is.the.new.black.s02e11.webrip.x264-2hd.mp4', 'regular.show.s07e05.the.dome.experiment.720p.hdtv.x264-w4f.mkv', 'Scream.S01E09.
@OmgImAlexis
OmgImAlexis / gist:d8741394c4c599bdeed4
Last active August 29, 2015 14:01
Fresh centos 64 bit with Node and mongo
#!/bin/bash
sudo yum update -y
echo "[mongodb]" >> /etc/yum.repos.d/mongodb.repo
echo "name=MongoDB Repository" >> /etc/yum.repos.d/mongodb.repo
echo "baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/" >> /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
OmgImAlexis / gist:355ab8407b9015e4d722
Last active August 29, 2015 14:01
Install and setup drywall
#!/bin/bash
sudo yum install git -y
git clone https://github.com/jedireza/drywall.git && 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
grunt
@OmgImAlexis
OmgImAlexis / gist:3154d5c8e1e6fb303cbd
Last active August 29, 2015 14:01
Centos IP Tables | Normal + port 3000 > 80
#!/bin/bash
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
OmgImAlexis / gist:db4776f6fd53e4112dda
Created May 21, 2014 04:24
Full install and setup of node.js, mongodb and drywall with port 80 outside redirecting to port 3000 inside.
bash -c "$(curl -fsSL https://gist.githubusercontent.com/OmgImAlexis/d8741394c4c599bdeed4/raw/)"
bash -c "$(curl -fsSL https://gist.githubusercontent.com/OmgImAlexis/3154d5c8e1e6fb303cbd/raw/)"
bash -c "$(curl -fsSL https://gist.githubusercontent.com/OmgImAlexis/355ab8407b9015e4d722/raw/)"

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

### Keybase proof
I hereby claim:
* I am omgimalexis on github.
* I am omgimalexis (https://keybase.io/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
OmgImAlexis / nodejs-unlock
Last active August 29, 2015 14:16 — forked from suhajdab/nodejs-unlock
Lock and unlock OSX from http request.
var applescript = require('applescript');
var http = require('http');
require('shelljs/global');
var script =
'tell application "System Events"\n\
if name of every process contains "ScreenSaverEngine" then \n\
tell application "ScreenSaverEngine"\n\
quit\n\
end tell\n\
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
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