Skip to content

Instantly share code, notes, and snippets.

@edsiper
edsiper / kubernetes_commands.md
Last active April 4, 2024 03:27
Kubernetes Useful Commands
@Hexa
Hexa / gist:a8d848ba3e610c90e9b9
Last active August 29, 2015 14:24
クロスルート
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'openssl'
# ルート
old_root_ca_private_key = OpenSSL::PKey::RSA.new(2048)
old_root_ca_cert = OpenSSL::X509::Certificate.new
old_root_ca_cert.version = 2
issuer = subject = OpenSSL::X509::Name.new
@voluntas
voluntas / erlang_package.rst
Last active August 29, 2015 14:01
Erlang/OTP パッケージングコトハジメ

Erlang/OTP パッケージングコトハジメ

更新

2014-05-29

バージョン

0.2.0

作者

@voluntas

URL

http://voluntas.github.io/

rebar generate と node_package についてまとめました。

@voluntas
voluntas / erlang.rst
Last active March 15, 2024 13:15
実践 Erlang/OTP コトハジメ 2014.11

実践 Erlang/OTP コトハジメ 2014.11

更新

2014-11-20

バージョン

0.0.5

作者

@voluntas

URL

http://voluntas.github.io/

概要

@jugyo
jugyo / gist:4109805
Created November 19, 2012 09:24
How to make a minecraft default texture pack
# unzip minecraft.jar
mkdir minecraft_jar
cd minecraft_jar
cp ~/Library/Application\ Support/minecraft/bin/minecraft.jar ./
unzip minecraft.jar
# copy resources
mkdir ../default-texture-pack
@andrzejsliwa
andrzejsliwa / cowboy_debug.erl
Last active August 26, 2016 07:30
erlang - cowboy debugging helper request/response
%% See LICENSE for licensing information.
-module(cowboy_debug).
-export([onrequest_hook/1]).
-export([onresponse_hook/4]).
onrequest_hook(Req) ->
Method = to_string(extract(cowboy_req:method(Req))),
Path = to_string(extract(cowboy_req:path(Req))),
Params = params_to_string(extract(cowboy_req:qs_vals(Req))),