Skip to content

Instantly share code, notes, and snippets.

View mrmoneyc's full-sized avatar

Chun-Ping (Jeremy) Chang mrmoneyc

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>
<meta name="format-detection" content="telephone=no"/>
<link rel="apple-touch-icon" href="/xhtml/images/favicon-57.png"/>
<style id="donotdelete">/*<![CDATA[*/
body{visibility:hidden;font-size:16px !important;margin:0 !important}#landingPage{visibility:hidden}#igoogle{text-align:right;margin-top:10px;margin-right:5px}.gp2{margin:0;text-align:center}.gp7{font-size:12pt;margin-top:5pt}#b{font-size:10pt;margin-top:4px;margin-bottom:5px}.gsc-tabHeader{margin:0;padding-top:0;padding-left:10px;padding-right:10px;padding-bottom:15px;border:none}.gsc-tabHeader.gsc-tabhActive{background:#fff;display:inline;color:#000;font
<?php
define('NICKNAME', 'abc');
define('PASSWORD', 'iamabc');
define('USER_ID', '123456');
$message = 'Hello World!';
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
@mrmoneyc
mrmoneyc / my.cnf
Created August 14, 2011 06:06
my.cnf
[client]
socket = /tmp/mysql.sock
default-character-set = utf8
[mysqld]
socket = /tmp/mysql.sock
datadir = /usr/local/mysql/data
@mrmoneyc
mrmoneyc / httpd.conf
Created August 14, 2011 06:17
httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php index.phtml
</IfModule>
<IfModule php5_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
#------------------------------------------------------------
#
# tmux configure file
#
# Maintainer: Chun-Ping Chang (mrmoneyc) <moneyc.net -AT- gmail.com>
#
# Last modified: 2011-10-24 21:17:19
#
#------------------------------------------------------------
// happy xmas
var npm = require("./npm.js")
, log = require("npmlog")
module.exports = function (args, cb) {
var s = process.platform === "win32" ? " *" : " \u2605"
, f = "\uFF0F"
, b = "\uFF3C"
, x = process.platform === "win32" ? " " : ""
, o = [ "\u0069" , "\u0020", "\u0020", "\u0020", "\u0020", "\u0020"
@mrmoneyc
mrmoneyc / hack.sh
Created December 8, 2013 06:37 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@mrmoneyc
mrmoneyc / hack.sh
Created February 15, 2014 17:33 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
// Schnorr Signature
// Ref. Textbook: Nigel Smart - Cryptography An Introduction 3e, pp. 228-229
package main
import (
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
@mrmoneyc
mrmoneyc / prepare-commit-msg
Last active February 17, 2016 02:48 — forked from aemonge/prepare-commit-msg
Angular Commit Message Conventions git hook, so you got your commit prepared to with the messages they expect ;)
#!/bin/bash
# Angular Commit Message Conventions git hook
firstLine=`head -2 $1 | tail -1`
if [[ $firstLine == \#* ]]; then # Testing that the file starts with a comment, not yet a real commit ;)
echo '<type>(<scope/component>): <subject>' > .prepare-commit-msg-temp
echo '' >> .prepare-commit-msg-temp
echo '<body>' >> .prepare-commit-msg-temp
echo '' >> .prepare-commit-msg-temp
echo '<footer>' >> .prepare-commit-msg-temp