Skip to content

Instantly share code, notes, and snippets.

@jimray
jimray / config-install.sh
Last active September 20, 2023 18:32
Set up a dotfiles-style bare git repo. Install: curl -Lks https://gist.githubusercontent.com/jimray/dad38720ddcfbca58e8f5a1ac1af00d7/raw | /bin/bash
# originally here: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
#
# install:
# curl -Lks https://gist.githubusercontent.com/jimray/dad38720ddcfbca58e8f5a1ac1af00d7/raw | /bin/bash
git clone --bare https://github.com/jimray/config.git $HOME/.cfg
function config {
local git_path
git_path=$(which git) # Get the path to the user's installed Git
@jimray
jimray / bcp.sh
Created February 4, 2015 21:59
Base64 encode a file and copy the resulting output to the clipboard
# Base64 encode a given file and copy the resulting output to the clipboard
base64copy() { openssl base64 -A -in $1 | pbcopy }
alias bcp=base64copy

Keybase proof

I hereby claim:

  • I am jimray on github.
  • I am jimray (https://keybase.io/jimray) on keybase.
  • I have a public key whose fingerprint is E18B 0520 3AC8 9061 6281 F726 8988 7709 C27E 37A3

To claim this, I am signing this object: