Skip to content

Instantly share code, notes, and snippets.

@edwardchanjw
edwardchanjw / getFreeOreillyBooks.js
Created September 8, 2017 01:54 — forked from SgtPooki/getFreeOreillyBooks.js
Script to automatically download free ebooks listed on oreilly
/*
Just paste into your console.. or make a tampermonkey/greasemonkey script out of it.
Only tested in Chrome. Be careful.. three tabs are opened per book.
If a books image is not removed, you'll need to try to download that book yourself.
Use this script (enter into the console of your browser) on the following pages:
http://www.oreilly.com/programming/free/
http://www.oreilly.com/business/free/
public class JsonParser {
private List<String> pathList;
private String json;
public JsonParser(String json) {
this.json = json;
this.pathList = new ArrayList<String>();
setJsonPaths(json);
}
@edwardchanjw
edwardchanjw / cheatsheet
Last active March 8, 2024 13:56
Github Markdown(CommonMark) cheat sheet
#Visual Merge, P4Merge
https://forum.unity3d.com/threads/plastic-scm-version-control-for-unity.317888/
#DOMContentLoaded PWA
#Chrome --enable-features=MITMSoftwareInterstitial
--disable-web-security --allow-file-access-from-files --user-data-dir="D:/Chrome"
#Youtube
youtube-dl.exe --write-auto-sub --sub-lang en --sub-format srt --convert-subs srt
##
http://blog.studiominiboss.com/pixelart
@edwardchanjw
edwardchanjw / database
Last active April 28, 2016 09:00
database
Database JPA (Spring Data, DataNucleus, EclipseLink, Spring Roo 2.0 favor themselve over jHispter, Typesafe activator)
http://jhipster.github.io/creating-an-entity/
https://github.com/nikelin/spring-data-generation-kit
http://stackoverflow.com/questions/9442475/entity-generator-from-database
http://www.adam-bien.com/roller/abien/entry/persisting_an_annotation_less_pojo
https://blog.jooq.org/2015/04/15/how-jpa-2-1-has-become-the-new-ejb-2-0/
DTO/POJO
Lombok
http://valjogen.41concepts.com/
@edwardchanjw
edwardchanjw / HTML5FileUpload.md
Last active March 31, 2016 08:16
HTML5 mean concise and complete

##Web Application's Browser based File Upload Architecture

Web Application run on everywhere with Web Browser installed. There is two way to allows file upload in Web Browser, First is using external third-party plugin on Browser such as Flash, Java Applet, SilverLight, etc. Second is using the HTML Elements supported by Web Browser natively.

###Plugin based Flash, SilverLight or Java Applet require user's to install proprietary runtime and user will required to allow the runtime to execute due to security concern and based on trust of the web domain/

For example, in Redmine software, the image uploading are using Java Applet, mostly unable to use the function in certain browser, even we clicking allows to run the Java in the browser.

@edwardchanjw
edwardchanjw / GameController
Last active October 16, 2016 01:34
GameController
https://blog.codinghorror.com/the-golden-age-of-x86-gaming/
https://blog.codinghorror.com/is-your-computer-stable/
https://blog.codinghorror.com/zopfli-optimization-literally-free-bandwidth/
Game Controller under USD 35 with promotion / Without
Steam Controller $35 - Amazon (Promotion)
https://steamcommunity.com/app/353370/discussions/0/541907675760861068/?ctp=4
http://www.lazada.com.my/sandisk-ultra-mobile-storage-pack-ultra-dual-usb-drive-30-plus-ultra-microsd-card-80mb-6869402.html
http://list.qoo10.my/item/SAMSUNG-POWERBANK-30000MAH-WHOLESALE/438963932?sid=1223
http://list.qoo10.sg/item/A-F-S-JEEP-AIR-FORCE-WINTER-JACKET/420453187?stcode=77#none
http://list.qoo10.sg/item/FREE-GIFTS-SWEATERS-FASHION-MENS/431536151?stcode=77
http://list.qoo10.sg/item/HIGH-FUNCTIONAL-NON-SLIP-SAFETY/417730653?stcode=77
http://unix.stackexchange.com/questions/47407/cat-line-x-to-line-y-on-a-huge-file?lq=1
grep -P "(WARN|ERROR|^\tat |Exception|^Caused by: |\t... \d+ more)"
@edwardchanjw
edwardchanjw / gist:ff026db6f1f18fcb00c3
Last active April 11, 2016 05:17
App Uptime Monitoring
http://wrapper.tanukisoftware.com/doc/english/download.js
http://stackoverflow.com/questions/7629813/is-there-windows-analog-to-supervisord
http://superuser.com/questions/319838/windows-automatically-restart-application-when-closes
https://dzone.com/articles/programmatically-restart-java
http://launch4j.sourceforge.net/
http://stackoverflow.com/questions/4159802/how-can-i-restart-a-java-application
https://support.microsoft.com/en-us/kb/251192
http://support.microsoft.com/kb/137890
@edwardchanjw
edwardchanjw / JS
Created April 25, 2015 05:37
JS framework pitfall
Meteor - Non-Offline first
Derby - Modular
Why server side rendering consider better? Load whole chunk html performance better than append?
Server rendering html DOM operation performance vs Client rendering json DOM?
@edwardchanjw
edwardchanjw / Wifi
Last active March 11, 2025 13:33
Wifi
Wi-fi Repeater hardware vs Connectify Max
Hostapd + Wifi Tether
fqrouter2
http://pdanet.co/help/wifi.php
http://stackoverflow.com/questions/15540884/can-wifi-direct-and-wifi-station-work-simultaneously
http://images10.newegg.com/BizIntell/tool/psucalc/index.html?name=Power-Supply-Wattage-Calculator