Skip to content

Instantly share code, notes, and snippets.


Justin Force e0da

View GitHub Profile
View hideHangoutsInInbox.js
// ==UserScript==
// @name Hide Hangouts in Inbox
// @namespace
// @version 0.1
// @description try to take over the world!
// @author Justin Force
// @match*
// @grant none
// ==/UserScript==
e0da / ascii_only.rb
Created Jan 29, 2016
Report non-ASCII characters in a file
View ascii_only.rb
#!/usr/bin/env ruby
# x starts at 0 because we increment x BEFORE checking the character.
# y starts at 1 because we only increment it when we hit a newline.
x, y = 0, 1
puts 'Positions are 1-indexed, NOT 0-indexed.'
puts 'i.e. The first character in the file is at position 1:1'
View bg-color.html
<!doctype html>
(function () {
'use strict';
var currentColor, colors, style, FORWARD, BACK;
# aptitude is incompatible with a terminal in solarized dark.
# So we need to tweak aptitude's color style.
# Put the following lines in `/etc/apt.conf` or `~/.aptitude/config`.
Aptitude::UI::Styles {
Default {
bg default;
DepBroken {
fg white;
View extend.rb
module Helpers
def help
puts 'helpful!'
class Foo
def get_help
self.extend Helpers
View .Xdefaults
! Xft settings
Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
View thing.diff
dan@app05:/nutricate/production/app$ git status
# On branch deploy
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
# modified: admin/config/email.yml
# modified: admin/config/environments/admin.rb
# modified: admin/config/initializers/recaptcha.rb
# modified: instance/init_scripts/admin
View query.sql
SELECT "message_images"."id" AS t0_r0,
"message_images"."name" AS t0_r1,
"message_images"."name_on_disk" AS t0_r2,
"message_images"."entity_id" AS t0_r3,
"message_images"."created_by" AS t0_r4,
"message_images"."create_method" AS t0_r5,
"message_images"."created_on" AS t0_r6,
"message_images"."modified_by" AS t0_r7,
"message_images"."updated_on" AS t0_r8,
"message_images"."activate_at" AS t0_r9,
View znc.supervisor.conf
# cat /etc/supervisor/conf.d/znc.conf
command = /usr/bin/znc
user = force
directory = /home/force
redirect_stderr = true
You can’t perform that action at this time.