Skip to content

Instantly share code, notes, and snippets.

View shanebrowncs's full-sized avatar

Shane Brown shanebrowncs

View GitHub Profile
@shanebrowncs
shanebrowncs / lscrot
Last active January 25, 2021 17:49
Local screenshot tool with region select that saves to a command-line configurable directory
#!/bin/bash
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Author: Shane Brown <contact at shanebrown dot ca>
# Description: Local screenshot tool with region select that saves to a commandline configurable directory
# Dependencies: maim, exiftool, xclip
# Revision: 3 (2021-01-25)
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SAVEDIR="/home/$USER/.config/lscrot"
@shanebrowncs
shanebrowncs / Youtube-Music-Sync-pkgbuild
Last active May 15, 2017 23:50
Arch Linux PKGBUILD for Youtube-Music-Sync application
# Maintainer: Shane "SajeOne" Brown <contact@shane-brown.ca>
pkgname=youtube-sync
pkgver=1.0.3
pkgrel=2
pkgdesc="Maintains a local repository of music from a YouTube playlist"
arch=('any')
url="https://github.com/SajeOne/Youtube-Music-Sync"
license=('GPL')
depends=('python' 'youtube-dl')
makedepends=('python-setuptools')
@shanebrowncs
shanebrowncs / alarm-cli-pkgbuild
Last active January 9, 2017 01:19
Arch Linux PKGBUILD for alarm-cli application
# Maintainer: Shane "SajeOne" Brown <contact@shane-brown.ca>
pkgname=alarm-cli
pkgver=1.1
pkgrel=2
pkgdesc="Simple alarm app for the CLI"
arch=('any')
url="https://github.com/SajeOne/alarm-cli"
license=('GPL')
depends=('python')
makedepends=()
@shanebrowncs
shanebrowncs / installbeatmaps.sh
Last active September 16, 2016 02:13
Adds downloaded osu beatmaps(.osz) to opsu
#!/bin/bash
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
# Author: Shane "SajeOne" Brown
# Date: 15/09/2016
# Description: Adds downloaded osu beatmaps(.osz) to opsu
# Revision: 2 - Fixed messy output
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
FILES="./*"
set number
syntax on
set smartindent
set cindent
set shiftwidth=4
set tabstop=4
// Weapon Binds
bind "x" "slot3"
bind "c" "slot2"
bind "v" "slot1"
// Grenade Binds
bind "f" "slot7" // Flash
bind "g" "slot8" // Smoke
// Movement
@shanebrowncs
shanebrowncs / checksum.sh
Created July 13, 2015 06:04
Checksum tool for *nix
#!/bin/bash
if [ -z $1 ]
then
echo "No Files Given" && exit 1
fi
echo "MD5:" `md5sum $1`"\r\n"
echo "SHA1:" `sha1sum $1`"\r\n"
echo "SHA256:" `sha256sum $1`"\r\n"