Skip to content

Instantly share code, notes, and snippets.

@byteme206
byteme206 / filemover.sh
Last active Dec 20, 2018
Quick example
View filemover.sh
#!/usr/bin/env sh
# Add a sanity check to make sure that the required arguments are there when the script was called
if [[ -z $2 || -z $1 ]]; then # The "-z" flag tests for a null value
echo "Sorry, but you need to provide a source and destination directory, like this:"
echo " ./filemover.sh source_dir destination_dir"
exit 1
fi
View keybase.md

Keybase proof

I hereby claim:

  • I am byteme206 on github.
  • I am byteme206 (https://keybase.io/byteme206) on keybase.
  • I have a public key ASD_ZLB_wxFeCyiNi5QRtNOL6BjNd4BppAz3TmSOSnNw8Ao

To claim this, I am signing this object:

@byteme206
byteme206 / oba.rb
Last active Nov 19, 2015 — forked from mapledyne/oba.rb
Local bus info widget in Dashing
View oba.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
## Forked from https://gist.github.com/mapledyne/4d3e417f2fef2d1ab83d#file-oba-rb
#
# To use, add an instance of the Meter widget to your dashboard for each route using the naming convention
# 'oba_<ROUTE>'. The <ROUTE> should match the display values for the routes you add to the rides hash below.
# Set walktime to the average walking time to the closest station(s) for the given routes