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
#!/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
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
#!/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
#!/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 |
OlderNewer