Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
@fire
fire / gist:efb4e372f68e72d3e5d7
Last active August 29, 2015 14:10
How to setup emacs on Windows.
ftype emacsclient=C:\ProgramData\chocolatey\bin\emacsclient.exe --alternate-editor C:\ProgramData\chocolatey\bin\runemacs.exe -n "%*"
assoc .cs= emacsclient
Setbat to be invisible and with icon.
::::::::::::::::::::::::::::::::::::::::::::::::::
:::
::: Emacsclient startup script runemacsclientw.bat
::: Robert Adesam, [email protected]
::: http://www.adesam.se/robert/
@fire
fire / gist:f097ad7f411eb3236876
Last active August 29, 2015 14:10
Emacs questions?
How do I select all and indent region?
Set mark: ‘C-SPC’, `C-@’, ‘M-x set-mark-command’
Select entire buffer: ‘C-x h’
M-x indent-region
How do I make readonly writable?
C-x C-q
How do I force close a document?
@fire
fire / gist:26a8092defa7d2a54950
Last active August 29, 2015 14:11
Prores encode

Prores 444

ffmpeg -i 2014-12-07-0300-20.flv -vcodec prores_ks -pix_fmt yuva444p10le -acodec copy -profile:v 4444 -y output-video.mov

Prores 422

ffmpeg -i 2014-12-07-0300-20.flv -vcodec prores_ks -acodec copy -y output-video.mov

@fire
fire / gist:84ea332d04ef2335d6ac
Created December 11, 2014 06:23
Instructions on how to setup program bandwidth limiting
Install netlimiter.
Set netlimiter to limit chrome and ruby to 9.8 megabits.
Done.
cd c:\w\hg\depot\UE4\
call unsetreadonly
cd c:\w\hg\depot\UE4\Engine\Binaries\Win64
c:
ue4editor HGGame -log
---
cd c:\w\hg\depot\UE4\Engine\Binaries\Win64
c:
Follow these steps
============
1) Create a folder on local disk Eg: C:\Users\keerthip\Documents\Dropbox
2) Create a Drive Letter Mapping eg:(H:) to the folder path in windows with following command
subst H: C:\Users\keerthip\Documents\Dropbox
3) Install Dropbox desktop software in advanced Mode.
Select the new local drive H: and sync either selective folders or all folder to local drive ( which is original folder path)
4) Wait till content is fully synced from web account
5) Pause Syncing and Exit Dropbox
6) Delete local folder drive mapping with following command
@fire
fire / gist:bca2b3cf23fc3ef9ec88
Last active August 29, 2015 14:12
tinch_pp bugs
CompileC /Users/fire/Documents/tinch_pp-build/impl/tinch_pp.build/Debug/tinch++.build/Objects-normal/x86_64/node_connection_state.o impl/node_connection_state.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/fire/Documents/tinch_pp
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten
@fire
fire / gist:1f2f0558c89d60032ecb
Created December 28, 2014 19:05
Smartos and Postgresxl
[admin@web01 /home/admin/postgres-xl]$ ./configure --with-openssl --with-libxml --with-libxslt --with-ossp-uuid
checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-solaris2.11
checking which template to use... solaris
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
@fire
fire / gist:d598117ea5c8c880ea9b
Created December 28, 2014 19:36
Smartos postgres-xl #2
[admin@web01 /home/admin/postgres-xl]$ ./configure --with-openssl --with-libxml --with-libxslt --with-ossp-uuid --enable-nls
checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-solaris2.11
checking which template to use... solaris
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... yes
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
@fire
fire / gist:09f36ac413383ad5f421
Created December 28, 2014 21:01
Smartos postgresxl #3
]$ make CFLAGS="-D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__"
gcc -D_XOPEN_SOURCE=500 -D_XPG4_2 -D__EXTENSIONS__ -I../../../../src/include -I/opt/local/include/libxml2 -I/opt/local/include -c -o pgxcnode.o pgxcnode.c
In file included from ../../../../src/include/pgxc/execRemote.h:26:0,
from pgxcnode.c:41:
../../../../src/include/pgxc/planner.h:224:13: error: storage class specified for parameter 'pgxc_query_contains_utility'
../../../../src/include/pgxc/planner.h:226:13: error: storage class specified for parameter 'pgxc_shippability_walker'
../../../../src/include/pgxc/planner.h:227:13: error: storage class specified for parameter 'pgxc_test_shippability_reason'
In file included from /usr/include/dirent.h:38:0,
from ../../../../src/include/storage/fd.h:41,
from ../../../../src/include/utils/resowner.h:22,