Skip to content

Instantly share code, notes, and snippets.

Working from home

Yutaka Matsubara mopemope

Working from home
View GitHub Profile
mopemope /
Created Oct 4, 2011
xvideos downloader
import os
from os import path
from werkzeug import secure_filename
from tobikko.core import *
from tobikko.patch import *
import urllib2
from pyquery import PyQuery as pq
import urllib
from urlparse import urlparse
mopemope /
Last active Aug 15, 2020
# Path to Oh My Fish install.
set -gx OMF_PATH /home/ma2/.local/share/omf
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG /home/ma2/.config/omf
set fish_plugins pbcopy
set fish_greeting ""
set -x LC_CTYPE ja_JP.UTF-8
View async_dns.c
#include <ares.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
mopemope /
Created May 21, 2015

LFE 入門

近年、ネットワークアプリケーションを書くにあたり Erlang/OTP に対する注目が集まっています。 大規模サービスで使わているなどの事例が多く紹介されるようになり、導入を考えている方も多いでしょう。 ですが、Erlang は少々癖があり、難しく感じる方も少なくありません。 今回はそのような人向けに LFE を紹介しようと思います。

LFE とは

LFE とは (lisp (flavored (erlang))) の略です。その名の通り、 Erlang Virtual Machine (BEAM) 上で動く Lisp です。

mopemope / gist:933755
Created Apr 21, 2011
bjoern and meinheld hello_world benchmark
View gist:933755
ab -c 100 -n 10000
bjoern 1.1.1
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
Copyright (c) 2006 The Apache Software Foundation,
Benchmarking (be patient)
Completed 1000 requests
mopemope / log
Created May 13, 2014
run systemd-nspawn docker container
View log
core@coreos-local ~ $ ./nspawn-container jmatis/tomcat7 "/opt/"
Pulling repository jmatis/tomcat7
b3dfa5e5f738: Download complete
511136ea3c5a: Download complete
5e66087f3ffe: Download complete
4d26dd3ebc1c: Download complete
d4010efcfd86: Download complete
99ec81b80c55: Download complete
c17d434dd941: Download complete
180579a76826: Download complete
View xmobarrc
-- -*- mode:haskell -*-
Config { font = "xft:Ricty:size=12"
, bgColor = "#1c1c1c"
, fgColor = "#757575"
, position = TopSize C 100 16
-- , position = Static { xpos = 37 , ypos = 0, width = 1845, height = 18 }
, lowerOnStart = False
, overrideRedirect = False
, border = NoBorder
, borderColor = "#26a69a"
mopemope / dynamicbloom.c
Created Jul 11, 2011
Dynamic Bloom Filter
View dynamicbloom.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <inttypes.h>
#include <math.h>
typedef struct {
mopemope / qgmlwy.typ
Created Feb 5, 2018
Gtypist lessons for the qgmlwy
View qgmlwy.typ
B:home row-first finger ngrams drill
T:a drill on word pieces including the letters n, a. (29 found)
D:a a a ana ana ana nann nann nann nana nana nana ann ann ann aan aan
:aan nan nan nan nnan nnan nnan nna nna nna n n n anan anan anan anna
:anna anna nan n anna nann anan a ana aan ann nana nnan nna nana aan
:anan nnan ann a anna n nann nan nna ana nana a ann nnan nann anna n
:nan nna ana aan anan
mopemope / lets_split.json
Created Nov 20, 2017
Let's split setting
View lets_split.json
You can’t perform that action at this time.