Skip to content

Instantly share code, notes, and snippets.

@aijcoa
aijcoa / _config.yml
Last active December 21, 2015 19:39
Paginator, Page Numbers, and Excerpts in Jekyll
paginate: 5
# Look and Feel #
autoload -U colors && colors
PROMPT='%F{cyan}[%F{yellow}%~%F{cyan}]%F{blue}%f '
# Aliases #
alias ls='ls -G'
alias 2sup='ssh server -l user'
alias upload='bash ~/Documents/dev/scripts/upload.sh'
alias sfetch='bash ~/.screenfetch/screenfetch-dev'
alias c='clear'
@aijcoa
aijcoa / rvm-info
Created August 23, 2013 07:27
output of 'rvm info'
ruby-2.0.0-p247:
system:
uname: "Darwin maggot.local 12.4.1 Darwin Kernel Version 12.4.1: Tue May 21 17:04:50 PDT 2013; root:xnu-2050.40.51~1/RELEASE_X86_64 x86_64"
system: "osx/10.8/x86_64"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)"
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"
rvm:
version: "rvm 1.22.3 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
@aijcoa
aijcoa / urlshort.sh
Last active December 21, 2015 04:49 — forked from tybenz/urlshort.sh
Quick fork of tybenz' urlshort.sh to include https support.
#!/bin/bash
echo "Generating URL..."
FULL_PATH="/Users/fin/Documents/dev/projects/urlshort"
#Count is kept based on a list.txt file
#list.txt is a plain text file meant to show relationships between URLs
#Instead of a running count, we just count the lines in list.txt
INITIAL=`echo -n $(cat $FULL_PATH/list.txt | wc -l)`
NUM="$INITIAL/4"