Skip to content

Instantly share code, notes, and snippets.

@Fraasi
Fraasi / wttr.sh
Last active January 5, 2023 23:51
simple wrapper function around http://wttr.io to get sensible defaults
#!/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
@Fraasi
Fraasi / npm-update-all
Last active November 28, 2021 12:33
small bash script to print out command to update all (dev)dependencies from package.json to @latest
#!/bin/bash
USAGE="Usage:
npm-update-all
-> prints all dependencies
-d
-> prints all devDependencies
from current dirs package.json
@Fraasi
Fraasi / cal.py
Last active August 4, 2022 15:46
Simple (unix like) command line calendar in python
#!/usr/bin/env python
"""Simple (unix like) command line calendar in python"""
import os
from datetime import datetime
import argparse
import calendar
@Fraasi
Fraasi / git-bash-symlink.sh
Created December 7, 2022 11:49
my old git-bash symlink function from my dotfiles install.sh
@Fraasi
Fraasi / soaper-dl.sh
Created March 31, 2024 14:41
Failed pr to KevCui/soaper-dl, which I like to keep around
#!/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