Skip to content

Instantly share code, notes, and snippets.

@timball
timball / de-amazon-kindle.sh
Created October 5, 2017 03:26
this makes the amazon kindle fire not terrible to use
# de-amazon-kindle.sh
#
# Based on savvytechwinner windows script ...
# https://forum.xda-developers.com/amazon-fire/general/amazon-fire-utility-tool-bloat-removal-t3641151
#
# ported to mac/linux/bash ... i guess technically this would work in windows
#
# requires:
# - dialog(1)
# - savvytechwinner's zip file w/ all the .apks to be sideloaded.
# an nginx log_format that has host name included instead of regular $request
log_format combined_with_host '$remote_addr - $remote_user [$time_local] '
'"$request_method $scheme://$host$uri $server_protocol" $status $bytes_sent '
'"$http_referer" "$http_user_agent"';
@timball
timball / house-ssl-cert.txt
Created May 20, 2015 16:12
house ssl cert text
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
7e:46:cf:e4:bc:88:2a:e4:bd:e8:18:14:6d:dc:ad:ab:a9:3e:7f:6b
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=NL, L=Amsterdam, O=Verizon Enterprise Solutions, OU=Cybertrust, CN=Verizon Akamai SureServer CA G14-SHA1
Validity
Not Before: Feb 6 22:57:32 2015 GMT
Not After : Feb 6 22:57:27 2016 GMT
@timball
timball / senate-cert-text
Last active August 29, 2015 14:21
Senate Cert text output
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
c8:5c:e1:3c:9a:69:12:6c:a0:2c:63:d7:3c:4d:2c:f3
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=GB, ST=Greater Manchester, L=Salford, O=COMODO CA Limited, CN=COMODO Extended Validation Secure Server CA 2
Validity
Not Before: Oct 6 00:00:00 2014 GMT
@timball
timball / random_pi.py
Created December 19, 2014 15:06
monte carlo pi
from random import uniform
def direct_pi(N):
n_hits = 0
for i in range(N):
x, y = uniform(-1.0, 1.0), uniform(-1.0, 1.0)
if x ** 2 + y ** 2 < 1.0:
n_hits += 1
return n_hits
@timball
timball / fruits.md
Created July 9, 2014 17:26
gitlab markdown vs github markdown
fruits frequency of eat example uses
orange 6x week
  • juice
  • marmalade
apple 2x month
  • pie
  • peanut butter
pears 20x year
  • baked with cheese
  • tarts
banana 2x month
  • smoothies
  • ice cream
figs 10x week
  • breakfast tart
  • impressing the ladies
tomato 1x month
  • throwing
@timball
timball / keybase.md
Created June 5, 2014 18:50
keybase doesn't do OAuth but requires you to do unix beard like dance to prove identity AND publicly claim you are a keybase.io user .

Keybase proof

I hereby claim:

  • I am timball on github.
  • I am timball (https://keybase.io/timball) on keybase.
  • I have a public key whose fingerprint is B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54

To claim this, I am signing this object:

@timball
timball / hong shao soy beans with pork and eggs
Created May 7, 2014 20:43
hong shao soy beans w/ pork and eggs
### hong sou soy beans w/ pork and eggs
two different cooking methods, three different tastes.
## Ingredients
- two cups dry yellow soy beans soaked for half a day
- 2.5-3.5 lbs pork shoulder blade (anything w/ fat) cut into two-ish inch cubes w/ fat
- 3T light soy
- 2T shao hsing wine
- 2T dark soy (double black, mushroom black, or lucky boy soy)
- 6 steamed hardboiled eggs deshelled
@timball
timball / gist:8060853
Created December 20, 2013 20:22
fixed roomba code , but it only makes roomba continually beep ... is there somewhere w/ the full list of roomba beep codes ?
/*
* RoombaBumpTurn
* --------------
* Implement the RoombaComm BumpTurn program in Arduino
* A simple algorithm that allows the Roomba to drive around
* and avoid obstacles.
*
* Arduino pin 0 (RX) is connected to Roomba TXD
* Arduino pin 1 (TX) is connected to Roomba RXD
* Arduino pin 2 is conencted to Roomba DD
@timball
timball / gist:7241045
Created October 30, 2013 21:57
purposefully make things stairstepped ...
#!/bin/bash
while true
do
for i in $(seq 0 $(tput cols))
do
for j in $(seq 0 $i)
do
echo -n " "
done