Skip to content

Instantly share code, notes, and snippets.

Avatar
👌

@cobyism (he/they) cobyism

👌
View GitHub Profile
@cobyism
cobyism / hexagate.svg
Last active Jan 21, 2022
For anyone who isn’t able to access this New Feature™ of Twitter due to the usual Nation-state Region-centric Nonsense™ and wants to join the hex club, this is a SVG mask path similar to Twitter’s hexagonal NFT PFP implementation, except rotated 30º, because… Think Different?
View hexagate.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Development Approaches.md

== Development Approaches

Asshole Driven development (ADD) - Any team where the biggest jerk makes all the big decisions is asshole driven development. All wisdom, logic or process goes out the window when Mr. Asshole is in the room, doing whatever idiotic, selfish thing he thinks is best. There may rules and processes, but Mr. A breaks them and people follow anyway.

Cognitive Dissonance development (CDD) - In any organization where there are two or more divergent beliefs on how software should be made. The tension between those beliefs, as it's fought out in various meetings and individual decisions by players on both sides, defines the project more than any individual belief itself.

Cover Your Ass Engineering (CYAE) - The driving force behind most individual efforts is to make sure than when the shit hits the fan, they are not to blame.

Development By Denial (DBD) - Everybody pretends there is a method for what's being done, and that things are going ok, when in reality, things are a mess and the proces

View keybase.md

Keybase proof

I hereby claim:

  • I am cobyism on github.
  • I am cobyism (https://keybase.io/cobyism) on keybase.
  • I have a public key ASC_DegBn7CbCydRF-0Y8Fk9Vnu_A_OGt1kQqI4Q0B0_2Qo

To claim this, I am signing this object:

View dr-joan-chapple-nzherald-excerpt.md

Thinking outside the square (Joan Chapple)

Excerpt from: http://www.nzherald.co.nz/lifestyle/news/article.cfm?c_id=6&objectid=10517894
Author: Sarah Lang, for NZ Herald.
Originally published Monday Jun 23, 2008

Next door to Masson in a dark, decidedly-more-rudimentary house, Dr Joan Chapple sits, scanning the newspaper. Chapple's initial claim to consequence is as New Zealand's first hand surgeon and first female plastic surgeon. But at 78, with deep creases around her eyes, she couldn't be much more removed from the botoxed nip and tuck mercenaries.

@cobyism
cobyism / digital-ocean-swap.sh
Created Jun 27, 2015
Commands to create swapfile on a Digital Ocean Ubuntu droplet
View digital-ocean-swap.sh
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
free -m
@cobyism
cobyism / jsmap2coffee.rb
Created Jan 23, 2015
Reverse engineer *.js.map files to *.coffee
View jsmap2coffee.rb
#!/usr/bin/env ruby
require "json"
require "fileutils"
# Find all *.js.map files in current directory
files = Dir["./**/*.js.map"]
# Parse out the JSON
mapfiles = files.map { |f| JSON.parse File.read(f) }
@cobyism
cobyism / dslchecker.rb
Created Oct 9, 2014
Started hacking on a BT DSL checker screen scraper thing
View dslchecker.rb
require 'rubygems'
require 'nokogiri'
require "net/http"
require "uri"
class DSLChecker
def check_phone_number(number)
params = { "TelNo" => number }
endpoint = URI.parse("http://www.dslchecker.bt.com/adsl/ADSLChecker.TelephoneNumberOutput")
response = Net::HTTP.post_form(endpoint, params)
View memory-bar.coffee
command: "memory_pressure && sysctl -a | grep memsize"
refreshFrequency: 2000
style: """
// Change bar height
bar-height = 6px
// Align contents left or right
widget-align = left
@cobyism
cobyism / cask-finder.rb
Last active Dec 14, 2019
Search /Applications for apps that can be installed with `brew cask` (see http://caskroom.io)
View cask-finder.rb
#!/usr/bin/env ruby
exact_matches = {}
partial_matches = {}
no_matches = []
puts "Searching /Applications for things that exist in cask…"
Dir.glob('/Applications/*.app').each do |app|
app_name = File.basename(app)
search_term = File.basename(app, ".*").downcase.split(/\s/)[0]
@cobyism
cobyism / toast.rb
Created Jun 1, 2014
Example GIF compiler script for Toasts.
View toast.rb
#! /usr/bin/env ruby
require 'octokit'
require 'awesome_print'
require 'open-uri'
client = Octokit::Client.new(:login => ENV['GHUSER'], :oauth_token => ENV['GHTOKEN'])
repo = 'example/repo'
Dir.mkdir('build') if !File.exists?('build')