Skip to content

Instantly share code, notes, and snippets.

View b00y0h's full-sized avatar

Bob Smith b00y0h

View GitHub Profile
@b00y0h
b00y0h / dialog.html
Created August 19, 2021 13:57 — forked from coinsandsteeldev/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<!DOCTYPE html>
<html>
<head>
<script>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
@b00y0h
b00y0h / sync-to-cloud.sh
Created February 26, 2018 15:24
Sync folders to cloud/dropbox/google drive/onedrive
#!/bin/bash
# Move local user's Documents folder into Google Drive
sudo mv $HOME/Documents $HOME/Google\ Drive/Documents
#Symlink the Google Drive Documents back to the local folder
ln -s $HOME/Google\ Drive/Documents $HOME/Documents
# Move local user's Pictures folder into Google Drive
@b00y0h
b00y0h / gist:9f8f1c12ed9e0c09a3ccb814a1112cb2
Created March 28, 2017 12:22 — forked from omgmog/gist:33ec177eea6b78adbaf3
Convert an m4v to gif with ffmpeg
ffmpeg -i input.m4v -pix_fmt rgb24 -r 10 -y -s [width]x[height] output.gif
@b00y0h
b00y0h / cfg-install.sh
Last active March 6, 2020 22:28
Move dotfiles to Git bare repository
clear
echo "First checking to see XCode command line tools are installed."
if type xcode-select >&- && xpath=$( xcode-select --print-path ) &&
test -d "${xpath}" && test -x "${xpath}" ; then
echo "Yep, installed! Let's go!"
echo "-------------------------"
if [ -d $HOME/.cfg ]; then
echo "Removing old .cfg"
@b00y0h
b00y0h / screenshot.sh
Last active February 5, 2016 14:01
Screen shot your desktop
#!/bin/bash
SCRIPT=screenshot
#how long to wait between screenshots
SLEEPINT=2;
#how long to wait before not grabbing a screenshot?
MAXTIME=11;
#screen size of laptop screen
/****
SPINNER
*****/
/*
<div class="loading-container">
<div class="loader"></div>
</div>
*/