Skip to content

Instantly share code, notes, and snippets.

@twardnw
twardnw / .tmux.conf
Created May 1, 2018 17:15
tmux conf that makes it behave more like screen
# bind to Ctrl-a
set-option -g prefix C-a
# more intuitive split bindings
unbind % # Remove default binding since we’re replacing
bind | split-window -h
bind - split-window -v
# set up status bar
set -g status-bg black

Keybase proof

I hereby claim:

  • I am twardnw on github.
  • I am twardnw (https://keybase.io/twardnw) on keybase.
  • I have a public key ASCZspddSLQvqERyal8q5Qbwy_Nqlf3SN6zrSr_WOjLVxQo

To claim this, I am signing this object:

@twardnw
twardnw / slack_files_cleanup.rb
Created August 8, 2017 17:14
script to delete public files in Slack org, anything > 30 days is deleted
require 'net/http'
require 'json'
require 'uri'
@token = ''
@count = 0
def list_files
ts_to = (Time.now - 30 * 24 * 60 * 60).to_i # 30 days ago
params = {
token: @token,