Skip to content

Instantly share code, notes, and snippets.

View hiepnsx's full-sized avatar

シン・ヒェップ hiepnsx

  • VERVE INC
  • 東京
View GitHub Profile
@hiepnsx
hiepnsx / dot_money.json
Last active November 28, 2022 04:56
ドットマネー
{
"history_id": "123",
"code": "code123",
"account_number": "1480469785112359",
"status": "success",
"balance": "10000"
}
@hiepnsx
hiepnsx / blog20181109-01.cfg
Created February 22, 2022 01:06 — forked from haproxytechblog/blog20181109-01.cfg
Application-Layer DDoS Attack Protection with HAProxy
backend per_ip_rates
stick-table type ip size 1m expire 10m store http_req_rate(10s)
@hiepnsx
hiepnsx / gist:55bf194ed936fdba2c2567eabb26efeb
Created February 4, 2020 08:14 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@hiepnsx
hiepnsx / README.md
Created September 20, 2018 03:41 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@hiepnsx
hiepnsx / import-letsencrypt-java.sh
Created September 12, 2018 01:08 — forked from galan/import-letsencrypt-java.sh
Imports the letsencrypt certificates into the java keystore
#!/bin/bash -e
# JAVA_HOME can be passed as argument if not set
if [ ! -d $JAVA_HOME ]; then
JAVA_HOME=${1}
fi
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
if [ ! -f "$KEYSTORE" ]; then
echo "Keystore not found in '$KEYSTORE'"
exit 1
@hiepnsx
hiepnsx / gist:fb0ad6e03dcb0ed63fd2c8f34dabfdea
Created June 19, 2018 01:24 — forked from kennyj/gist:4966002
ハイフン付き電話番号に分割
# encoding: utf-8
module TelSplitter
MAP = {
# 市外局番 , 市内局番の桁数のマップ
# http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html のデータを利用
# 固定電話以外の桁数は適当です...
'050' => 4, # IP電話
'070' => 4, # 携帯電話/PHS
'080' => 4, # 携帯電話
@hiepnsx
hiepnsx / SSLPoke.java
Created June 18, 2018 02:00 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
@hiepnsx
hiepnsx / xdebug
Last active June 7, 2018 07:43 — forked from kramarama/xdebug
install xdebug on centos
http://xdebug.org/install.php#configure-php
http://blog.jetbrains.com/phpstorm/2013/08/debugger-configuration-validation-with-phpstorm/
on CentOS:
1. You need to install PHP’s devel package for PHP commands execution
yum install --enablerepo=remi,remi-php56 php-devel php-pear
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself.
yum install gcc gcc-c++ autoconf automake
@hiepnsx
hiepnsx / AWS Certifications.md
Last active November 2, 2017 07:42 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@hiepnsx
hiepnsx / gist:83ed1d879e649965b40a6eca9aa540c6
Created September 12, 2017 06:24 — forked from jwebcat/gist:5122366
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1