Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

MISAWA Yoshihiro PyYoshi

🏠
Working from home
Block or report user

Report or block PyYoshi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ruby script to convert CSV to YAML
#!/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 Sep 25, 2017 — forked from peterdemartini/command.sh
Exclude node_modules in timemachine
View command.sh
find `pwd` -type d -maxdepth 3 -name node_modules | xargs -n1 sudo tmutil addexclusion -p
@PyYoshi
PyYoshi / _results.txt
Last active Aug 3, 2018 — 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
PyYoshi / run.sh
Last active Apr 25, 2016 — forked from matope/string_join_benchmark.go
Golang string join benchmark
View run.sh
#!/bin/bash
go version
go test -benchmem -bench .
View 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!

You can’t perform that action at this time.