Skip to content

Instantly share code, notes, and snippets.

@gugod
gugod / dothis.sh
Last active January 16, 2016 21:45
Net::SSLeay installation on MacOS El Captian
#!/bin/bash
brew install openssl
CONFIG_ARGS=$( cat <<_EOF_ | tr '\n' ' '
INC=-I/usr/local/opt/openssl/include
LDDLFLAGS="-bundle -undefined dynamic_lookup -fstack-protector-strong -L/usr/local/opt/openssl/lib"
LD="env MACOSX_DEPLOYMENT_TARGET=10.11 cc"
LDFLAGS="-fstack-protector-strong -L/usr/local/opt/openssl/lib"
_EOF_
@gugod
gugod / index.html
Last active October 6, 2015 13:03
CJK Try
<html>
<head>
<meta charset="utf-8" />
<style type="text/css" media="screen">
@font-face{
font-family: 'Noto Sans CJK TC';
src: url('https://raw.githubusercontent.com/googlei18n/noto-cjk/master/NotoSansTC-Regular.otf')
}
@font-face{
font-family: 'Noto Sans CJK SC';
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From: 本國語文教育研究發展辦公室
To: Kang-min Liu
Subject: Re: 《重編國語辭典修訂本》意見回饋(NL-R1040111-001)
Flags: seen
Date: Tue Feb 3 03:49:48 2015
Maildir: /Inbox
發文日期:中華民國104年2月3日
發文時間:教研語字第1040001501號
Date: Sun, 3 Aug 2014 23:04:22 +0900 (JST)
From: Cicilia Andrin <esther_jomkoma_30@yahoo.co.jp>
Reply-To: Cicilia Andrin <ciciliaandrin1977@yahoo.com>
Subject: Message From Madam Cicilia Andrin.I am Mrs.Cicilia Andrin from Switzerland.I am married to Late Mr.Hassan Andrin.He was the Director of T.C Industries Cote D'ivoire.We were married for few years without a child.He died during the political crises.Recently, My Doctor told me that I would not last long due to my deteriorating cancer problem.Before my husband died, there is this sum of $5.5 Million Dollars that he deposited in account with a bank in Cote D'ivoire.Presently this money is still in the Vault of the bank where he deposited it.Having known my condition I decided to donate this fund to any good God fearing person that will utilize this fund the way I am going to instruct herein and somebody that will use this fund according to the desire of my late Husband to help Less privilaged people, orphanages and widows.I do not have any child to inherite
#!/bin/sh
cd /tmp
curl -L https://github.com/gugod/App-perlbrew/raw/release-0.67/perlbrew > perlbrew
chmod +x ./perlbrew
./perlbrew self-install
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name='ocr-system' content='tesseract 3.02.02' />
<meta name='ocr-capabilities' content='ocr_page ocr_carea ocr_par ocr_line ocrx_word'/>
</head>
if ($http_origin ~* (https?://[^/]*\.g0v\.tw(:[0-9]+)?)) {
add_header 'Access-Control-Allow-Origin' "$http_origin"
add_header 'Access-Control-Allow-Credentials' 'true';
}
@gugod
gugod / ABook.pm
Created December 29, 2013 22:06
implementing the "extends" oo keyword with indirect object syntax
use v5.18; use strict; use warnings;
package ABook {
extends Book("like", "it", "should", "be");
};
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.