Skip to content

Instantly share code, notes, and snippets.

Working from home

MISAWA Yoshihiro PyYoshi

Working from home
View GitHub Profile
View Ruby script to convert CSV to YAML
#!/usr/bin/env ruby
# Originally written by
# Added and minor changes by Gavin Laking
# Rewritten by Andrew Bennett for Ruby 1.9
# Usage: ruby csv_to_fixture.rb file.csv [--json]
# "id","name","mime_type","extensions","icon_url"
# "1","unknown","unknown/unknown","||","/images/icon/file_unknown.gif"
PyYoshi /
Created September 25, 2017 04:05 — forked from peterdemartini/
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
PyYoshi / _results.txt
Last active August 3, 2018 08:47 — forked from maxpert/results.txt
JSON vs MsgPack using Gzip + LZ4
View _results.txt
---------- RAW ----------
JSON 34291 byte(s)
MsgPack 26364 byte(s)
---------- GZIP ---------
JSON 05986 byte(s)
MsgPack 06198 byte(s)
---------- LZ4 ----------
JSON 09758 byte(s)
MsgPack 08548 byte(s)
PyYoshi /
Last active April 25, 2016 12:55 — forked from matope/string_join_benchmark.go
Golang string join benchmark
go version
go test -benchmem -bench .
PyYoshi /
Last active August 29, 2015 14:06 — forked from tdragonite/
  1. Get your cookie. Either proxy your iPhone/iPod/iPad and record the cookie using the proxy server of your choice or capture the request using your AP with Wireshark or similar
  2. Make sure you have a cookie like AKCNTYPE=WIFI; AKID=abc; token=expires... and put it in ~/cookie
  3. Find the name and day of the artist you want to load, replace whitespace with underscores.
  4. Launch the script: ./ day artist
  5. Have fun.

Working for iTunes Festival September 2014. Also on OS X. Tnx to the original creator!