I hereby claim:
- I am cheshire137 on github.
- I am cheshire137 (https://keybase.io/cheshire137) on keybase.
- I have a public key ASCYDtNML3BizFS2gSmgo_2osYnXm9sWQTp748en-luS6go
To claim this, I am signing this object:
| # hot-reload a Go server, ty @zerowidth | |
| # see https://github.com/eradman/entr | |
| find . -name '*.go' | entr -r -c go run . server | |
| # look for files that match two patterns | |
| grep -rl --include \*.rb --exclude-dir=vendor --exclude-dir=test "pattern the first" . | xargs grep "pattern the second" | |
| # generate a Markdown todo list of file paths | |
| some_command_outputting_a_list_of_file_paths | xargs grep -l "some pattern within some of the files" | awk '$0="- [ ] "$0' |
| #!/usr/bin/env bash | |
| for item in $(gh pr list --assignee cheshire137 --repo someUser/someRepo --state open --json headRefName,number,headRepository,headRepositoryOwner --search "updated:>=$(date -Idate)" --jq ".[]"); do | |
| number=$(jq --raw-output '.number' <<< "$item") | |
| headRefName=$(jq --raw-output '.headRefName' <<< "$item") | |
| repoName=$(jq --raw-output '.headRepository.name' <<< "$item") | |
| repoOwner=$(jq --raw-output '.headRepositoryOwner.login' <<< "$item") | |
| echo "$repoOwner/$repoName#$number $headRefName" | |
| read -r -p "Run workflow? [Y/n] " response | |
| response=${response,,} # tolower |
| RAINY NIGHT IN TALLINN Ludwig Goransson | |
| Secret Clark | |
| Lambent Rag Clark | |
| THE PLAN Travis Scott | |
| Citrus Clark | |
| FREEPORT Ludwig Goransson | |
| RED ROOM BLUE ROOM Ludwig Goransson | |
| WINDMILLS Ludwig Goransson | |
| Small Clark & Nathaniel | |
| Olson Boards of Canada |
| hello |
| #!/bin/bash | |
| # Sample use: | |
| # PATTERN="\"/some-route\"" FILE=config/routes.rb ~/bin/git-line-history.sh | |
| # Thanks to mikedillion <https://github.com/mikedillion> for the basis of this! | |
| set -e | |
| #PATTERN="version':" | |
| #FILE="setup.py" |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'mechanize' | |
| require 'json' | |
| url = "https://en.wikipedia.org/wiki/List_of_city_nicknames_in_the_United_States" | |
| STATES = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", | |
| "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", | |
| "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", | |
| "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", |
I hereby claim:
To claim this, I am signing this object:
| // 1. Go to a URL like https://github.com/my-org/my-repo/pull/1/commits | |
| // 2. Open up your browser JavaScript console. | |
| // 3. Paste the command below. | |
| // Now you have git cherry-pick commands for making a branch of those commits! | |
| var commands = '';jQuery('a.sha').each(function() { var url = $(this).attr('href'); var sha = url.split('/commit/')[1]; commands += 'git cherry-pick ' + sha + "\n"; }); console.log(jQuery.trim(commands)); |
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| path = File.expand_path('~/.*rc') | |
| Dir[path].each do |file| | |
| next unless File.file?(file) | |
| destination = file.gsub(/rc$/, 'ronaldchase') | |
| puts "#{file} -> #{destination}" | |
| FileUtils.ln_s(file, destination) |