Skip to content

Instantly share code, notes, and snippets.

Avatar
🇰🇷

CHANN channprj

🇰🇷
View GitHub Profile
@channprj
channprj / nginx.conf
Created Aug 25, 2016 — forked from timmyomahony/nginx.conf
Python, UWSGI, Supervisor & Nginx
View nginx.conf
upstream uwsgi {
ip_hash;
server 127.0.0.1:40000;
}
server {
listen 80;
server_name www.domain.com;
root /sites/mysite/;
access_log /sites/mysite/log/nginx/access.log;
@channprj
channprj / colored_logging.py
Created Mar 29, 2017 — forked from hit9/colored_logging.py
colored python logging. And add a level 'success'
View colored_logging.py
class Color(object):
"""
utility to return ansi colored text.
"""
colors = {
'black': 30,
'red': 31,
'green': 32,
'yellow': 33,
@channprj
channprj / README-Template.md
Created Sep 8, 2017 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@channprj
channprj / voices.txt
Created Oct 16, 2017 — forked from mculp/voices.txt
List of voices available by the `say` command on OS X
View voices.txt
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
@channprj
channprj / Git2130onRHEL7x.md
Created Mar 2, 2018 — forked from matthewriley/Git2130onRHEL7x.md
Install Git 2.13.0 from source on RHEL 7.x
View Git2130onRHEL7x.md

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 Mar 5, 2018 — forked from colinvh/aws.md
AWS Region Names
View aws.md

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 Apr 6, 2018 — forked from madcoda/App.js
React-Router v4 Multi Layout
View MultiLayoutApp.js
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 / cloudflare-update-record.sh
Created Aug 13, 2018 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/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 Aug 21, 2018 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
View gist:44b1fd6a1568b56ff5c36f6da1b2bd1e
git fetch --all
git reset --hard origin/master
git pull origin master
@channprj
channprj / media-query.css
Created Aug 24, 2018 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS