View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
View wwmsf.cmd
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters /v FileSizeLimitInBytes /t REG_DWORD /d 0xffffffff /f
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters /v FsCtlRequestTimeoutInSec /t REG_DWORD /d 0xffffffff /f
net stop WEBCLIENT
net start WEBCLIENT
View wwmsf.cmd
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters /v FileSizeLimitInBytes /t REG_DWORD /d 0xffffffff /f
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters /v FsCtlRequestTimeoutInSec /t REG_DWORD /d 0xffffffff /f
net stop WEBCLIENT
net start WEBCLIENT
View CMD Network Drive.txt
Issue: CMD does not support UNC paths as current directories.
C:\Users\PrimaryUser>cd \\myServer\myShare
CMD does not support UNC paths as current directories.
Solution: Use pushd
C:\Users\PrimaryUser>pushd \\myServer\myShare
Z:\>dir
Volume in drive Z is MYDRIVE
View encoding-video.md

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc --with-opus
View video_convert.txt
ffmpeg -i input -codec:v libx264 -codec:a aac -crf 18 -refs 6 -bf 6 -preset veryslow -movflags faststart output
ffmpeg -i input -codec:v libx264 -codec:a aac -crf 20 -refs 6 -bf 6 -preset slow -movflags faststart output
ffmpeg -i input -ss 00:09:23 -to 00:25:33 -c copy output
// concat
ffmpeg -i input -codec:v libx264 -codec:a aac -crf 20 -refs 6 -bf 6 -preset slow -bsf:v h264_mp4toannexb -f mpegts 1.ts
ffmpeg -i input -codec:v libx264 -codec:a aac -crf 20 -refs 6 -bf 6 -preset slow -bsf:v h264_mp4toannexb -f mpegts 2.ts
ffmpeg -i "concat:1.ts|2.ts" -c copy -movflags faststart -bsf:a aac_adtstoasc output.mp4
View CircularObjectPool.hpp
/**************************************************************************/
/*!
\file CircularObjectPool.hpp
\author Jack Chang
\date 08/02/2014
\brief
Simple template circular list to mimic object pool for particles.
Used in NaiveParticleSystem Project:
https://github.com/wei0831/NaiveParticleSystem
View memmgr.c
/**************************************************************************/
/*!
\file memmgr.c
\author Jack Chang
\date 11/13/2014
\brief
Rudimentary memory manager for dynamically allocated memory.
The memory manager use a singly-linked list to keep track of
allocated and unallocated blocks of memory.
*/