Skip to content

Instantly share code, notes, and snippets.

@jetpks
jetpks / get3io.rb
Created December 13, 2012 10:47
Find available three letter .io domains from list of any sized words in a file called ./wordlist.
#!/usr/bin/env ruby
require 'whois'
def load_words
three_letter_words = []
File.open('./wordlist', 'r') do |infile|
while (line = infile.gets)
next if (line == nil or line.chomp.length > 3)
three_letter_words.push(line.chomp)
end
@zhaostu
zhaostu / android
Last active December 8, 2017 17:25
Android-x86 and Chromium OS grub2 entries.
menuentry "Android-x86" {
savedefault
set root='(hd0,3)'
linux /android-4.0-RC2/kernel quiet root=/dev/ram0 androidboot.hardware=asus_laptop acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC2
initrd /android-4.0-RC2/initrd.img
}
@puffnfresh
puffnfresh / chromebook-nix.sh
Last active October 28, 2020 03:06
Installation script for Nix on ChromeOS
#!/bin/sh
sudo mount -o remount,exec /tmp
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then
echo "Launching shell with nix-* tools!"
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh
fi
set -e
@vito
vito / sshttp.go
Created March 28, 2015 22:17
golang ssh+http listener
package main
import (
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
"os"
"syscall"