Skip to content

Instantly share code, notes, and snippets.

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
/* 'dir', 'vdir' and 'ls' directory listing programs for GNU.
Copyright (C) 1985-2014 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
[Unit]
Description=SSH tunnel for saku
[Service]
Type=simple
Restart=always
RestartSec=10
ExecStart=/usr/bin/ssh sazanami -L 8000:sazanami:8000 -N -g -o ServerAliveInterval=60 -i /home/nona/.ssh/id_ecdsa_lesser
[Install]
#! /bin/sh -e
BACKUP_DIR="$HOME/backup"
BACKUP_DEST="$HOME/current"
DIR=$BACKUP_DIR/`date +"%Y-%m-%d"`
rm -f $BACKUP_DEST
mkdir -p $DIR
ln -s $DIR $BACKUP_DEST
@nna774
nna774 / jessie.md
Last active August 29, 2015 14:21
Goodbye Wheezy, Hello Jessie! (RFC)

Goodbye Wheezy, Hello Jessie!

Debian の Jessie(8.0) が今年の4/25にリリースされました。(ref)

私たちの計算機では、現在 Wheezy(7.*) が多数動いていますが、新しいOSへと移る必要があります。 この文書では、KMCにおいて移行するためのマイルストーン等を整理する為に書いています。

大まかな方針。

テーマは式年遷都

@nna774
nna774 / .emacs
Last active January 23, 2018 07:46
;;; gc 間隔設定 128MB 使うまで走らなくなる * 4
(setq gc-cons-threshold (* 4 134217728))
(setq load-path (cons "~/.emacs.d/elisp" load-path))
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
@nna774
nna774 / twitter-com.css
Last active September 29, 2016 07:16
魔法のカスタムCSS(徳が低い)
.promoted-tweet, .promoted-account, .promoted-trend, .import-prompt, .promoted-heading, .has-profile-promoted-tweet {
display: none;
}
#! /usr/bin/ruby
# -*- encoding: utf-8 -*-
require 'json'
require "net/https"
WH_URI = "https://hooks.slack.com/services/hoehoehoehoe~~~~~~~~"
uptime = `uptime`.chomp
hash = {

Keybase proof

I hereby claim:

  • I am nna774 on github.
  • I am nona (https://keybase.io/nona) on keybase.
  • I have a public key ASCw1RHt0A4rIbvS5F2bTvb5MtaqdhjJ5QFaEjZUHH8UoAo

To claim this, I am signing this object:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello! This is test message.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAEBAgAGBQJXQ0TxAAoJEK7zw8cMPjqy54AH/AwAMNDu1HkkG6Pt7Nw9iJno
3yw9nCpqVEfSuV/3peC1Y9gpm/V1gaIIzLO8Tk5Wgrbttwo8m/f886t9rHGAT14h
Opj2qCMCQTuVzraCG2gRkubVFHmKN+uFy+trFXEgkz25+87SQepchBcC67tO3YRE