This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# here is the cmake command to generate makefile | |
cmake -G "Unix Makefiles" -D CMAKE_MAKE_PROGRAM="mingw32-make.exe" -D FREETYPE_INCLUDE_DIRS="../Dependencies/freetype/include;../Dependencies/freetype/include/freetype2" -D FREETYPE_LIBRARY="../Dependencies/freetype/lib/libfreetype.dll.a" . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vertex shader | |
``` | |
#version 150 | |
attribute vec3 position; | |
void main() | |
{ | |
gl_Position = vec4(position, 1.0); | |
} | |
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// compiling: | |
/// g++ -std=c++0x -o example example.cpp -I./libtool/include/ -L./libtool/lib/ -lltdl | |
/// | |
#include <cstdio> | |
#include <iostream> | |
#include <memory> | |
#include <ltdl.h> | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build library dll | |
g++ -c -DBUILDING_EXAMPLE_DLL example_dll.cpp | |
g++ -shared -o example_dll.dll example_dll.o -Wl,--out-implib,libexample_dll.a | |
# build executable | |
g++ -c example_exe.cpp | |
g++ -o example_exe.exe example_exe.o -L. -lexample_dll | |
# build without an import library | |
g++ -o example_exe.exe example_exe.o example_dll.dll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### going back the backtrace | |
backtrace | |
select-frame [frameno] | |
up | |
down | |
### reversing stepping in the code | |
target record-full | |
reverse-{next, continue, step} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Some Keybinds that I always forgot | |
Alt + C - Convert to mesh. | |
Ctrl + Alt + Numpad 0 - Snap the camera to the position of the view. | |
Shift + B - Render border. | |
Ctrl + Alt + B - Clear render border. | |
M - Object move to layer. | |
### Navigation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# attach to a current network | |
strace -p [pid] -f -e trace=network -s [strsize] | |
# or just trace connect calls | |
strace -p [pid] -f -e trace=network -s [strsize] | |
# or some chosen network calls | |
strace -p [pid] -f -e poll,select,connect,recvfrom,sendto -s [strsize] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Original Link https://wiki.archlinux.org/index.php?title=Tor | |
#!/bin/bash | |
export TORCHROOT=/opt/torchroot | |
mkdir -p $TORCHROOT | |
mkdir -p $TORCHROOT/etc/tor | |
mkdir -p $TORCHROOT/dev | |
mkdir -p $TORCHROOT/usr/bin | |
mkdir -p $TORCHROOT/usr/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm | |
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux | |
yum install -y flash-plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pacman -S rng-tools | |
sudo rngd -f -r /dev/urandom | |
gpg2 --full-gen-key |