Skip to content

Instantly share code, notes, and snippets.

Matt Bond zxaos

Block or report user

Report or block zxaos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View redact.rb
puts "Enter some text: "
text = gets.chomp
puts "Enter redact: "
redact = gets.chomp
words = text.split(" ")
words.each do |word|
if word == redact
print "REDACTED"
View gist:10043329

Keybase proof

I hereby claim:

  • I am zxaos on github.
  • I am zxaos (https://keybase.io/zxaos) on keybase.
  • I have a public key whose fingerprint is 4DEC D6F9 9F9A 0F5C 239A D338 F3C0 6849 6079 D61C

To claim this, I am signing this object:

@zxaos
zxaos / tm2iterm.rb
Last active Dec 20, 2015 — forked from sourcebits-arjunvariar/tm2iterm.rb
Remove requirement for rubygems. Tested on ruby 2.0
View tm2iterm.rb
#!/usr/bin/env ruby
#
# This script is an astonishing feat of top notch
# rockstar craftsmanship. It totally uses artificial
# intelligence to extract colors out of tmTheme and
# build an itermcolors scheme file for iTerm2.
#
# I know this sounds crazy, but it actually knows
# approximately what colors should be used in the
# ANSI list, and tries to find nearest colors from
View compasswatcher.sh
#! /bin/sh -e
### BEGIN INIT INFO
# Provides: compasswatcher
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the compass watch process for each directory
### END INIT INFO
You can’t perform that action at this time.