- To Send Email: https://www.facebook.com/recover/initiate
- URL in Email: https://www.facebook.com/recover/password?u=[User ID]&n=[6 digit code]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -eu | |
git update-server-info | |
APP_HOME=/home/rch850/hogeapp | |
APP_BRANCH=develop | |
PIDFILE=$APP_HOME/node.pid | |
export GIT_DIR=$APP_HOME/.git | |
(cd $APP_HOME && git --git-dir=.git pull && git checkout $APP_BRANCH) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.crypto.Cipher; | |
import java.security.NoSuchAlgorithmException; | |
public class KeyLengthDetector { | |
public static void main(String[] args) { | |
String transformation = "AES"; | |
if (args.length >= 1) transformation = args[0]; | |
int allowedKeyLength = 0; | |
try { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
goto checkaws | |
:: | |
:: apidoc のインストールチェック | |
:: | |
cmd /C apidoc -h >NUL 2>&1 | |
if not errorlevel 1 goto runapidoc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem for ckw | |
start %~dp0ckw\ckw.exe -x "CMD /K cd %USERPROFILE%\git\myproj && set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_25 && PATH=C:\Program Files\Java\jdk1.7.0_25\bin;%PATH%;C:\Ruby200\bin;%APPDATA%\npm;C:\Program Files\nodejs-v0.10.22" | |
rem for PowerShell | |
powershell -NoExit -Command "cd $env:USERPROFILE\git\myproj; $env:JAVA_HOME = \"C:\Program Files\Java\jdk1.7.0_25\"; $env:PATH = \"C:\Program Files\Java\jdk1.7.0_25\bin;$env:PATH;C:\Ruby200\bin;$env:APPDATA\npm;C:\Program Files\nodejs-v0.10.22\"" |
AWS で動いている nginx のログを fluentd で S3 に転送している状態で、 ログを Elastic Search に飛ばして Kibana 3 で眺めるまでの流れ。
- 拠点からの80番と9200番を許可(443にできるなら443で)
- ログを発生させるサーバからの9200番を許可
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'optparse' | |
separator = "," | |
source = false | |
ARGV.clone.options do |opts| | |
opts.banner = "Usage: #{$0} [options]" | |
opts.on('-f', '--file=/path/to/file', String, 'Source file'){|v| | |
source = v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reset max_connections | |
aws rds reset-db-parameter-group --db-parameter-group-name ENTERYOURS --parameters "ParameterName=max_connections,ApplyMethod=immediate" | |
# Enable All Cross-Zone Load Balancing | |
for lb in $(aws elb describe-load-balancers --query="LoadBalancerDescriptions[].LoadBalancerName" --output text); do | |
echo $lb | |
aws elb modify-load-balancer-attributes --load-balancer-name $lb --load-balancer-attributes '{"CrossZoneLoadBalancing":{"Enabled":true}}' | |
done | |
# Print my cf stack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_format postdata '$time_local $request $request_body'; | |
location = /path { | |
access_log /var/log/nginx/postdata.log postdata; | |
proxy_pass http://localhost:8080; # <= set your port | |
} |