Skip to content

Instantly share code, notes, and snippets.

View gerarldlee's full-sized avatar
:octocat:

Gerard Lee gerarldlee

:octocat:
  • gerarldlee
  • Vancouver, BC
View GitHub Profile
@gerarldlee
gerarldlee / eclipse-start.bat
Last active August 29, 2015 14:14
IntelliJ IDEA and Eclipse performance booster which takes high priority by default and CPU affinity of 18. Put into your IDEA_HOME and ECLIPSE_HOME into the batch file and make a shortcut to it with the parameter of your workspace location accepted by the -data
@echo off
@rem setting affinity to 18 - hex of 00111000b cpu 345
@rem CMD /C START "Eclipse Kepler 4.3 x64" /D "C:\TOOLS\ide\eclipse" /HIGH /AFFINITY 18 "C:\TOOLS\ide\eclipse\eclipse.exe"
@start "Eclipse Kepler 4.3 x64" /D "C:\jenv\candidates\eclipse\4.3-kepler" /high /b eclipse.exe -data %1
@gerarldlee
gerarldlee / babun-shim.bat
Created February 5, 2015 13:08
Provide a way to run Cygwin commands from Windows terminal or command prompt
@echo off
setlocal enableextensions enabledelayedexpansion
set SCRIPT_PATH=%~dp0
set SCRIPT_PATH=%SCRIPT_PATH:\=/%
set BABUN_HOME=%SCRIPT_PATH%
:BEGIN
set CYGWIN_HOME=%BABUN_HOME%\cygwin
if exist "%CYGWIN_HOME%\bin\bash.exe" goto RUN
@echo off
cygwin-shim.bat /bin/ansible-galaxy %*
#!/bin/bash
# Applies the Monokai color scheme to the current terminal session.
declare -A map0
map0=( [foreground ]='#F8F8F2' [background ]='#272822'
[cursor ]='#F8F8F0' [selection ]='#49483E'
[pink ]='#F92672' [green ]='#A6E22E'
[yellow ]='#E6DB74' [blue ]='#66D9EF'
[purple ]='#AE81FF' [orange ]='#FD971F'
[gray ]='#75715E' )
Font=Powerline Consolas
ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47
Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117
@gerarldlee
gerarldlee / Liberal Regex Pattern for Web URLs
Created November 8, 2015 20:08 — forked from gruber/Liberal Regex Pattern for Web URLs
Liberal, Accurate Regex Pattern for Matching Web URLs
The regex patterns in this gist are intended only to match web URLs -- http,
https, and naked domains like "example.com". For a pattern that attempts to
match all URLs, regardless of protocol, see: https://gist.github.com/gruber/249502
# Single-line version:
(?i)\b((?:https?:(?:/{1,3}|[a-z0-9%])|[a-z0-9.\-]+[.](?:com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|s
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it)
//
// Permission is hereby granted, free of charge, to any person
Purpose of Tails
-----------------
The purpose of tails is to provide anonimity when Administering, Buying, Selling, doing Secured Transactions, Emails, and Chats to and from the Internet.
For this, we should use the following softwares for the following purposes:
Networking
1. Tor Browser - for browsing online
2. Pidgin - for secured chats
@gerarldlee
gerarldlee / Chosen Destiny 3
Created June 21, 2016 16:21
A plot of a simple RPG game that we built in h/s
https://gerardlee.wordpress.com/2016/06/22/chosen-destiny-3/
When I was in high school, me and my classmate made this story line plot that we want to program into a game that never
really materializes because our knowledge were lacking and there are no mentors from our school; with no Internet that time.
Anyway, we would like to have this build up and developed. Hope the reader would contribute.
In the beginning, there was nothing… then God said “Let there be light!”… and there was light…
Master Druid Vince finds a baby crying in the forest.
Vince takes a peel to see whether it is a boy or girl…
@gerarldlee
gerarldlee / Ubuntu 16.04 for Development.md
Last active March 15, 2021 11:01
Development Setup on Ubuntu 16.04 Linux