Skip to content

Instantly share code, notes, and snippets.

View v5tech's full-sized avatar
🎯
Focusing

v5tech

🎯
Focusing
  • Xi'an China
  • 22:26 (UTC +08:00)
View GitHub Profile
@v5tech
v5tech / Git.md
Created September 12, 2014 02:59
Git for windows 中文乱码解决方案
@v5tech
v5tech / cdn.md
Created September 2, 2014 07:29
常用的 JavaScript 库 CDN 加速服务
@v5tech
v5tech / gitconfig.md
Created September 1, 2014 15:59
Colorize Git Terminal Commands

Colorize Git Terminal Commands

Add the following to your ~/.gitconfig file to show the git command output in color when working in a terminal

[color]
  ui = auto
[color "branch"]
  current = yellow reverse
 local = yellow
@v5tech
v5tech / notes.md
Created August 29, 2014 09:16
iphone app promoting picture
@v5tech
v5tech / Gist.md
Last active August 29, 2015 14:05
在Github Pages页面里嵌入Gist

在Markdown格式的文章中合适的地方插入如下代码:

{% gist 743cdf8b26ceeef49fa1 %}

其中{% gist GIST_ID %}是固定格式,你只需找到实际的Gist ID代替GIST_ID

因为一个Gist可以有几个文件,还可以只嵌入某个Gist中的某个文件,如下:

@v5tech
v5tech / app.js
Created August 9, 2014 14:37 — forked from auser/app.js
Rapid chrome app development with angular. http://www.ng-newsletter.com/posts/chrome-apps-on-angular.html
angular.module('myApp', ['ngRoute'])
.provider('Weather', function() {
var apiKey = "";
this.getUrl = function(type, ext) {
return "http://api.wunderground.com/api/" +
this.apiKey + "/" + type + "/q/" +
ext + '.json';
};
@v5tech
v5tech / rename.md
Last active January 19, 2023 03:48
巧妙使用cmd和xls批量重命名文件

巧妙使用cmd和xls批量重命名文件

1. 迅速切换到目标文件目录

C:\Windows\System32>cd /d E:\images

E:\images>
@v5tech
v5tech / ffmpeg.md
Last active January 16, 2024 09:19
ffmpeg视频合并、格式转换、截图

使用ffmpeg合并MP4文件

ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"
@v5tech
v5tech / 知乎日报API.md
Last active May 27, 2023 00:49
知乎日报API