Skip to content

Instantly share code, notes, and snippets.

View lightonphiri's full-sized avatar

Lighton Phiri lightonphiri

View GitHub Profile
lightonphiri /
Last active May 27, 2024 17:53
Install Google Fonts on Ubuntu

Install Google Fonts

Download desired fonts

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/

lightonphiri / shell-create_repos_terminal.txt
Created September 29, 2016 10:33
Creating Github and Bitbucket repositories via the terminal
# Creating new repositories via the terminal
## Github [1]
curl -u 'USERNAME' -d '{"name": "REPOSITORY-NAME", "description": "REPOSITORY DESCRIPTION", "private": true}'
## Bitbucket [2]
curl --user USERNAME --data name='REPOSITORY-NAME' --data is_private='true'
## References
latex filename.tex
dvips -Pamz -Pcmz -o filename.dvi
ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true \
-dEmbedAllFonts=true -dAutoFilterColorImages=false \
-dAutoFilterGrayImages=false -dColorImageFilter=/FlateEncode \
-dGrayImageFilter=/FlateEncode \
lightonphiri /
Created January 6, 2016 13:50
R Seave batch processing
for file in *Rnw; do R CMD Sweave $file; done
lightonphiri / gist:0330a672f12edae2097c
Created January 8, 2015 07:59
[Blogpost Snippet@] ggplot2 - Multiple Plots in One Graph Using gridExtra
# required libraries
# p1---plot #1
# Search Performance
p1dataset <- read.table("p1.dat", header=TRUE, sep=",")