Skip to content

Instantly share code, notes, and snippets.

View progrhyme's full-sized avatar
😎
A new normal human

progrhyme progrhyme

😎
A new normal human
View GitHub Profile
@namutaka
namutaka / slack_verify_request.lua
Created July 15, 2019 10:40
Slack Verifying request by nginx + lua
--
-- Slack Verifying request filter
-- see: https://api.slack.com/docs/verifying-requests-from-slack
--
-- Setup:
-- cd /path/to/lua
-- curl -sL https://github.com/jkeys089/lua-resty-hmac/archive/master.tar.gz | tar zxf -
--
-- Usage:
-- ```nginx.conf
@tbutts
tbutts / tmux-migrate-options.py
Last active May 7, 2025 15:12
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
#
@erukiti
erukiti / review.md
Last active October 13, 2025 07:30
Re:VIEWチートシート

Re:VIEWチートシート

いつもいつもいつもRe:VIEWの記法に悩んでぐぐってしまう皆さんへ送るチートシートです。

基本

名称 ルール 概要・備考
段落 1行以上の空行をはさむと別の段落になる HTMLでいうP
見出し =ではじまる行 =の個数で、章・節・項・段という感じで増えます。HTMLで言うH1, H2, H3, H4, H5
@kazuho
kazuho / git-blame-pr.pl
Last active June 28, 2022 07:15
git-blame by PR #
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;
@hashrock
hashrock / diag.md
Last active September 18, 2025 01:43
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@sile
sile / 0_raft.md
Last active May 27, 2024 07:53
Raft(分散合意アルゴリズム)について
@Giemsa
Giemsa / stopwatch.hpp
Last active August 3, 2017 08:03
怠惰な人のための時間計測クラス for C++11
#include <chrono>
#include <iostream>
namespace detail
{
namespace chrono
{
template<typename P>
struct UnitName;
@masquaremo
masquaremo / str_num_sample.rb
Last active May 30, 2021 06:56
Rubyで文字列と数値を相互に変換するメソッドとかのまとめ
#!/usr/bin/ruby
#数値を16進数文字列に
p 65.to_s(16) #=> "41"
#数値をASCII文字に
p 65.chr #=> "A"
#文字列を16進数とみなして数値に
p "41".hex #=> 65