Skip to content

Instantly share code, notes, and snippets.

View dadarom's full-sized avatar

leo dadarom

  • VVIP
  • shanghai@China
View GitHub Profile
/**************************************************
* timer
***************************************************/
//org.apache.commons.lang3.concurrent.BasicThreadFactory
ScheduledExecutorService executorService = new ScheduledThreadPoolExecutor(1,
new BasicThreadFactory.Builder().namingPattern("example-schedule-pool-%d").daemon(true).build());
executorService.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
@dadarom
dadarom / INSTALL.txt
Created August 16, 2017 15:03 — forked from fernandoaleman/INSTALL.txt
Shell script to sync remote branches from upstream and push them up to forked origin
1. Copy 'git-sync-fork' script code from gist
2. Create a file called 'git-sync-fork' in any 'bin' directory in your $PATH
3. Paste script into this new file 'git-sync-fork' and save
4. Make the file executable `chmod +x git-sync-fork`
5. Run the script inside your locally forked git repo
Example:
git-sync-fork upstream origin
@dadarom
dadarom / 0_reuse_code.js
Created April 1, 2017 07:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@dadarom
dadarom / keywords
Last active November 30, 2017 06:00
Info Collection
分布式配置中心,监控报警,flume管控,进程管控【分布式管控】,binlog,vue,common frontend,H5(app),知识储备(牛博),