Skip to content

Instantly share code, notes, and snippets.

@Jurawa
Jurawa / dark-slack.js
Last active June 8, 2018 15:07
Dark Slack Custom
//
// Install instructions: https://github.com/widget-/slack-black-theme
//
// First make sure the wrapper app is loaded
document.addEventListener("DOMContentLoaded", function() {
// Then get its webviews
let webviews = document.querySelectorAll(".TeamView webview");
@Jurawa
Jurawa / export-aws-creds.sh
Created October 13, 2017 17:33
Export AWS env vars from AWS credentials and set profile in one step.
#!/usr/bin/env bash
# export-aws-creds.sh
# https://github.com/jurawa
# When sourced, this script will export the AWS_ACCESS_KEY_ID and
# AWS_SECRET_ACCESS_KEY env vars from a specific profile in
# ~/.aws/credentials.
# It will also set AWS_PROFILE and AWS_DEFAULT_PROFILE, ensuring
@Jurawa
Jurawa / my_fav_podcasts.md
Created October 14, 2016 15:30
My Favorite Podcasts

My Fav Podcasts

Note: for listening on iOS, you can use the apple podcast app which is fine, but I recommend getting either Downcast or Overcast which are both great podcast listening / management apps.

Stuff You Should Know

http://www.stuffyoushouldknow.com/

Probably the first one i started with. A must.

From wikipedia:

@Jurawa
Jurawa / Rails-local-development-with-SSL-on-Mac-OS-X.md
Last active December 9, 2021 22:24
Rails local development with SSL on Mac OS X

Assumes you will be running your local app at local.dev, and already have a hosts file entry for this domain pointing to 127.0.0.1.

Generate self-signed cert and key

openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -keyout ~/path/to/local.dev.key -out ~/path/to/local.dev.crt

You can leave all the address and organization info blank.

@Jurawa
Jurawa / phone_numbah.rb
Created February 5, 2014 19:51
Returns all the possible letter combinations for a given phone numbah.
##
# To run:
# irb > require '[PATH_TO_FILE]/phone_numbah'
# irb > PhoneNumbah.show_possibilities [PHONE_NUMBAH]
##
class PhoneNumbah
Digits = { "1" => ["1"],
"2" => ["A", "B", "C"],
"3" => ["D", "E", "F"],
@Jurawa
Jurawa / Ruby falcon patch speed results
Created March 18, 2013 20:57
Ruby falcon patch speed results
The effect of http://blog.rubyhead.com/2012/12/02/speed-up-your-ruby/ tested on a 2010 Macbook pro.
Original with ruby 1.9.3p327:
ruby -v
ruby 1.9.3p327 (2012-11-10) [x86_64-darwin12.2.0]
time rake environment
real 0m35.411s