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
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . |
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/sh | |
# based on instructions from | |
# https://www.berthon.eu/2017/installing-ubuntu-server-on-raspberry-pi-headless/ | |
session=$(date +"%Y%m%d%H%M%S") | |
array_users=( | |
rooot | |
) |
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 | |
# https://transfersh.pleasemarkdarkly.com/XSkei/transfer.sh - http://bit.ly/2QJUGkL | |
# This gist http://bit.ly/2FpgtZz - | |
transfer() { | |
if [ $# -eq 0 ]; then | |
echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>" >&2 | |
return 1 | |
fi |
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 | |
curl -s http://api.icndb.com/jokes/random/ | python -c 'import sys, json; print "\n"+json.load(sys.stdin)["value"]["joke"]+"\n\n"' |
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 | |
# Modified from the Legendary https://github.com/mathiasbynens/dotfiles | |
# Mathias Bynens, mathiasbynens | |
# Close any open System Preferences panes, to prevent them from overriding | |
# what removed all the apps from dock? | |
# settings we're about to change |
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 | |
desc='My gist poster didnt want to add a description, boo hoo. The script posting robot has added this message. For your pleasure.' | |
function post_private_gist () { | |
[[ -z "$1" ]] && {echo "Usage: post_private_gist [filename] [description]" } | |
[[ -z "$2" ]] && {echo "No description, must be really awesome code."} | echo "Missing filename and description" | |
desc=$2 |
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
##################################### | |
# curl -Lo /tmp/docker-functions http://j.mp/docker-functions && source /tmp/docker-functions | |
##################################### | |
DOCKER_FUNCTION_VERSION=0.9 | |
alias dps='docker ps' | |
alias dpsa='docker ps -a' | |
alias drun='docker run -it --rm' | |
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://transfersh.pleasemarkdarkly.com/XSkei/transfer.sh | |
# http://bit.ly/2QJUGkL | |
# This gist | |
# http://bit.ly/2FpgtZz | |
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null;fi;} |
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 | |
#-------------------------------------------------------------------------------------------------- | |
# log4bash - Makes logging in Bash scripting suck less | |
# Copyright (c) Fred Palmer | |
# Licensed under the MIT license | |
# http://github.com/fredpalmer/log4bash | |
# https://git.io/Jep8T | |
#-------------------------------------------------------------------------------------------------- | |
set -e # Fail on first error |
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 | |
#-------------------------------------------------------------------------------------------------- | |
# Script to create videos from PNGs with watermark and music, royality free except the marketing | |
# images, predominately for www.natasha-pannkina.com's illustrations. | |
# | |
# 2020 license is simply to reference www.natasha-pankina.com's illustrations on your blog AND | |
# with any file you create with this tool, notify her and she'll reference you too | |
# | |
# logging support: http://pretty.pleasemarkdarkly.com:8080/bsR9l/log4bash.sh |
OlderNewer