Skip to content

Instantly share code, notes, and snippets.

View ftkro's full-sized avatar
🎯
Focusing

Takuro Fukuda ftkro

🎯
Focusing
  • Prime Strategy New York, Inc.
View GitHub Profile
@ftkro
ftkro / proof.md
Created December 31, 2023 08:18
IV

$argon2id$v=19$m=512,t=256,p=1$NAqzulgdfRL088W9vCFZwg$kSOaK7ltpnKPtQ30Ej8f5F4KmW5HcQlWrxHHbHuvXrs

@ftkro
ftkro / fibonacci_retracement.php
Created October 4, 2017 06:05
Fibonacci Retracement Function written in PHP
<?php
//If $Reverse option was set true, return value will be use reversed Fibonacci retracement.
//Return value is always desc.
function FibRet($High,$Low,$Reverse=false) {
$FibNum=array(
0,
0.236,
0.382,
0.5,
0.618,

Keybase proof

I hereby claim:

  • I am ftkro on github.
  • I am ftk (https://keybase.io/ftk) on keybase.
  • I have a public key whose fingerprint is E789 568A 02D9 F3EC A8A1 6920 FDA3 70CD 7AFB DE8F

To claim this, I am signing this object:

@ftkro
ftkro / sysctl.conf
Created November 14, 2014 07:23
Ubuntu sysctl.conf
net.ipv4.ip_forward = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.eth0.send_redirects = 0
net.ipv4.conf.lo.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.eth0.accept_redirects = 0
net.ipv4.conf.lo.accept_redirects = 0
net.ipv4.tcp_fastopen = 0x403
@ftkro
ftkro / unko.php
Last active February 20, 2017 02:32
汚いコードだなぁ…
<?php
//Eval is Evil so 汚ねぇコードだなぁ…
function Execute($function,...$data) {
if(count($data) == 0) {
$function($data[0]);
}
if(count($data) == 1) {
$function($data[0],$data[1]);
}
if(count($data) == 2) {
@ftkro
ftkro / .bash_profile
Last active September 13, 2016 05:31
My .bash_profile
PATH=/usr/local/mysql/bin:$PATH
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi
export CLICOLOR=1
export LSCOLORS=DxGxcxdxCxegedabagacad
export PATH=/usr/local/bin:$PATH
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export PATH=$PATH:~/bin/depot_tools
@ftkro
ftkro / 0_reuse_code.js
Created January 3, 2014 11:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ftkro
ftkro / sftp.sh
Created December 26, 2013 08:36
Authy対応版SFTP。 sftp.shをsftpにリネームして/usr/local/sbinとかに入れておいてalias張っとけ。 alias sftp='/usr/local/sbin/sftp'
#!/bin/bash
#This is AN Correspondence Authy SSH Command.
if [ "$1" = vps ] ; then
#Enable Authy Token.
echo -n "Authy Token (not support SMS Token): "
read authytoken
AUTHY_TOKEN="$authytoken" sftp vps
else
#Disable Authy Token.
sftp $1
@ftkro
ftkro / worktime.sh
Created August 9, 2013 10:29
稼働率計算
#!/bin/bash
month=`date +"%m"`
function 30days {
echo -n "ダウンタイムを入力してください: "
read worktime
echo "scale=4; ( 43200 - $worktime ) / 43200 * 100" | bc | cut -c 1-5
}
function 31days {
echo -n "ダウンタイムを入力してください: "
read worktime
@ftkro
ftkro / .bashrc
Created March 7, 2013 11:42
My .bashrc
PATH="$PATH":/Users/tea_hugutaku/shell
PATH="$PATH":/usr/local/sbin
export HOMEBREW_EDITOR=/usr/bin/vim
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
alias vi='/usr/bin/vim'