Skip to content

Instantly share code, notes, and snippets.

View teslamint's full-sized avatar
💭
I may be slow to respond.

Jaehoon You teslamint

💭
I may be slow to respond.
View GitHub Profile
@teslamint
teslamint / hotspot.php
Last active May 11, 2017 05:51 — forked from narze/hotspot.php
Chillispot php auth
<?php
// TODO:
// - Refactor, but keeping original behaviour first
// - Use bootstrap.css
// - Use simple xView (create a git project from RestQL xView implementation)
// - one view per 'res' state
// - one window layout, one popup layout
// - separate js files
// - Keep debugging feature (keep it kiss)
@teslamint
teslamint / gist:8dec3234b7a447eb8b30
Created February 7, 2016 16:14 — forked from dannysheehan/gist:9d67adb67eeef6ad1413
haproxy.cfg configuration for 1Gb KVM with 1 CPU with backend NGINX and percona /mariadb cluster.
#---------------------------------------------------------------------------
# @(#)$Id$
#title :/etc/haproxy/haproxy.cfg
#description :ftmon cluster haproxy config. NGINX and XtraDB Cluster backend
#author :Danny W Sheehan
#date :July 2014
#website :ftmon.org
#
# This is a work in progress. A lot of trial and error and man hours have
# gone into this configuration. I have referenced sources that have been
#!/usr/bin/env bash
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL http://downloads.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
/*
Copyright 2013 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@teslamint
teslamint / README.md
Last active January 8, 2016 12:19 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by nginx
  • nginx's home directory is /var/www/
@teslamint
teslamint / debug.css
Created April 9, 2012 08:22 — forked from premist/debug.css
Javascript-less DOM Debugger for HTML5
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { outline: #FF0000 dotted 1px !important; }
@teslamint
teslamint / MacOSXDefaultFontFallbacksChanger.command
Created August 23, 2011 08:07 — forked from netj/MacOSXDefaultFontFallbacksChanger.command
맥의 기본 한글 글꼴을 바꿔주는 스크립트 - A script for changing Mac OS X's default font fallbacks
#!/usr/bin/env bash
# A script for changing Mac OS X's default fonts
# Author: Jaeho Shin <netj@sparcs.org>
# Created: 2011-07-22
### MacOSXDefaultFontFallbacksChanger #########################################
## Mac OS X 기본 글꼴 설정 변경 도구 – 1.2.1 (2012-08)
## http://netj.github.com/MacOSXDefaultFontFallbacksChanger
###############################################################################
@teslamint
teslamint / gist:1144720
Created August 14, 2011 08:56 — forked from netj/gist:912261
한국 토렌트 사이트의 자바스크립트 다운로드 링크 변환 북마크릿
javascript:var%20s=document.createElement("script");s.src="http://code.jquery.com/jquery-1.5.2.js";document.body.appendChild(s);s.onload=function(){$('a[href^="javascript:file_download("]').each(function(){this.href=eval("var%20file_download=function(a,b){return%20a/*+'#'+b*/;};"+decodeURI(this.href.substring("javascript:".length)));});/*add%20more%20code%20here*/};