Skip to content

Instantly share code, notes, and snippets.

View lowks's full-sized avatar
💭
Searching for the truth.

Low Kian Seong lowks

💭
Searching for the truth.
View GitHub Profile
# Some inspiration:
# * https://github.com/chrisroberts/vagrant-boxes/blob/master/definitions/precise-64/preseed.cfg
# * https://github.com/cal/vagrant-ubuntu-precise-64/blob/master/preseed.cfg
# English plx
d-i debian-installer/language string en
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/preferred-locale string en_US.UTF-8
d-i localechooser/supported-locales en_US.UTF-8

Keybase proof

I hereby claim:

  • I am lowks on github.
  • I am lowkster (https://keybase.io/lowkster) on keybase.
  • I have a public key whose fingerprint is 9621 75EB ED4B 3798 F2E5 1EEF B7E9 18E8 27A4 FFCC

To claim this, I am signing this object:

@lowks
lowks / circle.yml
Created November 29, 2014 15:41
circle.yml sample
dependencies:
pre:
- script/circleci/prepare.sh
cache_directories:
- ~/dependencies
- ~/.mix
- _build
- deps
test:
override:
@lowks
lowks / gist:294459bda5a7d254f925
Created September 11, 2014 10:52
mount local source
docker run -i -t -v ~/projects/cot/trunk_new_subversion:/cot ubuntu:14.04
@lowks
lowks / gist:9684959
Created March 21, 2014 12:15
Getting mtime with Elixir
iex(12)> File.stat("/tmp")
{:ok,
File.Stat[size: 20480, type: :directory, access: :read_write,
atime: {{2014, 3, 21}, {19, 44, 1}}, mtime: {{2014, 3, 21}, {20, 15, 1}},
ctime: {{2014, 3, 21}, {20, 15, 1}}, mode: 17407, links: 219,
major_device: 64769, minor_device: 0, inode: 3670017, uid: 0, gid: 0]}
iex(13)> {h, t} = File.stat("/tmp")
{:ok,
File.Stat[size: 20480, type: :directory, access: :read_write,
atime: {{2014, 3, 21}, {20, 16, 32}}, mtime: {{2014, 3, 21}, {20, 16, 33}},
@lowks
lowks / .emacs
Last active December 23, 2015 19:29
(require 'package)
(dolist (source '(("marmalade" . "http://marmalade-repo.org/packages/")
;;("elpa" . "http://tromey.com/elpa/")
;; TODO: Maybe, use this after emacs24 is released
;; (development versions of packages)
("melpa" . "http://melpa.milkbox.net/packages/")
))
(add-to-list 'package-archives source t))
(package-initialize)
@lowks
lowks / gist:5651638
Created May 26, 2013 03:39
my .emacs
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(load-file "/home/lowks/.emacs.d/ergoemacs/site-lisp/site-start.el")
(setq-default indent-tabs-mode nil)
(setq tab-width 4)
(global-set-key (kbd "M-9") 'kill-whole-line)
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(load-theme 'zenburn t)
;; Linux/Windows style
@lowks
lowks / buildout.cfg
Created January 11, 2013 11:34
easy_buildout_template
[buildout]
parts = inupypi
[inupypi]
recipe = zc.recipe.egg
interpreter = python
eggs =
inupypi
pip
@lowks
lowks / gist:4394197
Created December 28, 2012 03:18
Distcmds configure
# coding=utf-8
from cot.lib.distcmd import *
class configure(MyCommand):
user_options = [
('log-dir=', 'l', 'Location of log directory.'),
('output-dir=', 'o', 'Output directory.'),
('virtual-env=', 'e', 'Virtual Env'),
@lowks
lowks / gist:4394147
Created December 28, 2012 03:05
Distcmd dep
from cot.lib.distcmd import *
from urlparse import urlparse
class dep(MyCommand):
user_options = [
('index-url=', 'i', 'Url to the Python Package Index'),
('follow-links', None, 'Search for indirect dependencies in the '