Skip to content

Instantly share code, notes, and snippets.

View digitalknk's full-sized avatar

Jon Molina digitalknk

View GitHub Profile
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
@digitalknk
digitalknk / #
Created January 8, 2010 11:02 — forked from rmanalan/gist:161461
script/generate plugin HelloWorld
# vendor/plugins/hello_world/init.rb
Rails.configuration.gem "sinatra"
Rails.configuration.middleware.insert_before("ActionController::Failsafe", "HelloWorld")
# vendor/plugins/hello_world/lib/hello_world.rb
# your sinatra app goes here...
require 'sinatra/base'
class HelloWorld < Sinatra::Base
#Ruby
Area = '555' # My area code
Tz = -8 # Time zone (GMT-8)
# Speed dial entries. Format: "key" => "number"
Speeddial = {
'0' => '555-5555', # Home
'1' => '1 555 555-5555', # Another Number
@digitalknk
digitalknk / hack.sh
Created April 2, 2012 17:51 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
from datetime import datetime
import urllib2
import urllib
import json
import os
def ajaxRequest(url=None):
"""
Makes an ajax get request.
url - endpoint(string)

Setting up a Persistent, Unified Chat Proxy & Shell Client

Overview

This guide provides a steps for setting up a unified shell chat proxy & client running in a persistent screen session. The following steps are covered:

  • Server operating system & packages will be updated.
  • Timezone will be updated.
### Keybase proof
I hereby claim:
* I am digitalknk on github.
* I am digitalknk (https://keybase.io/digitalknk) on keybase.
* I have a public key whose fingerprint is 0D61 DE94 BA6E E570 6FC4 F2EE F3FC 5EE9 83E7 BA89
To claim this, I am signing this object:
@digitalknk
digitalknk / auto-remove-sublime-license-popup
Created March 1, 2017 00:27 — forked from egel/auto-remove-sublime-license-popup
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
Verifying my Blockstack ID is secured with the address 1FTKKCiCFQFA4oW9B2pxZpe1BFnxQvWr88 https://explorer.blockstack.org/address/1FTKKCiCFQFA4oW9B2pxZpe1BFnxQvWr88
@digitalknk
digitalknk / main.go
Created April 29, 2018 23:06 — forked from eduncan911/main.go
Go/Reading Console Inputs
package main
import (
"bufio"
"fmt"
"os"
"strings"
)
func main() {