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/env bash | |
# | |
# Download TV series and Movies from Soaper using CLI | |
# | |
#/ Usage: | |
#/ ./soaper-dl.sh [-n <name>] [-p <path>] [-e <num1,num2,num3-num4...>] [-l] [-s] [-d] | |
#/ | |
#/ Options: | |
#/ -n <name> TV series or Movie name | |
#/ -p <path> media path, e.g: /tv_XXXXXXXX.html |
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
make_symlinks() { | |
log_info "This needs to be run as administrator for symlinking to work in git-bash" | |
log_info "Creating symlinks..." | |
# cygpath converts posix <-> win paths | |
local home_win=$(cygpath -aw "$HOME") | |
local repo_win=$(cygpath -aw ./) | |
# make sure ~/bin & ~/hooks exists | |
mkdir ~/bin ~/hooks >/dev/null 2>&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
#!/usr/bin/env python | |
"""Simple (unix like) command line calendar in python""" | |
import os | |
from datetime import datetime | |
import argparse | |
import calendar | |
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 | |
USAGE="Usage: | |
npm-update-all | |
-> prints all dependencies | |
-d | |
-> prints all devDependencies | |
from current dirs package.json |
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/env bash | |
# simple wrapper function around http://wttr.io to get sensible defaults | |
# easily modified by changing the defaults and/or last parameters in the url | |
function wttr() { | |
USAGE=" | |
Usage: wttr [OPTIONS] | |
Options: | |
-c <city> city name, double words with +, eg. new+york |
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 | |
declare -a MODES | |
MODES=("b" "d" "g" "p" "s" "t" "w" "y") | |
declare -a COWS | |
COWS=("tableflip" "aperture-blank" "beavis.zen" "bees" "biohazard" "box" "broken-heart" "cat" "cat2" "clippy" "cowfee" "cube" "default" "dragon" "hedgehog" "kilroy" "kosh" "nyan" "owl" "psychiatrichelp" "psychiatrichelp2" "shrug" "squirrel" "tux") | |
MODES_LENGTH=${#MODES[@]} | |
MODES_INDEX=$(($RANDOM % $MODES_LENGTH)) |
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 path = require('path') | |
const fs = require('fs') | |
let folderCount = 0 | |
let stdoutWidth = process.stdout.columns - 9 | |
let startTime | |
const results = {} | |
function checkChallenges(startDir) { | |
startTime = new Date() |
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
(function () { | |
if (window.location.host !== 'github.com') { | |
alert('Not a GitHub page.'); | |
return; | |
} | |
if (window.location.pathname.split('/').length < 3) { | |
alert('Not in a repository page.'); | |
return; | |
} | |
function formatBytes(a, b) { if (0 == a) return "0 Bytes"; var c = 1024, d = b || 2, e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], f = Math.floor(Math.log(a) / Math.log(c)); return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f] } |
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
function resizeWindow() { | |
const padding = 20 // title bar height without menu in electron | |
const heightDiff = (document.body.clientHeight - document.documentElement.clientHeight) + padding | |
window.resizeBy(0, heightDiff) | |
} |
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
iFrames = [] | |
iFramesInner = [] | |
filterOut = [ // does not work with YT-DL | |
"mycloud", | |
"vidzi", | |
"vidbull", | |
"fmoviesfree", | |
"vidcloud", | |
"streamcherry", | |
"vidup", |
NewerOlder