Skip to content

Instantly share code, notes, and snippets.

View hanazuki's full-sized avatar
:octocat:
Nyan

Kasumi Hanazuki hanazuki

:octocat:
Nyan
View GitHub Profile
#!/bin/bash -ex
BACKUP_DIR=/backup
REMOTE_BUCKET=s3://$(hostname -s).backup.$(hostname -d)
umask 077
for mode in "$@"; do
dir="$BACKUP_DIR/$mode"
rm -rf "$dir/" || true
@hanazuki
hanazuki / emacs
Created May 4, 2015 12:35
emacs wrapper
#!/bin/bash
if [ -z "$EMACS" ]; then
{
IFS=:
for path in $PATH; do
if [ -x "$path/emacs" -a ! "$path/emacs" -ef "$BASH_SOURCE" ]; then
EMACS="$path/emacs"
break
fi
@hanazuki
hanazuki / README.md
Last active September 7, 2015 15:01
INT_MIN / -1 Optimization
hanazuki@ring% clang++ --version
Debian clang version 3.0-6.2 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix
hanazuki@ring% clang++ -S -O2 test.cc

あんどろいどくん

3.4.0

Processor       : ARMv7 Processor rev 0 (v7l)
processor       : 0
BogoMIPS        : 38.40

processor       : 1
BogoMIPS        : 38.40
@hanazuki
hanazuki / hengband-utf8.patch
Last active December 17, 2015 09:59
Patch for Hengband SVN r3405 to run in non-EUC-JP terminals (such as UTF-8) with curses (-mgcu) / 変愚蛮怒をUTF-8なターミナルで動作させるためのパッチです
diff --git a/src/main-gcu.c b/src/main-gcu.c
index 0c7f244..069d434 100644
--- a/src/main-gcu.c
+++ b/src/main-gcu.c
@@ -158,6 +158,7 @@
#include "angband.h"
+#include <iconv.h>

Keybase proof

I hereby claim:

  • I am hanazuki on github.
  • I am hanazuki (https://keybase.io/hanazuki) on keybase.
  • I have a public key ASB_f9tK2PC38Z91muP1rBK-ZrkBvXvZYRckXhcAQJo6-Qo

To claim this, I am signing this object:

Host foo
...
Host *
Include *.config
Host bar
...
2017/04/12 22:34:14 [INFO] Terraform version: 0.9.2
2017/04/12 22:34:14 [INFO] Go runtime version: go1.8
2017/04/12 22:34:14 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.2/bin/terraform", "plan"}
2017/04/12 22:34:14 [DEBUG] Detected home directory from env var: /Users/usr0600373
2017/04/12 22:34:14 [DEBUG] Detected home directory from env var: /Users/usr0600373
2017/04/12 22:34:14 [DEBUG] Attempting to open CLI config file: /Users/usr0600373/.terraformrc
2017/04/12 22:34:14 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/04/12 22:34:14 [INFO] CLI command args: []string{"plan"}
2017/04/12 22:34:14 [DEBUG] Detected home directory from env var: /Users/usr0600373
2017/04/12 22:34:14 [DEBUG] command: loading backend config file: /var/folders/_6/hq6p6c512kn4y8d4yrwzf36r0000gn/T/tmp.zL2iW277
@hanazuki
hanazuki / adblock.txt
Last active September 25, 2023 14:50
blocklists
[Adblock Plus 2.0]
! Title: PersonalList
@@||*.fastly-analytics.com
@@||js.rtoaster.jp/Rtoaster.js
||j.wovn.io
||d.shutto-translation.com
user@kmc.gr.jp
sales@kmc.gr.jp
support@kmc.gr.jp