Skip to content

Instantly share code, notes, and snippets.

Darcy Liu darcyliu

Block or report user

Report or block darcyliu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View iOS8InternalAppIDs.txt
View iOS7InternalAppIDs.txt
darcyliu / ace_editor.html
Last active May 23, 2016
Ace code editor
View ace_editor.html
<!DOCTYPE html>
<html lang="en">
<title>ACE in Action</title>
<link rel="stylesheet" type="text/css" href="">
<style type="text/css" media="screen">
#editor {
margin: 10px 0;
height: 300px;
border-radius: 3px;
darcyliu /
Last active Apr 19, 2016
Install txt2man on Mac OSX / Linux
curl -o /usr/local/bin/txt2man && chmod 755 /usr/local/bin/txt2man
# Install Spark on CentOS 7
yum install java -y
java -version
yum install wget -y
tar xvf scala-2.11.7.tgz
sudo mv scala-2.11.7 /usr/lib
sudo ln -s /usr/lib/scala-2.11.7 /usr/lib/scala
darcyliu /
Created Mar 31, 2016
Install mlpack on OSX 10.11 (EI Capitan)
# Install mlpack on OSX 10.11 (EI Capitan)
curl -O
tar zxvf armadillo-6.500.5.tar.gz
cd armadillo-6.500.5
make install
cd ..
darcyliu /
Created Mar 22, 2016
Install mlpack on CentOS 7
# Install mlpack on CentOS 7
yum -y groupinstall "Development Tools"
yum -y install epel-release
yum -y install boost-devel boost-test boost-program-options boost-math libxml2-devel armadillo-devel
yum -y install txt2man
yum -y install cmake
tar xzvf mlpack-2.0.1.tar.gz
darcyliu / phonetic.m
Last active Feb 22, 2016
phonetic transcription
View phonetic.m
// main.m
// phonetic transcription
// Created by Darcy Liu on 20/02/2016.
// Copyright © 2016 Darcy Liu. All rights reserved.
// clang main.m -fobjc-arc -fmodules -o main
darcyliu / apache.conf
Last active Mar 21, 2017
Issue Let's Encrypt certificates on CentOS
View apache.conf
# host challenge files on Apache for your domain
<VirtualHost *:80>
DocumentRoot /var/www/example.domain
ServerName example.domain
# Add following code to your Apache VirtualHost
Alias "/.well-known/acme-challenge" "/var/www/challenges/"
<Directory "/var/www/challenges/">
Header set Content-Type "application/jose+json"
darcyliu /
Last active Aug 28, 2019
Install Time Machine service on CentOS 7
# Install Time Machine service on CentOS 7
yum install -y rpm-build gcc make wget
# install netatalk
yum install -y avahi-devel cracklib-devel dbus-devel dbus-glib-devel libacl-devel libattr-devel libdb-devel libevent-devel libgcrypt-devel krb5-devel mysql-devel openldap-devel openssl-devel pam-devel quota-devel systemtap-sdt-devel tcp_wrappers-devel libtdb-devel tracker-devel
yum install -y bison docbook-style-xsl flex dconf
You can’t perform that action at this time.