Archive for the ‘shared’ Category

Articles

Markdown and CommonMark

In shared on Jan 30, 2016 by theoryl Tagged: , ,

Markdown is extremely popular due to its ease of use (both read and write!) and adoption by GitHub and StackOverflow. Recently, I’ve started blogging on WordPress using Markdown as well (see this WordPress Support page about how to enable Markdown support).

However, because the original Markdown from ~10 years ago is kind of limited, there have been many different extensions to the original Markdown throughout the years, most notably GitHub Flavored Markdown. In addition, many Markdown parsers also have their own interpretations and implementations. It can be kind of annoying to have a Markdown document that works on GitHub but doesn’t work on a blog that uses a different parser etc.

I recently discovered about CommonMark, which is on the mission to unify the various Markdown specs into one standard spec. I’m very much in support of its mission and hope it gains critical mass as soon as possible.

So, for people who are not yet familiar with Markdown, CommonMark is definitely the best place to start: http://commonmark.org/help/ .

Advertisements

Articles

Package manager on Linux Mint 17.3

In shared on Dec 30, 2015 by theoryl Tagged: , ,

Although Linux Mint 17.3 “Rosa” is derived from Ubuntu 14.04 “Trusty Tahr”, there are some differences in package management. For instance, Linux Mint doesn’t install “Recommended packages” by default. It also disables Level 4 & 5 security updates by default.

The Linux Mint update manager also allows you to easily select a mirror server. It also comes with a user-friendly menu to upgrade the kernel.

Articles

Color palettes matter

In shared on Jul 17, 2014 by theoryl Tagged:

Resources:

http://mkweb.bcgsc.ca/jclub/biovis/brewer/colorpalettes.pdf (by Martin Krzywinski)

http://colorbrewer2.org/ (by Cynthia Brewer)

Articles

Git aliases

In shared on Jan 17, 2014 by theoryl Tagged: , ,

Some useful Git aliases


[user]
name = ...
email = ...
github = ...

[alias]
a = add
ap = add --patch
am = am -s
c = commit
cs = commit -s
ca = commit --amend
co = checkout
b = branch -vv
l = log --graph --all --abbrev-commit --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(green)%ar %C(yellow)%an%C(bold yellow)%d%C(reset)%n %C(white)%s%n'
lt = log --graph --abbrev-commit --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(green)%ar %C(yellow)%an%C(bold yellow)%d%C(reset)%n %C(white)%s%n'
ll = log --graph --abbrev-commit --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(green)%ar %C(yellow)%an%C(bold yellow)%d%C(reset)%n %C(white)%s%n' -10 HEAD~6..HEAD
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit --date=relative
lf = log --pretty=fuller
ls = log --pretty=fuller --stat
s = status
d = diff
ds = diff --stat
dc = diff --cached
dcs = diff --cached --stat
dp = show
dhh = diff HEAD^!
dhhs = diff HEAD^! --stat
doh = diff origin/master HEAD
dohs = diff origin/master HEAD --stat
rb = rebase
rbi = rebase -i
rbio = rebase -i origin/master
t = tag -a
tl = tag -ln1

[core]
editor = vim

#[push]
# default = simple

[color]
ui = auto

Articles

Privacy aware software

In shared on Sep 11, 2013 by theoryl Tagged: , , ,

One of the great things about open source software is that the possibility of having a backdoor is significantly less compared to proprietary software. Since the news about American government spying on everyone (including Americans) surfaced, privacy concern has become an important issue. Here is a website that shows how one can safeguard his/her privacy: http://prism-break.org/. It lists many alternatives to software that are seemingly in bed with the PRISM program such as Skype and Google products. The project page is on GitHub.

Articles

On static site generators

In shared on Sep 10, 2013 by theoryl Tagged:

An up-to-date, rather comprehensive review of popular static site generators: http://www.mzlinux.org/?q=node/415. nanoc keeps a good list as well: http://nanoc.ws/about/#similar-projects. I’m actually looking for static wiki generator, preferably python based with git backend.

Articles

Color picker

In shared on Sep 2, 2013 by theoryl Tagged: , ,

I like gcolor2 as my color picker. It also has a useful list of saved colors. Just wanted to give a shout out to this little GTK2 utility.

gcolor2