Skip to content

Instantly share code, notes, and snippets.

View zYeoman's full-sized avatar
👓
Coding

Yongwen Zhuang zYeoman

👓
Coding
View GitHub Profile
adb shell screenrecord --size 480x848 /sdcard/demo.mp4
adb pull /sdcard/demo.mp4
ffmpeg.exe -i demo.mp4 -filter:v "setpts=0.5*PTS" demo.gif
@zYeoman
zYeoman / compile.sh
Last active May 6, 2022 16:16 — forked from martinsik/index.html
Simple WebSocket server based on libwebsockets. For full description read http://martinsikora.com/libwebsockets-simple-websocket-server
gcc libwebsockets-websocket.c -L/usr/local/lib -lwebsockets
@zYeoman
zYeoman / ReadablePass.js
Created December 1, 2016 16:08
Generate readable password. Will not continue. Maybe.
// ==UserScript==
// @name ReadablePass
// @namespace zyeoman
// @description Generate readable password
// @include *
// @version 1
// @grant none
// ==/UserScript==
reg = /([^aeiou]*[aeiou]*([^aeiou]*([^aeiou][aeiou]+[^aeiou]*$)))/
host = /(?:\w+\.)*?([^\.]*)\.[^\.]*$/.exec(window.location.host) [1]