Skip to content

Instantly share code, notes, and snippets.

@swfz
swfz / file0.txt
Created July 6, 2015 17:24
rundeckでリバースプロキシ ref: http://qiita.com/swfz/items/a84bc3f89001731bd1d7
http {
.....
upstream rundeck_cluster {
server 192.168.20.56:4440;
}
server {
listen 80 default_server;
server_name example.com;
location /rundeck {
@swfz
swfz / slide2pdf.sh
Last active February 25, 2016 13:23
#!/bin/bash
_usage(){
cat <<_EOT_
Usage:
$0 [-u url] [-o filename] [-s slidetype] [-p totalpages]
Description:
cleaver slide convert to pdf slide
#/bin/sh
# reroute UNASSIGNED shards
# NODES is data nodename
APIURL="http://10.0.21.60:9200"
MASTER_NODE="10.0.21.60"
NODES=( 10.0.21.61 10.0.22.60 10.0.22.61 )
supervisordの起動スクリプト
diff --git source/2.1/src/shunit2 source/2.1/src/shunit2
index d6e7503..22b81ad 100755
--- source/2.1/src/shunit2
+++ source/2.1/src/shunit2
@@ -824,6 +824,9 @@ _shunit_execSuite()
# None
# Output:
# string: the report of successful and failed tests, as well as totals.
+
+# patched by swfz(sawafuji.09@gmail.com)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\01vagranttest30]
"Colour0"="220,220,220"
"Colour1"="227,191,33"
"Colour2"="43,62,80"
"Colour3"="255,0,0"
"Colour4"="43,62,80"
"Colour5"="245,42,143"
"Colour6"="79,79,79"
#!/bin/bash
SERVICE='sample'
STAGE='production'
declare -a ROLES
ROLES=( backend balancer elasticsearch cassandra fluentd )
declare -a METRICS
METRICS=(CPUUSAGE MEMORYUSAGE SWAPUSAGE STATUSCHECK DISKUSAGE)
diff --git search.js search.js
index 0bdb5b0..2a26bbc 100644
--- search.js
+++ search.js
@@ -1,9 +1,12 @@
require([
base_url + '/mkdocs/js/mustache.min.js',
base_url + '/mkdocs/js/lunr-0.5.7.min.js',
+ base_url + '/mkdocs/js/lunr.stemmer.support.js',
+ base_url + '/mkdocs/js/tinyseg.js',
diff --git utils/__init__.py utils/__init__.py
index 1387739..96a89dd 100644
--- utils/__init__.py
+++ utils/__init__.py
@@ -134,6 +134,10 @@ def copy_media_files(from_dir, to_dir):
source_path = os.path.join(source_dir, filename)
output_path = os.path.join(output_dir, filename)
copy_file(source_path, output_path)
+ if is_markdown_file(filename):
+ source_path = os.path.join(source_dir, filename)
@swfz
swfz / lifycyclehook_controller.sh
Created May 25, 2016 01:07
lifecyclehookのコントロールスクリプト
#!/bin/sh
# AutoScale時(スケールイン)にworkerサーバのdaemonとtd-agentを正常に終了してからインスタンスを落とすためのスクリプト
# AutoScale lifecyclehook(Terminate)
# -> SQS
# -> This script
# -> target worker stop. and td-agent stop
# -> lifecyclehook(Terminate) end
SQS_URL="https://ap-southeast-1.queue.amazonaws.com/111111111111/autoscale-worker"