Skip to content

Instantly share code, notes, and snippets.

🐧
We are away

Penguin say8425

🐧
We are away
Block or report user

Report or block say8425

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@say8425
say8425 / install-soft-ether-vpn
Created Feb 27, 2019
Install SoftEtherVPN on Ubuntu 18
View install-soft-ether-vpn
# Adding SoftEtherVPN PPA to your system
# https://code.launchpad.net/~paskal-07/+archive/ubuntu/softethervpn
sudo add-apt-repository ppa:paskal-07/softethervpn
sudo apt-get update
# Upgrade System
sudo apt-get update && sudo apt-get upgrade
# Install SoftEtherVPN
sudo apt-get install softether-vpnserver
View keybase.md

Keybase proof

I hereby claim:

  • I am say8425 on github.
  • I am say8425 (https://keybase.io/say8425) on keybase.
  • I have a public key whose fingerprint is 1F43 EADD 2223 71E0 C76B DE24 C2AB 3039 6DE1 C561

To claim this, I am signing this object:

@say8425
say8425 / codedeploy_user_data.sh
Created Oct 21, 2018
Install codedeploy agent in EC2 user data
View codedeploy_user_data.sh
#!/bin/bash
apt update
apt install ruby -y
gem install bundler
git clone https://github.com/aws/aws-codedeploy-agent.git /opt/codedeploy-agent
sudo chown -R root.root /opt/codedeploy-agent
sudo chmod 644 /opt/codedeploy-agent/conf/codedeployagent.yml
sudo chmod 755 /opt/codedeploy-agent/init.d/codedeploy-agent
sudo chmod 644 /opt/codedeploy-agent/init.d/codedeploy-agent.service
cd opt/codedeploy-agent
@say8425
say8425 / Capfile
Last active Sep 3, 2018
Capistrano Slack
View Capfile
require 'slackistrano/capistrano'
require_relative 'lib/slack_message'
@say8425
say8425 / .travis.yml
Created May 23, 2017
Travis MySQL 5.7 installation
View .travis.yml
language: ruby
rvm:
- 2.2.5
services:
- mysql
sudo: true
before_script:
- chmod +x ./travis/*
- ./travis/mysql-version-upgrade-5.7.sh
- ./travis/mysql-reset-root-password.sh
@say8425
say8425 / get_pharmacy.rb
Last active May 23, 2017
Get Korean Pharmacy with OpenAPI
View get_pharmacy.rb
require 'json'
require 'rest-client'
url = 'http://openapi.e-gen.or.kr/openapi/service/rest/ErmctInsttInfoInqireService/getParmacyListInfoInqire'.freeze
key = 'Your Secret key'
params = {pageNo: 1, numOfRows: 100, ServiceKey: key}
data = RestClient.get(url, {params: params, accept: :json})
total_count = (JSON.parse(data.body)['response']['body']['totalCount'] / 100.to_f).ceil
total_data = []
You can’t perform that action at this time.