Skip to content

Instantly share code, notes, and snippets.

View Jun-Dai's full-sized avatar

Jun-Dai Bates-Kobashigawa Jun-Dai

View GitHub Profile
@Jun-Dai
Jun-Dai / purge_emails.gs
Created March 1, 2015 21:19
GoogleScript for purging old e-mails based on patterns
var CONFIGS = [
{ search: "label:github", after_days: 5 },
{ search: "label:tlug", after_days: 30 },
{ search: "from:Trello", after_days: 30 },
{ search: "from:Quora Digest", after_days: 10 }
];
var SAVE_EMAIL_LABEL = "saved";
var EMAIL_FOR_SUMMARIES = "you@me.com";
var SEARCH_LIMIT = 100;
@Jun-Dai
Jun-Dai / food.md
Last active October 13, 2019 11:00
Things to do in Japan

Tokyo

Types of food to eat in Tokyo

  • ramen
    • This should not be super fancy. There are lots of places. My favourite is Basanova in Setagaya
  • yakitori
    • Lots of good places abound. Fancy ones in Ginza, cheap ones all over. One I really liked was this place
  • tonkatsu
  • This is one that's good to have at a fancy place. This place is pretty good, but any fancy place in a mall is generally good
@Jun-Dai
Jun-Dai / README.adoc
Last active August 27, 2015 15:53
Testing ascii doc

This is a test.

  1. I am a dot

    1. I am a subdot

  2. I am a toplevel dot

@Jun-Dai
Jun-Dai / README.md
Last active January 12, 2016 22:16
San Francisco

Burritos

  • Taquerías
    • El Farolito
    • La Taquería Cancún
    • others are good, but those are my regulars.
  • Meats
    • carne asada and carnitas: these are sort of the default meats
    • al pastor: my favourite. Marinated pork
  • chorizo: the most strongly flavoured one. It's a greasy Mexican sausage.
@Jun-Dai
Jun-Dai / Specific examples.md
Last active May 16, 2016 13:29
Idioms I like

Shell commands

Running a command on the shell and getting the output

# Ruby, Perl
foo = `ping -c 1 8.8.8.8`

Iterating an iterable

Iterating and performing an action on each value

@Jun-Dai
Jun-Dai / README.md
Last active December 7, 2022 17:07
Things to do in London

Food/drink experiences, by order of importance

  • Sunday Roast
  • English Breakfast
  • Craft beer pub
  • Tea
  • British desserts
  • Cocktail bar
  • Pie and mash
  • great, but not authentic: Battersea Pie Station. Authentic, but not to everyone's taste: M Manze's
@Jun-Dai
Jun-Dai / README.md
Last active May 20, 2016 12:40
Things to do in Sydney

Manly and Bondi beaches are amazing and popular. In both cases, it's great walking along the shore and see the smaller beaches, each of which have their own character. Bondi -> Coogee is a great beach walk, and Dee Why -> Manly is an even nicer walk.

Coffee (some order of preference):

  • Mecca
  • Black Star Pastries - amazing coffee, but awesome pastries, food, cakes too
  • Workshop Espresso
  • Central Roasters
  • Gumption
  • Kingswood Coffee
  • Central Baking Depot
@Jun-Dai
Jun-Dai / output.log
Created June 1, 2016 16:50
Trying to force TLS v1.2
java -Ddeployment.security.SSLv2Hello=false -Ddeployment.security.SSLv3=false -Ddeployment.security.TLSv1=false -Ddeployment.security.TLSv1.1=false -Ddeployment.security.TLSv1.2=true -Djavax.net.debug=ssl jundai.app.App https://www.google.com/finance
trigger seeding of SecureRandom
done seeding SecureRandom
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_GCM_SHA256
@Jun-Dai
Jun-Dai / conversions.md
Last active January 11, 2017 20:36
Energy
Thing Type kCal Watt-hours BTUs
Mainspring 2824-2 in ETA watch mechanical storage 0.00007 0.00008 0.0002
100g of carbon-14 over a day radioactive storage 0.359 0.4167 1.42
100kg of rocks 5 meters above the ground mechanical storage 1.195 1.39 4.74
iPhone 7 Plus battery electrochemical storage 9.533 11.08 37.8
1L of water from 20C to boiling heat work 80 93 317
70 kg person taking the stairs at Covent Garden mechanical work 80.64 93.7 320
2 oz. Snickers Bar fuel 266 309.151 1055
typical daily energy use of a 74kg human work 2500 2906 9914