Skip to content

Instantly share code, notes, and snippets.

@hoto17296
hoto17296 / app.py
Created September 6, 2017 10:53
Nginx + uWSGI + Flask on Amazon Linux
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "Hello World!"
@mohamedmansour
mohamedmansour / gist:803631
Created January 31, 2011 04:11
Get and Set localStorage from Content Script
// Content Script to save data.
chrome.extension.sendRequest({storage: 'foo', value: 'bar'});
// Content Script to get data.
chrome.extension.sendRequest({storage: 'foo'}, function(response) {
console.log('foo => ' + response.storage);
});
// Background Page
@denkiwakame
denkiwakame / cn.md
Last active January 19, 2022 07:25
苗字変わった

※ 2016年11月時点の内容です. 各市町村, 金融機関ごとに規定が異なるので必ず確認してください

① はんこ屋

  • 認印をすぐ買う
    • 旧姓・新姓の認印が両方入る印鑑ケースが便利. がま口系が丁度2本収納できる.
  • 銀行印は金融機関によって旧姓使用可のところがあるが, 変更した方が良い. 受取は2営業日〜7営業日後.
  • 苗字変わる予定がある婿or嫁はもともと認印・銀行印ともに下の名前で作った方が良い.

② 役所

住民票・税証明カード

@tbutts
tbutts / tmux-migrate-options.py
Last active February 29, 2024 08:11
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#