Skip to content

Instantly share code, notes, and snippets.

View channprj's full-sized avatar

Park Hee Chan channprj

View GitHub Profile
@channprj
channprj / Git2130onRHEL7x.md
Created March 2, 2018 13:01 — forked from matthewriley/Git2130onRHEL7x.md
Install Git 2.13.0 from source on RHEL 7.x

Install Git 2.13.0 from source on RHEL 7.x

These are the Terminal commands I recently used (June 2016) to install Git 2.13.0 from source on RHEL 7.x. I ran this in a VirtualBox VM after a fresh install from the ISO.

You mileage will vary as the yum packages are updated over time. The yum install line below should include all the dependencies, at least it did for me. Depending upon how often you use yum update you may need to run yum --enablerepo=base clean metadata as su before you run the following commands.

cd ~/Downloads
su
yum install autoconf cpio curl-devel expat-devel gcc gettext-devel make openssl-devel perl-ExtUtils-MakeMaker zlib-devel
wget -O v2.13.0.tar.gz https://github.com/git/git/archive/v2.13.0.tar.gz
@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 / .kitefs
Last active May 13, 2019 01:20
Sublime Settings
{
}
@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', {
@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="[email protected]"
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