Skip to content

Instantly share code, notes, and snippets.

View ChristianBagley's full-sized avatar

Christian Bagley ChristianBagley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am christianbagley on github.
  • I am christianb (https://keybase.io/christianb) on keybase.
  • I have a public key whose fingerprint is 727E BBB4 9122 3421 9080 6457 6B8D 62C0 FE68 16C1

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am christianbagley on github.
  • I am christianb (https://keybase.io/christianb) on keybase.
  • I have a public key ASADQvqk5wE6nY66_KQ2qlIznkuREEUjmFVOa1v2Gy-eSwo

To claim this, I am signing this object:

@ChristianBagley
ChristianBagley / Untitled-1
Created December 16, 2015 20:56
gmail keyword filters for newsletters
unsubscribe OR opt - out OR "opt out"
OR "mail preferences"
OR "email preferences"
OR "manage notifications"
OR "manage your notifications"
OR "manage alerts"
OR "alert preferences"
OR "list:yahoogroups"
OR "list:googlegroups"
OR "list:listserv"
@ChristianBagley
ChristianBagley / commandlinefu
Created January 1, 2016 21:07 — forked from seungwon0/commandlinefu
Simple shell script using commandlinefu.com API
#!/bin/sh
#
# commandlinefu - Simple shell script using commandlinefu.com API
#
# All commands sorted by date:
# % commandlinefu
#
# All commands sorted by votes:
# % commandlinefu -v
#
@ChristianBagley
ChristianBagley / # macvim - 2016-01-07_22-22-19.txt
Created January 8, 2016 03:23
macvim on OS X 10.11.2 - Homebrew build logs
Homebrew build logs for macvim on OS X 10.11.2
Build date: 2016-01-07 22:22:19
@ChristianBagley
ChristianBagley / app.rb
Created January 27, 2016 20:03 — forked from troelskn/app.rb
Gollum protected by HTTP Basic
require 'gollum/frontend/app'
require 'digest/sha1'
class App < Precious::App
User = Struct.new(:name, :email, :password_hash, :can_write)
before { authenticate! }
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end
helpers do
@ChristianBagley
ChristianBagley / init.lua
Created January 30, 2016 05:44 — forked from eltercero/init.lua
Config file for hammerspoon
local hotkey = require "hs.hotkey"
local application = require "hs.application"
-- HOTKEYS
local mash = {"cmd", "alt", "ctrl"}
local app_opener = {"cmd", "ctrl"}
-- Helpers
function resize_and_move(direction)
return function()
@ChristianBagley
ChristianBagley / init.lua
Created January 30, 2016 05:44 — forked from brianchung808/init.lua
My config file for Hammerspoon
local mash = {"shift", "alt"}
-- disable window animation
hs.window.animationDuration = 0
function fullscreen()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
@ChristianBagley
ChristianBagley / file
Created February 1, 2016 11:56
freedom_public
{"0.012032995977183658":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMENlm0aP3XYwddhOyIlosMzKg0ZkTcDmSM\r\nHZsAIjJ+NTjWMDo02Lh3AzpgPruquLwbqhMsDLjGZrlGGof9n6DA9c3/AAAACDxn\r\naXRodWI+wv8AAACNBBATCAA//wAAAAWCVq9H2/8AAAACiwn/AAAACZDjHBlcM1jr\r\nVP8AAAAFlQgJCgv/AAAAA5YBAv8AAAACmwP/AAAAAp4BAAAvhAEA8Wr3qEdw80b0\r\nvt9k8G87Kr709BPiulNlq1mQgEJMsJIA/RVAi8BPOB11l0Na26E2uaRcRcz9G2Gi\r\nBMTxphe0KtwWzv8AAABWBAAAAAASCCqGSM49AwEHAgMEyJadQLZXcZpjEvZQaRMD\r\nXdau9b0RdOrnzj51yKufirH6wBtN8Wph0EaRAK0DURD3r8YmHpzBrsdymZ2Qu9po\r\nJAMBCAfC/wAAAG0EGBMIAB//AAAABYJWr0fb/wAAAAmQ4xwZXDNY61T/AAAAApsM\r\nAACgVwD5AXgjfnuh+SHPWfM3fAx5tyOBxAJNyiukwLazOErb/iIA/iCT/WsSEE45\r\nmxjvwJIU4x6KnP/b/cB5TNFvpg3PFzJZ\r\n=bAeI\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}
#!/usr/bin/env python
'''
Basic Cryptanalysis
url: https://www.hackerrank.com/challenges/basic-cryptanalysis
input: space separated input cipher
output: space separated decoded message