Skip to content

Instantly share code, notes, and snippets.

View PyYoshi's full-sized avatar
🌍
Working from The World

MISAWA Yoshihiro PyYoshi

🌍
Working from The World
View GitHub Profile
#!/usr/bin/env ruby
#
# Originally written by http://redartisan.com/tags/csv
# 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
PyYoshi / command.sh
Created September 25, 2017 04:05 — forked from peterdemartini/command.sh
Exclude node_modules in timemachine
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
@PyYoshi
PyYoshi / _results.txt
Last active August 3, 2018 08:47 — forked from maxpert/results.txt
JSON vs MsgPack using Gzip + LZ4
---------- 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
PyYoshi / run.sh
Last active April 25, 2016 12:55 — forked from matope/string_join_benchmark.go
Golang string join benchmark
#!/bin/bash
go version
go test -benchmem -bench .
@PyYoshi
PyYoshi / HOWTO.md
Last active August 29, 2015 14:06 — forked from tdragonite/HOWTO.md
  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: ./itunes-festival.sh day artist
  5. Have fun.

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