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) %>"
);
@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"
@base10
base10 / personal-laptop.txt
Created October 15, 2013 15:13
Ruby Friends, I'm having some trouble with Net::SSH on a machine connecting to a local virtual machine, created through veewee. When veewee attempts to connect to the VM it just created, it fails with an authentication error. I've reduced it to Net::SSH as the issue. I've spun up a virtual machine through veewee on two machines (Ruby 2.0.0 on bo…
D, [2013-10-10T10:17:22.970863 #12659] DEBUG -- net.ssh.transport.session[3fdf324ca274]: establishing connection to 127.0.0.1:7222
D, [2013-10-10T10:17:22.971295 #12659] DEBUG -- net.ssh.transport.session[3fdf324ca274]: connection established
I, [2013-10-10T10:17:22.971369 #12659] INFO -- net.ssh.transport.server_version[3fdf324cf634]: negotiating protocol version
D, [2013-10-10T10:17:22.975480 #12659] DEBUG -- net.ssh.transport.server_version[3fdf324cf634]: remote is `SSH-2.0-OpenSSH_5.3'
D, [2013-10-10T10:17:22.975552 #12659] DEBUG -- net.ssh.transport.server_version[3fdf324cf634]: local is `SSH-2.0-Ruby/Net::SSH_2.7.0 x86_64-darwin12.4.0'
D, [2013-10-10T10:17:22.977023 #12659] DEBUG -- tcpsocket[3fdf324cfe7c]: read 784 bytes
D, [2013-10-10T10:17:22.977121 #12659] DEBUG -- tcpsocket[3fdf324cfe7c]: received packet nr 0 type 20 len 780
I, [2013-10-10T10:17:22.977179 #12659] INFO -- net.ssh.transport.algorithms[3fdf324cea40]: got KEXINIT from server
I, [2013-10-10T10:17:22.977275 #12659] INFO -- net.ssh.tra