Skip to content

Instantly share code, notes, and snippets.

View RickyCook's full-sized avatar
🏳️‍🌈

Ricky Cook RickyCook

🏳️‍🌈
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RickyCook
RickyCook / id_rsa.pub
Created March 7, 2016 01:27
temp ssh pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8KMhmqWn0Aeq0OVos1ka7b5zM44kDCxh7AJIMtBQQ8gQ1RNgGca/dGamkj55ogBWuKfDe03Qn/jGpW1wF4nm8khzEkPc5ygoz9B7iYod1VheUwGiO+RYu8VeZlO/BMrvYkmIAl15z4olVS6YsHOftDs+sJhI0QD/0xizw9jAihkXt5mu7y8LAMYwzpABAu8ccCcQhk67znDP2iZ++z83h1JMmSW8PcoZicvANKaYNs+t55/YA6ChhHJBZMH6tlhUpVo3thP++P/5PuWxNc9m5po1UBRAdKjuT/9mx4olQysPJgtbwY50NmtTnZeG3/diSYsAjhv4vjum+WDO2j9Yh [email protected]
def i_to_w(indexes, wordlist):
"""
Examples:
>>> wl = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
>>> i_to_w([0, 0, 0], wl)
['a', 'b', 'c']
>>> i_to_w([1, 1, 1], wl)
['b', 'c', 'd']
GROUP_BITS = 31
PRIME = 7
def ddd(index):
"""
Examples:
>>> ddd(111)
'00*00*0001***0*0*001****0**0**'
"""
install
text
skipx
unsupported_hardware
lang en_AU.UTF-8
timezone Australia/Melbourne
keyboard us
network --bootproto=dhcp
alert('loaded from github')
var smartFormsStaticPrefix = '/_smart_forms/static',
smartFormsApiPrefix = '/_smart_forms/api'
function smartFormsInit() {
var req = new XMLHttpRequest()
function transformElementUrls(el) {
var href = el.getAttribute('href'),
src = el.getAttribute('src')
if (href !== null) el.setAttribute('href', smartFormsStaticPrefix + '/' + href)
@RickyCook
RickyCook / ts-commands.md
Last active October 2, 2017 01:04
timesheet bot

Things to say:

  • Start project full project name
  • Start project fpn
  • Start new entry
  • New entry
  • Start on some entry description
  • Start on some project name
  • Start some entry description
  • Start some project name
  • End entry
@RickyCook
RickyCook / dev_setup.sh
Last active February 8, 2018 02:55
Clone truffle repos, and interlink them with all their node_modules for a full local dev environment
#!/bin/bash
set -e
this_dir="$(cd "$(dirname "$0")"; pwd)"
script_name="$0"
repo_prefix='https://github.com/trufflesuite/'
repo_suffix='.git'
@RickyCook
RickyCook / hexdump.py
Last active August 29, 2018 01:17
Approximate recreation of the ``hexdump`` CLI utility in Python
#!/usr/bin/env python
""" Approximate recreation of the ``hexdump`` CLI utility.
Several versions of the function are included:
hexdump_lines: Dumps out an iterator of lines. I/O is streamed by generators
hexdump_string: Splits, and dumps out a string
hexdump_stream: Splits, and dumps out a stream. I/O is streamed
Examples: