Skip to content

Instantly share code, notes, and snippets.

View ajaxsys's full-sized avatar
🎯
Focusing

Andy Fang ajaxsys

🎯
Focusing
  • Yokohama, Japan
View GitHub Profile
@ajaxsys
ajaxsys / gist:174a8af6e1a8f67bb6a39b22f45811a5
Created October 10, 2018 04:29 — forked from sebsto/gist:19b99f1fa1f32cae5d00
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
@ajaxsys
ajaxsys / windows下,操作zip版postgres常用命令
Last active May 15, 2019 02:53
zip_postgres_usefule_cmd.cmd
REM windows下,操作zip版postgres常用命令。参数的意义请参照官方文档
REM zip版postgres下载地址:https://www.enterprisedb.com/download-postgresql-binaries
REM 设置为postgres zip版本解压缩路径<path_to_pgsql>
set PG_HOME=<path_to_pgsql>
cd %PG_HOME%
REM 自定义数据库保存文件夹
mkdir data
@ajaxsys
ajaxsys / certbot-auto
Created November 20, 2020 05:25
AWS EC2 support Let's encript certbot auto, download it and `sudo /usr/bin/certbot-auto --nginx`
#!/bin/sh
#
# Download and run the latest release version of the Certbot client.
#
# NOTE: THIS SCRIPT IS AUTO-GENERATED AND SELF-UPDATING
#
# IF YOU WANT TO EDIT IT LOCALLY, *ALWAYS* RUN YOUR COPY WITH THE
# "--no-self-upgrade" FLAG
#
# IF YOU WANT TO SEND PULL REQUESTS, THE REAL SOURCE FOR THIS FILE IS
@ajaxsys
ajaxsys / hack_web21_export_csv.js
Created February 18, 2022 16:50
Web21デビュー版のCSVダウンロードのbookmarklet (consoleで貼り付けて実行可)
(function() {
function formatYYYYMM(dt) {
var y = dt.getFullYear();
var m = ('00' + (dt.getMonth()+1)).slice(-2);
var d = ('00' + dt.getDate()).slice(-2);
return (y + m);
}
function getUpperLinePrice(txt) {