/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/thomet/d74cc9c60a75c1ef747d63893463694e/raw/multipass-mac-docker-setup.sh)"
Make sure you give multipass.app full disk access
You need to have you docker host running with docker-machine as default
brew install mycli
# @example Usage | |
# require 'open-uri' | |
# eval(open('https://gist.githubusercontent.com/thomet/474bd082e15705fdba2906a9f4ca360a/raw/5ed83ff172a408601232d5306cf214ba3bd75775/progress_bar.rb') {|f| f.read }) | |
# | |
# progress_bar(1_000) do | |
# # do something | |
# end | |
# | |
# > Progress [======================================================== 56.90 % \ (~43 seconds) |
Click on the Raw
button for the myrubocop.rb
and copy the url.
> curl <insert raw url here> > ~/.bin/myrubocop
> chmod +x ~/.bin/myrubocop
# Clone this repo into you $ZHS_CUSTOM/plguins folder and enable it as plugin in your ~/.zshrc | |
# | |
# Clone | |
# > git clone https://gist.github.com/729dbb4216c9461eeb77e7aa7bc3e748.git $ZSH_CUSTOM/plugins/gac_spec | |
# | |
# Enable plugin in ~/.zshrc (if you have other plugins enabled, add gac_spec to your list) | |
# plugins=(gac_spec) | |
function changed_ruby_files () { | |
if [ "$1" != "" ] |
#!/usr/bin/env ruby | |
require 'rubocop' | |
module DirtyCop | |
extend self # In your face, style guide! | |
def bury_evidence?(file, line) | |
!report_offense_at?(file, line) | |
end |
#!/usr/bin/env ruby | |
# | |
# <bitbar.title>Amount of Github PR's and Commits for a specific search term</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Thomas Metzmacher</bitbar.author> | |
# <bitbar.author.github>thomet</bitbar.author.github> | |
# <bitbar.desc>Shows the count of Github PR's and Commits which matches a specifc search term.</bitbar.desc> | |
# <bitbar.dependencies>ruby</bitbar.dependencies> | |
# |
#!/usr/bin/env ruby | |
# | |
# <bitbar.title>Not reviewed open Github PR's</bitbar.title> | |
# <bitbar.version>v1.0</bitbar.version> | |
# <bitbar.author>Thomas Metzmacher</bitbar.author> | |
# <bitbar.author.github>thomet</bitbar.author.github> | |
# <bitbar.desc>Shows all not from you reviewed and open Github PR's for specific users.</bitbar.desc> | |
# <bitbar.dependencies>ruby</bitbar.dependencies> | |
# |
I hereby claim:
To claim this, I am signing this object:
function sdiff() { | |
wdiff <(echo "$1") <(echo "$2") | colordiff | |
} |