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
# start a fresh docker container and delete changes on exit | |
alias docker-fresh='docker run --rm -i -t ubuntu:15.04 /bin/bash' | |
# Git commit log | |
alias git-get='git log --oneline --graph' |
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 | |
# This script cleans up text files by removing non-ascii | |
# Geoffrey McClinsey | |
set -e | |
echo what file has the non-ascii text? #include path to file if not in same location as script | |
read dirty | |
echo -e "\v" |
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 stop vagrant box for use with systemd | |
# place scripts into /usr/lib/systemd/scripts/ | |
# be sure to put the .service file in /lib/systemd/system/ | |
# | |
# -- Geoffrey McClinsey | |
VAGRANTUSR=vagrant # user you want vagrant box to run as | |
VAGRANTBOXPATH= # add path to Vagrantfile |
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
# Place the following as plex.service file in ~/.config/systemd/user | |
# sudo systemctl enable ~/.config/systemd/user/plex.service | |
# sudo systemctl daemon-reload | |
# sudo systemctl restart service.service | |
[Unit] | |
Description=Plex service | |
Requires=docker.service | |
After=docker.service |
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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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 | |
# Script: my-pi-temp.sh | |
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 | |
# Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+ | |
# Updated: Geoffrey McClinsey <hashbang.sh> under GPL v2.x+ | |
# Changed: Made the output a little cleaner | |
# ------------------------------------------------------- | |
gpu=$(/opt/vc/bin/vcgencmd measure_temp) | |
cpu=$(</sys/class/thermal/thermal_zone0/temp) | |
echo "$(date) @ $(hostname)" |
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
# WD External Drives | |
PARTUUID=9a0b23dd-f3aa-904a-aa36-fbfcb89693e5 /media/WD1 ntfs-3g permissions,locale=en_US.utf8 0 2 | |
PARTUUID=135ced04-ce4e-9a4b-9501-106e92e9c435 /media/WD2 ntfs-3g permissions,locale=en_US.utf8 0 2 | |
PARTUUID=052d07e3-cc87-8647-a0cb-58f406c2513b /media/WD3 ntfs-3g permissions,locale=en_US.utf8 0 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
if ! [[ "$(uname -r)" = *Microsoft* ]]; then |
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
for file in *.avi.mkv; do | |
mv "$file" "${file/avi./}" | |
done |
OlderNewer