Skip to content

Instantly share code, notes, and snippets.

View nekoruri's full-sized avatar
🤔
にゃーん

@nekoruri nekoruri

🤔
にゃーん
View GitHub Profile
@nekoruri
nekoruri / mu_domain_mapping_utf8mb4.patch
Created May 17, 2016 14:10
utf8mb4 support for WordPress MU Domain Mapping
Index: domain_mapping.php
===================================================================
--- domain_mapping.php (revision 1418770)
+++ domain_mapping.php (working copy)
@@ -98,7 +98,7 @@
$wpdb->query( "CREATE TABLE IF NOT EXISTS `{$wpdb->dmtable}` (
`id` bigint(20) NOT NULL auto_increment,
`blog_id` bigint(20) NOT NULL,
- `domain` varchar(255) NOT NULL,
+ `domain` varchar(191) NOT NULL,
@nekoruri
nekoruri / Workshop.md
Created November 2, 2017 11:14 — forked from shundy/Workshop.md
Serverless Workshop

Event Gateway

Node のインストール

brew install nodebrew
echo 'export PATH=$PATH:$HOME/.nodebrew/ current/bin' >> ~/.bash_profile
mkdir -p ~/.nodebrew/src
nodebrew install-binary v6.11.5
@nekoruri
nekoruri / latency.txt
Created September 13, 2018 21:08 — forked from eshelman/latency.txt
HPC-oriented Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference/hit 1.5 ns 4 cycles
Floating-point add/mult/FMA operation 1.5 ns 4 cycles
L2 cache reference/hit 5 ns 12 ~ 17 cycles
Branch mispredict 6 ns 15 ~ 20 cycles
L3 cache hit (unshared cache line) 16 ns 42 cycles
L3 cache hit (shared line in another core) 25 ns 65 cycles
Mutex lock/unlock 25 ns
L3 cache hit (modified in another core) 29 ns 75 cycles