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
<?php
$var = null;
$start1 = microtime(true);
$i = 0;
while($i < 10000000){
$ret1 = $var === null;
$i++;
}
#!/bin/sh
# 9.8.2O-124_SPUEM-14_S7_USASPDRICS01VFFE1007.0R_USASPDRJBVFFR_P018_A015_p2b_S1FF_fb_CFC.xml
fastboot flash mbm allow-mbmloader-flashing-mbm.bin
fastboot reboot-bootloader
fastboot flash mbmloader mbmloader.bin
fastboot flash mbm mbm.bin
fastboot reboot-bootloader
fastboot flash cdt.bin cdt.bin_signed
fastboot erase cache
fastboot erase userdata
@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!

@PyYoshi
PyYoshi / cmdline.log
Last active August 29, 2015 14:06
303sh
androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.serialno=356593052817305 androidboot.wakeinfo=65535 androidboot.pmicinfo=6 androidboot.colorver=07 androidboot.fotainfo=0 androidboot.recovery=0 androidboot.hotstandby=0 androidboot.emmc=true androidboot.baseband=msm
@PyYoshi
PyYoshi / _.md
Last active August 29, 2015 14:06
Linode 1GB, Conoha 1GB, Sakura VPS 2GB

Linode 1GB

cat /proc/version

# cat /proc/version
Linux version 3.15.4-x86_64-linode45 (maker@build) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Mon Jul 7 08:42:36 EDT 2014

cat /proc/cpuinfo

{
"en-US" : "English (US)",
"ja" : "日本語"
}
@PyYoshi
PyYoshi / unixbench5.1.3.log
Last active August 29, 2015 14:08
MBP 2010 Mid
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: IDEMO-BUILDSRV-MBP2010.local: Darwin
OS: Darwin -- 14.0.0 -- Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64
Machine: x86_64 (unknown)
Language: en_US.utf8 (charmap="US-ASCII", collate=)
CPU 0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz (0.0 bogomips)
MMX, Physical Address Ext, SYSENTER/SYSEXIT, Intel virtualization
CPU 1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz (0.0 bogomips)
@PyYoshi
PyYoshi / yield.go
Last active August 29, 2015 14:22
PythonのyieldをGolangで
// Thanks mattn_jp!!: https://twitter.com/mattn_jp/status/605581283238944768 http://play.golang.org/p/Tzaoh3liuN
package main
import "fmt"
type Tower struct {
Floor int
}
--without-pear
--with-gd
--enable-sockets
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-kerberos
@PyYoshi
PyYoshi / info.md
Created July 10, 2015 13:38
web application framework benchmarks

revision

231fdbc9b7f815abd7ff95d32d3576cb78afb91c

Host

lsb_release -a

Distributor ID:	Ubuntu