Skip to content

Instantly share code, notes, and snippets.

マレーシア旅程案

  • 細かな日時や金額は2016-10-20(木)から2016-10-24(月)を仮定したときのもの
    • 平日と週末で Sanrio Town のスケジュールが微妙に違うので、両方味わえるように金曜と土曜にインパできるように
    • ローシーズンで、シンガポールとマレーシアが祝日にぶつかっていなければ他の時でも同じ程度の時間や金額になるはず
    • シンガポールの宿泊費はピンキリなので★2ホテルの最安値で大人2人分を2で割った
  • 金額の合計は700SGDと400MYRで60000JPY相当
    • 1SGD=75.02JPY, 1MYR=24.72JPY

木曜

IPsec with ip command

ip コマンドを使った IPsec 通信の設定方法を説明する。 以下で紹介する方法は

  • 事前に何らかの方法で鍵を共有する必要がある
  • リピート攻撃を防ぐために鍵を定期的に更新するための仕組みが必要となる

という問題があるため、真面目な用途に使う場合はちゃんと IKE とかを使ったほうがよいと思う。

@renchap
renchap / README.md
Last active October 12, 2022 17:14
One-line certificate generation/renews with Letsencrypt and nginx

Prerequisites : the letsencrypt CLI tool

This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.

You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge. Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.

I redirect all HTTP requests on HTTPS, so my nginx config looks like :

server {
@ailispaw
ailispaw / patch.fix.twitter.update.tbrl.js
Last active February 3, 2020 03:01
Taberareloo Patch: Fix Twitter.update 2020.02
// ==Taberareloo==
// {
// "name" : "Fix Twitter.update 2020.02"
// , "description" : "Fix Twitter.update 2020.02"
// , "include" : ["background"]
// , "version" : "0.5.0"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/9406c2ffacf68c6ad238/raw/patch.fix.twitter.update.tbrl.js"
// }
// ==/Taberareloo==
@ailispaw
ailispaw / patch.fix.twitter.upload.tbrl.js
Last active January 6, 2020 13:10
Fix Twitter.upload 2016.08
// ==Taberareloo==
// {
// "name" : "Fix Twitter.upload 2016.08"
// , "description" : "Fix Twitter.upload 2016.08"
// , "include" : ["background"]
// , "version" : "0.3.1"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/f0cf8e6db802b51a9790/raw/patch.fix.twitter.upload.tbrl.js"
// }
// ==/Taberareloo==
@sonots
sonots / fluentd_hacking_guide.md
Last active August 30, 2021 05:57
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ
// yoyaku07_name.asp
document.forms[0].TEL.value="080-XXXX-XXXX";
document.forms[0].NAME_FM_1.value="オオタケ"; //optional
document.forms[0].NAME_FR_1.value="トモヒロ"; //optional
// document.forms[0].SONOTA.value=""; // optional
// OEMSignSettlement.php
document.forms[0].card_type.value="01VISA";
document.forms[0].card_no0.value="4538";
document.forms[0].card_no1.value="XXXX";
use strict;
use warnings;
main(@ARGV);exit;
sub main {
my $path = shift or help();
my $title = shift or help();
my $dir = "$path/$title";
@hail2u
hail2u / star-yellow.svg
Created May 12, 2012 06:43
黄色のスター画像
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hotchpotch
hotchpotch / cocproxy.nginx.conf
Created May 25, 2011 04:50
cocproxy for nginx
#!nginx -p . -c cocproxy.nginx.conf
error_log /dev/stderr debug;
daemon off;
events {
worker_connections 48;
}
http {