Skip to content

Instantly share code, notes, and snippets.

View pathumego's full-sized avatar
🎯
Focusing

Pathum Egodawatta pathumego

🎯
Focusing
View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@pathumego
pathumego / Res.sh
Last active January 1, 2018 08:10 — forked from Garland-g/Res.sh
Fix resolution on MacBook Pro after installing ubuntu
#!/bin/bash
#Author: Travis Gibson
#This script requires an argument for the resolution width
#Thanks go out to eCharles for a patch in the comments of this link here: http://blog.echarles.net/2013/10/01/Ubuntu-13.04-On-MacbookPro-Retina
if [ -z "$1" ]; then
echo "Usage: Res.sh <resolution_width>";
exit 1;
fi
erg=$( echo "$1")
check=$(xrandr -q | grep DP-2 | cut -d " " -f 4 | cut -d "x" -f 1)
# Install ttfautohint on Ubuntu 12.04 LTS
# @author: Jean Lescure
# 2014/04/23
# Clone ttfautohint git repo to 'tmp' dir and cd into resulting repo folder
cd /tmp
git clone git://repo.or.cz/ttfautohint.git
cd ttfautohint
# Handle bootstrap's dependency: automake
class Fontforgemenus < Formula
desc "Command-line outline and bitmap font editor/converter"
homepage "https://fontforge.github.io"
sha256 "1cc5646fccba2e5af8f1b6c1d0d6d7b6082d9546aefed2348d6c0ed948324796"
head "https://github.com/monkeyiq/fontforge-fork.git", :branch => "2016menus"
option "with-giflib", "Build with GIF support"
option "with-extra-tools", "Build with additional font tools"
#ttfa on a folder
for filename in *.ttf
do
ttfautohint -n "${filename}" "../${filename}"
done
# General
.DS_Store
.AppleDouble
.LSOverride
# sources
*(Autosaved).glyphs
/build
/fontester
@pathumego
pathumego / meta-tags-boilerplate.html
Last active January 1, 2018 08:11
Meta tags for content graphs
<meta name="author" content="**AUTHOUR**" />
<title>**TITLE**</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="සිංහල හා දෙමල අක්ෂර දෙමුහුම - சிங்கள தமிழ் எழுத்துரு இடையேயான தொடர்புகள் - A Fusion of Sinhala and Tamil Letters - Exploring the boundries that divde us. Living the fantasy of breaking them down. Doing what we can to realize that fantasy">
<meta name="author" content="">
<meta property="fb:admins" content="1492908859" />
<meta property="og:image" content="http://mooniak.com/amma/images/avatar.png" />
<meta property="og:title" content="**TITLE**ா" />
<meta property="og:description" content="**DESCRIPTION**." />
<meta property="og:site_name" content="**TITLE**" />
@pathumego
pathumego / iscii2unicode.py
Created January 3, 2018 15:34 — forked from azmfaridee/iscii2unicode.py
ISCII to Unicode Converter Script
#!/usr/bin/env python
# released under BSD License
# mary <[email protected]> aka meyarivan <[email protected]>
# inspired by ICU [ http://oss.software.ibm.com/icu/ ]
# code still in alpha stage.. lots of redundant code.. and probably incorrect
# if ya find errors, pls submit bug reports at indlinux
@pathumego
pathumego / simpletask gtd.md
Created April 14, 2018 15:43 — forked from alehandrof/simpletask gtd.md
How to GTD with Simpletask

How to GTD with Simpletask

This is a guide to implementing Getting Things Done (GTD) using [Simpletask][] by [Mark Janssen][].

Simpletask uses the [todo.txt][] syntax, but has sufficient differences and quirks of its own to be worth describing in detail---at least, that's the story I'm going with. I actually began this guide as an exploration of my own trusted system. Personal workflows are by definition eccentric; I have included only what seems to me to be broadly useful.

This implementation of GTD covers the "standard" classifications: next actions by context, projects, somedays, agendas by person and meeting, etc. In a departure from strict GTD, each entry in these lists is also tagged with an area of focus, interest or responsibility. I find that the ability to slice the system by this extra dimension is worth the additional complexity at the processing and organizing stages. Limitations, issues and workarounds are discussed at the end.

Before we begin, some words of wisdom

@pathumego
pathumego / grep.sh
Created May 27, 2018 16:44
grep cheat sheet
#!/bin/sh
#http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/
# GENERAL
# print lines begining with range of letters
grep ^[A-D] table.txt
# REGEX