Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View say8425's full-sized avatar
🐧
We are away

Penguin say8425

🐧
We are away
View GitHub Profile
@say8425
say8425 / get_pharmacy.rb
Last active May 23, 2017 04:56
Get Korean Pharmacy with OpenAPI
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 = []
@say8425
say8425 / .travis.yml
Created May 23, 2017 04:53
Travis MySQL 5.7 installation
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 / Capfile
Last active September 3, 2018 03:40
Capistrano Slack
require 'slackistrano/capistrano'
require_relative 'lib/slack_message'
@say8425
say8425 / codedeploy_user_data.sh
Created October 21, 2018 08:35
Install codedeploy agent in EC2 user data
#!/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

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 / install-soft-ether-vpn
Created February 27, 2019 10:06
Install SoftEtherVPN on Ubuntu 18
# 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
@say8425
say8425 / index.tsx
Created March 18, 2024 07:32
New file template with VTL for index.tsx in WebStorm
#if ($Component_Name)
#set($CapitalizedComponentName = $Component_Name.substring(0,1).toUpperCase() + $Component_Name.substring(1))
#else
#set($CapitalizedComponentName = $DIR_PATH.split("\/").get($DIR_PATH.split("\/").size() - 1))
#end
import type { FC } from 'react';
import styled from 'styled-components';
type Props = {