Skip to content

Instantly share code, notes, and snippets.

View bbriggs's full-sized avatar

Bren Briggs bbriggs

View GitHub Profile
@bbriggs
bbriggs / transfer.fish
Created December 6, 2019 21:20 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@bbriggs
bbriggs / centos_install_ruby_1.9.3_and_puppet_3.8
Last active March 24, 2016 01:03 — forked from slouma2000/install_ruby_1.9.3
Install Ruby 1.9.3 on CentOS, RedHat using RVM
#Install RVM and Ruby 1.9.3
yum update -y
yum groupinstall -y "Development Tools"
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel
yum install -y libyaml-devel libffi-devel openssl-devel make
yum install -y bzip2 autoconf automake libtool bison iconv-devel
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 1.9.3
@bbriggs
bbriggs / bumpversion.sh
Created January 16, 2016 20:05 — forked from pete-otaqui/bumpversion.sh
Bump a software project's VERSION, add the CHANGES, and tag with GIT
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.