Skip to content

Instantly share code, notes, and snippets.

View channprj's full-sized avatar

Heechan Park channprj

View GitHub Profile
@channprj
channprj / aws.md
Created March 5, 2018 02:52 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes

@channprj
channprj / MultiLayoutApp.js
Last active April 6, 2018 13:27 — forked from madcoda/App.js
React-Router v4 Multi Layout
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link, Match, Redirect, Switch } from 'react-router-dom'
import OverviewPage from './page/OverviewPage'
import AccountPage from './page/AccountPage'
/*
Layouts, inline define here for demo purpose
you may want to define in another file instead
*/
@channprj
channprj / git-line-count.sh
Last active May 15, 2018 06:19
Count Lines of Git Repo
git ls-files | egrep -v 'docs|html|txt|htm|md|json|dot|png|pem|yml|yaml|hex|test' | xargs wc -l
@channprj
channprj / .eslintrc.js
Created July 28, 2018 08:43
My Personal .eslintrc for React Project.
module.exports = {
'parser': 'babel-eslint',
'extends': 'airbnb',
'plugins': [
'import',
'jsx-a11y',
'react',
],
'rules': {
'semi': ['off', 'never', {
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)
@channprj
channprj / cloudflare-update-record.sh
Created August 13, 2018 03:09 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@channprj
channprj / gist:44b1fd6a1568b56ff5c36f6da1b2bd1e
Created August 21, 2018 07:12 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@channprj
channprj / media-query.css
Created August 24, 2018 11:53 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@channprj
channprj / github_gpg_key.md
Created August 31, 2018 08:09 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS
@channprj
channprj / kr_won_to_backquote.sh
Created September 27, 2018 02:10 — forked from redism/kr_won_to_backquote.sh
macOS Sierra에서 원화(₩) 대신 백 쿼트(`) 입력하기
#!/bin/bash
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists"
exit -1
fi
mkdir -p ~/Library/KeyBindings
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict
{
"₩" = ("insertText:", "\`");