Skip to content

Instantly share code, notes, and snippets.

View RealForce1024's full-sized avatar
🎯
Focusing k8s/istio/flink

RealForce1024 RealForce1024

🎯
Focusing k8s/istio/flink
View GitHub Profile
@RealForce1024
RealForce1024 / bash-cheatsheet.sh
Created June 22, 2017 17:41 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@RealForce1024
RealForce1024 / merge.sql
Created November 7, 2016 03:26 — forked from weareoutman/merge.sql
mysql 将一个表的重复数据合并
-- 临时表 t_temp_a,有重复articleid的记录
CREATE TEMPORARY TABLE t_temp_a (
SELECT d.id, d.articleid, d.hitcount, d.cnt
FROM (
SELECT c.id, c.articleid, c.hitcount, b.cnt
FROM t_article_hitcount AS c
INNER JOIN (
SELECT articleid, cnt
FROM (
SELECT articleid, COUNT(*) AS cnt
@RealForce1024
RealForce1024 / spring_batch_video_note.md
Created October 25, 2016 08:33
spring batch video note.

并发

  • Java6: ExecutorService
  • Java7: ForkJoinPool
  • Erlang/Scala: Actor&Message
  • Go: goroutine
  • Spring Batch
  • Grand Central Dispatch: Block&Queue
  • GridGain: Compute Grid
  • Hadoop: MapReduce
@RealForce1024
RealForce1024 / git_toturial
Created July 10, 2016 11:24 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@RealForce1024
RealForce1024 / meteor-nginx
Created March 3, 2016 07:44 — forked from dweldon/meteor-nginx
This is an example of how to configure nginx to serve a meteor app.
server {
listen 80;
server_name app.example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name app.example.com;