Skip to content

Instantly share code, notes, and snippets.

View jahkeup's full-sized avatar

Jacob Vallejo jahkeup

View GitHub Profile
@jahkeup
jahkeup / install_homebrew.rb
Created November 14, 2011 13:36 — forked from fenollp/install_homebrew.rb
(PowerPC) - Installs Homebrew to /usr/local so you don't need sudo to `brew install`
#!/usr/bin/ruby
# This script installs to /usr/local only. To install elsewhere you can just
# untar https://github.com/sceaga/homebrew/tarball/powerpc anywhere you like.
# ruby -e "$(curl -fsSL https://raw.github.com/gist/1363966)"
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
@jahkeup
jahkeup / rdhcpd.rb
Created June 24, 2012 06:57 — forked from telamon/rdhcpd.rb
Pure ruby DHCP server
' Copyright (c) 2007, Tony Ivanov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
require 'formula'
class Saltstack < Formula
homepage 'http://saltstack.org'
url 'https://github.com/saltstack/salt/archive/v0.13.1.zip'
sha1 '56ee585b42c9f45330fb76f5a3c4bd2259a116a0'
depends_on 'libyaml'
depends_on 'msgpack'
depends_on 'swig' => :build
@jahkeup
jahkeup / 0_reuse_code.js
Created February 7, 2014 18:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am jahkeup on github.
  • I am jake (https://keybase.io/jake) on keybase.
  • I have the public key with fingerprint 5C50 4009 046C 4E1D 7673  CD76 8AB4 349F CA15 6BF8

To claim this, I am signing this object:

angular.module("ng-select2", [ 'ng' ]).directive("ngSelect2", function($timeout) {
return {
restrict : "AE",
link : function(scope, element, attrs) {
return $timeout(function() {
return $(element).select2();
});
}
};
});
@jahkeup
jahkeup / zoc_gns3_console.applescript
Last active August 29, 2015 14:02
GNS3 Console connect via ZOC6
-- Jake Vallejo
-- Drop this file in GNS3.app/Contents/Resources, name it something, and then change the <script_name> to match.
-- GNS3 cmd: cat ../Resources/<script_name>.applescript | sed s/TELNETHOST/%h:%p/ | sed s/HOSTNAME/%d/ | osascript -
tell application "zoc6"
activate
set location to "TELNETHOST"
start conversation
perform "ZocSessionTab" using ["NEWSESSION", "HOSTNAME", "1", "##NULL##", "telnet!" & location]
end conversation

Keybase proof

I hereby claim:

  • I am jahkeup on github.
  • I am jake (https://keybase.io/jake) on keybase.
  • I have a public key whose fingerprint is ECD9 3D04 EFA3 4C14 5FA5 E8F1 DE27 4C9C 098D 9508

To claim this, I am signing this object:

@jahkeup
jahkeup / configuration.nix
Created April 21, 2018 22:17
NixOS qcow2 build
{ hostName, pkgs, ... }:
{
imports = [
./hardware.nix
];
networking.hostName = hostName;
time.timeZone = "America/Los_Angeles";
system.copySystemConfiguration = true;
@jahkeup
jahkeup / Dockerfile
Last active September 12, 2018 14:34
standard_init_linux.go:190: exec user process caused "no such file or directory" - ECS AMI Test
FROM busybox:latest
RUN echo "#!/no/interpreter" >> /nointerp.sh && \
chmod +x /nointerp.sh && \
echo "#!/bin/env ruby" >> /missing-from-path.sh && \
cp /missing-from-path.sh /nochmod.sh && \
chmod +x /missing-from-path.sh