Skip to content

Instantly share code, notes, and snippets.

@squarism
squarism / iterm2.md
Last active Oct 23, 2021
iterm2 cheatsheet
View iterm2.md

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@squarism
squarism / boolfail.py
Last active Sep 21, 2015 — forked from tlehman/boolfail.py
Redefine true and false in python
View boolfail.py
# Python boolean fail
# Or how to redefine True and False and win any argument on the internet!
# Love, @tlehman
from unittest import TestCase
class BoolFail(TestCase):
def test_false(self):
True = False
assert True == False
@squarism
squarism / bot.rb
Created Nov 26, 2011 — forked from muffinista/bot.rb
bot reply test
View bot.rb
$LOAD_PATH.unshift File.dirname(__FILE__) + "/lib"
require 'chatterbot/dsl'
require 'pokerthing'
exclude "http://" # block spam tweet
blacklist "jerkface, assbutt" # block jerks or self
#debug_mode true