Skip to content

Instantly share code, notes, and snippets.

View meeh420's full-sized avatar

Meeh meeh420

View GitHub Profile
@meeh420
meeh420 / gist:ef2ddac29ece9ebcd3b8
Created January 3, 2016 18:43 — forked from marcelmorgan/gist:4046271
Bootstrap Chef on Archlinux
#!/usr/bin/env bash
pacman -Syyu
pacman -S ruby rsync base-devel
gem install chef ruby-shadow --no-ri --no-rdoc --no-user-install
@meeh420
meeh420 / binarytree.rb
Last active August 29, 2015 14:25 — forked from yuya-takeyama/binarytree.rb
Binary Tree implemented in Ruby.
module BinaryTree
class Node
attr_reader :word, :count, :left, :right
include Enumerable
def initialize(word)
@word, @count = word, 1
end
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.35-rc5
# Thu Jul 22 23:09:57 2010
#
# CONFIG_64BIT is not set
CONFIG_X86_32=y
# CONFIG_X86_64 is not set
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
@meeh420
meeh420 / ABOUT
Last active August 29, 2015 14:07 — forked from anonymous/ABOUT
The Goals of this Gist are to:
[1] Increase the GnuPG key size limit beyond 4096 bits.
[2] Provide configuration files that maximize security and anonymity.
For now, the ideal configuration files have been provided.
The Debian_Linux_GnuPG_Compiler.bash script works to build GnuPG with the 4096 bit key size limit raised.
Please provide input. Feedback and changes welcome.
require 'digest/md5'
hash = {}
Dir.glob("**/*", File::FNM_DOTMATCH).each do |filename|
next if File.directory?(filename)
# puts 'Checking ' + filename
key = Digest::MD5.hexdigest(IO.read(filename)).to_sym
if hash.has_key? key
@meeh420
meeh420 / 0_reuse_code.js
Created April 4, 2014 13:49
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