Skip to content

Instantly share code, notes, and snippets.

View timimsms's full-sized avatar
🚀

Tim Walsh timimsms

🚀
View GitHub Profile
@timimsms
timimsms / git-fork-stash.sh
Created September 21, 2017 08:13
Stash all branches listed in a provided file to a personal fork.
#!/usr/bin/env bash
#:https://stackoverflow.com/a/10929511
#
# Use: Stashing all branches listed in `to_stash.txt` in remote `timimsms`
#
# > ./git-fork-stash.sh to_stash.txt timimsms
#
[ -z "$1" ] && echo "Warning: No file provided. Exiting" && exit 1
[ -z "$2" ] && echo "Warning: No fork provided. Exiting" && exit 1
@timimsms
timimsms / r_flatten.exs
Last active January 11, 2019 23:49
Given an arbitrarily and deeply nested List of Integers, this code snippet will recursively "flatten" the found Integers into a single List.
defmodule RFlatten do
@moduledoc """
RFlatten will take an list of Integers of an arbitrary length and depth of
nesting and produce a single list containing only those Integers found.
"""
@doc """
The main recursion call allows for us to split the list into it's first
element (i.e., head) and the remainder of the problem (i.e., tail). We then
recurse through until we hit an element (i.e., call(element)) or the end of
@timimsms
timimsms / aliases.sh
Last active March 29, 2019 22:44
Show / Hide Desktop (Mac OS X)
# Note: Must be added to the bottom of your ~/.bash_proile or a
# dedicated ~/.aliases file sourced in ~/.bash/~/.bash_profile.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Used to hide all icons on the desktop user-interface.
alias restart-dns='sudo killall -HUP mDNSResponder'
alias hide-desktop='
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
echo "🙈"
@timimsms
timimsms / sampleREADME.md
Created June 27, 2020 21:59 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@timimsms
timimsms / Gemfile
Created June 30, 2020 07:14 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@timimsms
timimsms / README.md
Created July 22, 2020 22:13 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")