Skip to content

Instantly share code, notes, and snippets.

View base10's full-sized avatar

Nathan L. Walls base10

View GitHub Profile
@base10
base10 / jira-cli.zsh
Created January 2, 2024 17:04
jira-cli tool aliases
alias board="jira issue list -C store -s 'To Do' -s 'In Progress' -s 'In QA' -s 'Peer Review' -s 'Passed QA' --order-by Status"
alias jv="jira issue view"
@base10
base10 / richmond-ideas.md
Created May 13, 2017 21:41
Richmond ideas for Wade

Richmond ideas for Minter

Food

  • Can Can (French bistro, fresh bread, great walking neighborhood) – Carytown
  • Whisk (breakfast pastries) – Shockoe Bottom

There's lots around that's very good. We've centered on the Museum District/Broad St/Carytown and a couple of things on Shockoe Bottom, but I'm sure there's stuff further afield

Activities

@base10
base10 / bcrypt_test.rb
Last active April 8, 2017 20:14
Experimenting with BCrypt
#!/usr/bin/env ruby
require 'bcrypt'
require 'benchmark'
require 'humanize'
require 'pry'
include BCrypt
guesses = Array.new
@base10
base10 / capybara cheat sheet
Created March 22, 2017 19:30 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@base10
base10 / README.md
Created March 22, 2017 16:15 — forked from ryanschwartz/README.md
Mac OS Sierra Caps Lock as tap-to-Escape press-to-Control

This has only been tested on macOS Sierra, 10.12. YMMV, caveat emptor, yadda-yadda...

You need to install Karabiner-Elements from this fork: https://github.com/wwwjfy/Karabiner-Elements, then the following will set up the default function keys and the capslock functionality (via this issue).

{
    "global": {
        "check_for_updates_on_startup": true,
        "show_in_menu_bar": false,
        "show_profile_name_in_menu_bar": false
@base10
base10 / converter.rb
Created January 22, 2017 21:17
Throwaway Scripting
#!/usr/bin/env ruby
files = [
{
source: "Caribou _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-j755GoKSrUE.mp4",
destination: "Caribou_Pitchfork_Music_Festival_Paris_2014.m4a"
},
{
source: "Four Tet Boiler Room London DJ Set-s_Bn6FlvflM.mp4",
destination: "Four_Tet_Boiler_Room.m4a"
┐┌┐┌┐
┘└┘└┘\ₒ/
┐┌┐┌┐ ∕ Still coding
┘└┘└┘ノ)
┐┌┐┌┐ on the last day,
┘└┘└┘
┐┌┐┌┐ good
┘└┘└┘
┐┌┐┌┐ luck!
│││││
@base10
base10 / create.js.erb.diff
Last active January 28, 2016 02:47
Making Capybara happy
-$("<%= escape_javascript render(@feed) %>").insertAfter(
- "tr[data-role='feed']:last-child"
+$("table[data-role='feeds']").append(
+ "<%= escape_javascript render(@feed) %>"
);
case day_of_week
when 'Monday', 'Wednesday' then hours = hours_m_w
when 'Tuesday', 'Thursday' then hours = hours_t_th
when 'Friday' then hours = hours_f
else hours = "Weekend!"
end
@base10
base10 / Vagrantfile
Last active January 3, 2016 04:29
Vagrant/Ansible bootstrap
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# NB: This is a V2 file. Vagrant 1.2 or later is required for the
# Ansible provisioner
config.vm.define :db do |db|
db.vm.box = "core-ubuntu-12.04.2"
db.vm.box_url = "http://example.com/vagrants/core-ubuntu-12.04.2.box"