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
https://www.dropbox.com/s/j3xrvd8vxqn0uu5/Netflixontopv2.zip |
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 | |
# Fix NPM user permissions. | |
sudo chown -R $USER ~/.npm | |
sudo chown -R $USER /usr/local/lib/node_modules |
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 request = require('request'); | |
var cheerio = require('cheerio'); | |
var args = process.argv.slice(2); | |
var ua = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'; | |
var opts = { | |
url: args[0], headers: { 'User-Agent': ua } | |
}; |
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
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | |
native-path: BAT0 | |
vendor: SMPNz451 | |
model: bq20z451 | |
power supply: yes | |
updated: Fri 09 Jan 2015 08:20:29 AM EST (7 seconds ago) | |
has history: yes | |
has statistics: yes | |
battery | |
present: yes |
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 level = require('level'); | |
var sublevel = require('sublevel'); | |
// create a sublevel by passing a level `db` instance | |
var db = level('/tmp/level'); | |
var items = sublevel(db, 'items'); | |
var itemsMetaData = sublevel(items, 'itemsMeta'); | |
items.put('foo', 'bar', function(err){ |
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
#!/usr/bin/python | |
import os | |
from os.path import dirname, abspath, join, exists | |
from platform import node | |
import sys | |
ROOT_DIR = dirname(dirname(abspath(__file__))) | |
def clean_define(define): |
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 exp = /{([^{}]*)}/; | |
function chop(match) { | |
var content = match.split(exp); | |
var con = content.filter(function(n){ return n.length > 0 }); | |
var arr = con.toString().split('|'); | |
return arr[Math.floor(Math.random() * arr.length)]; | |
} | |
function spin(content) { |
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
. ..... ..............,Z8DDNDDNMNNMNNNNNO7?......... ...... . ... ....... | |
... ........ .=8DDNNNNMMNMNNNNNMMNNMMNNNNDDO:. . . . . . . | |
. ... ..... ..ZNNNNNMMNMNNMNMNMMMMMMNMMMMMMMNNN,.. ................... | |
. ....IONMNNNNNMMMNNMMNMMNMNMMMMMMMMMMMNNNNNNDO,... . . . . . | |
.. .:8DNNNDNNNNNNNNNNNNNNNDDMNNDNNNMNNNNNNNNNNMNND:..... .. ...... | |
.... . ......=DDNNNNDNNNNNDDD888DDDDDDD8DDDNDDNDNNNMNNMNNNMN8................ | |
. .......$NNDDNNNNNNDD8DD8OODZO8O888DODDN8DNDNNNNNNNNNMNNNN8? .. ......... | |
. ..... 8NNNMMMMNNNN88OOOOOOO$Z$$Z$Z$ZOOO88OO88NNDNNNNNNNMNNN8=........... | |
. .... . . .ONNNNMNMNNNDDZ$$7777IIIIIIIIII777$$ZZZOO8DDNNNNNNNNNNNNNZ,......... |
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
............. ................... . | |
...::::::::... ...~:::::::::::,.. . . | |
..,$ZZZZZZZ,..... ..,ZZZZZZZZZZZZ=.. . | |
..,ZZZZZZZZ,.... ..,ZZZZZZZZZZZZ=.. . | |
..,ZZZZZZZZZZ=. ..,ZZZZZZZZZZZZ~.... . | |
..,ZZZZZZZZZZ=. ..,ZZZZZZZZZZZZ~.... . | |
.........,ZZZZZZZZZZ=............,ZZZZZZZZZZZZ~.... ....... . | |
..:ZZZZZZZZZZZZZZZZ=..,.........:ZZZZZZZZZZZZ~.... ..~D. . | |
..:ZZZZZZZZZZZZZZZZ=.?ZZZZZZZZZZZZZZZZZZZZZZZ~.... ..~D.. . |
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
░░░░█▒▒▄▀▀▀▀▀▄▄▒▒▒▒▒▒▒▒▒▄▄▀▀▀▀▀▀▄ | |
░░▄▀▒▒▒▄█████▄▒█▒▒▒▒▒▒▒█▒▄█████▄▒█ | |
░█▒▒▒▒▐██▄████▌▒█▒▒▒▒▒█▒▐██▄████▌▒█ | |
▀▒▒▒▒▒▒▀█████▀▒▒█▒░▄▒▄█▒▒▀█████▀▒▒▒█ | |
▒▒▐▒▒▒░░░░▒▒▒▒▒█▒░▒▒▀▒▒█▒▒▒▒▒▒▒▒▒▒▒▒█ | |
▒▌▒▒▒░░░▒▒▒▒▒▄▀▒░▒▄█▄█▄▒▀▄▒▒▒▒▒▒▒▒▒▒▒▌ | |
▒▌▒▒▒▒░▒▒▒▒▒▒▀▄▒▒█▌▌▌▌▌█▄▀▒▒▒▒▒▒▒▒▒▒▒▐ | |
▒▐▒▒▒▒▒▒▒▒▒▒▒▒▒▌▒▒▀███▀▒▌▒▒▒▒▒▒▒▒▒▒▒▒▌ | |
▀▀▄▒▒▒▒▒▒▒▒▒▒▒▌▒▒▒▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒▒▒▒█ | |
▀▄▒▀▄▒▒▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒▒▄▄▄▄▒▒▒▒▒▒▄▄▀ |