Skip to content

Instantly share code, notes, and snippets.

View pathumego's full-sized avatar
🎯
Focusing

Pathum Egodawatta pathumego

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pathumego on github.
  • I am pathumego (https://keybase.io/pathumego) on keybase.
  • I have a public key ASBvupBKxK8g2G7iSK6gRxqPC5navRzfpTgEaxBkK-6IyAo

To claim this, I am signing this object:

@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
@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 / 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 <mary@sarai.net> aka meyarivan <self@meyarivan.org>
# 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 / 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**" />
# General
.DS_Store
.AppleDouble
.LSOverride
# sources
*(Autosaved).glyphs
/build
/fontester
#ttfa on a folder
for filename in *.ttf
do
ttfautohint -n "${filename}" "../${filename}"
done
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"
# 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
@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)