Skip to content

Instantly share code, notes, and snippets.

View hnakamur's full-sized avatar

Hiroaki Nakamura hnakamur

View GitHub Profile
@uupaa
uupaa / ts.md
Last active June 5, 2018 08:34
TypeScript を vim に導入して Syntax Highlight する
@hayajo
hayajo / 00.md
Last active March 8, 2020 16:05
NDS#36 Go言語入門
@soarez
soarez / ca.md
Last active July 20, 2026 18:02
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@sokratisg
sokratisg / pdns-pipebackend.py
Created April 7, 2014 22:38
PowerDNS PipeBackend python example
#!/usr/bin/python -u
import sys, os, time
import random
class DNSLookup(object):
"""Handle PowerDNS pipe-backend domain name lookups."""
ttl = 30
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@tkuchiki
tkuchiki / get_current_shell.sh
Last active August 29, 2015 14:01
現在の Shell を Shellscript の中から判定する(Linux, BSD 両対応)
_PID=$$; _PPID=$(ps -o ppid -p $_PID | tail -n 1); ps -p $_PPID
@voluntas
voluntas / shiguredo_mqtt_broker_log.rst
Last active December 3, 2017 09:50
時雨堂 MQTT ブローカー Akane 開発ログ

時雨堂 MQTT ブローカー Akane 開発ログ

日時:2017-12-03
作:時雨堂
バージョン:17.6.30
URL:https://shiguredo.jp/

2017 年 6 月 30 日をもって開発/販売を終了しました。

@noahmiller
noahmiller / gulpfile-error-handling.js
Created May 15, 2014 16:54
Example error handling in a gulpfile
var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
// Command line option:
// --fatal=[warning|error|off]
var fatalLevel = require('yargs').argv.fatal;
var ERROR_LEVELS = ['error', 'warning'];
@mugyu
mugyu / vimscript_debug.vim
Created June 1, 2014 22:37
vimscript の デバッグをする時のあれやこれや
#
# Learn Vimscript the Hard Way - Echoing Messages
# http://learnvimscriptthehardway.stevelosh.com/chapters/01.html
#
echomsg string(obj)
:message
"