Skip to content

Instantly share code, notes, and snippets.

Weijing Jay Lin dotku

Block or report user

Report or block dotku

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dotku
dotku / mac-httpd.md
Last active Jul 19, 2019
A note for mac http setup
View mac-httpd.md

Common Used Command

// check module status
httpd -M 

// test apache config
apachectl configtest

// restart apache service
View ubuntu.md
  1. You need restart your system after install a foreign input method.
View bookmarks
# Bookmarks
## Freedies
- glitch.com
- github.com
View Commonly Used JavaScript Concept.md
View testJS.html
<script>console.log('hello')</script>
View javascript-deep-copy.js
function cloneObject(obj) {
var clone = {};
for(var i in obj) {
if(obj[i] != null && typeof(obj[i])=="object")
clone[i] = cloneObject(obj[i]);
else
clone[i] = obj[i];
}
return clone;
}
View python-2.md
  1. Multiple Assign, eg (serah, bob, mike = 16, 17, 21);
View ffmpeg.md
 # 1 - 0
 # 2 - 179
 # 3 - 361
 # 4 - 551

ffmpeg -i source.m4v --ss 0 -t 179 -c copy part1.m4v
ffmpeg -i source.m4v --ss 179 -t 361 -c copy part1.m4v
ffmpeg -i source.m4v --ss 361 -t 551 -c copy part1.m4v
...
View tpshop mysql.md

相册处理

比如有这些 URL

/public/upload/goods/2017/08-15/1628/main/1.jpg
/public/upload/goods/2017/08-15/1628/main/2.jpg
/public/upload/goods/2017/08-15/1628/main/3.jpg
/public/upload/goods/2017/08-15/1628/main/4.jpg
/public/upload/goods/2017/08-15/1628/main/5.jpg
You can’t perform that action at this time.