Skip to content

Instantly share code, notes, and snippets.

View alptugan's full-sized avatar

alp tuğan alptugan

View GitHub Profile
@alptugan
alptugan / Aicrack-ng
Last active May 1, 2019 20:25
Linux commands Debian
# Change your mac address
ifconfig wlan0 down
macchanger -m 00:11:22:33:44:55 wlan0
# wkae up wlan0 interface
ifconfig wlan0 up
# start wifi
airmon-ng start wlan0
@alptugan
alptugan / css snippets
Created September 22, 2015 11:29
CSS Snippets
HTML CODE
<div id="navcontainer">
<ul>
<li><a href="#">Milk</a></li>
<li><a href="#">Eggs</a></li>
<li><a href="#">Cheese</a></li>
<li><a href="#">Vegetables</a></li>
<li><a href="#">Fruit</a></li>
</ul>
</div>
@alptugan
alptugan / Include data folder into app
Last active August 6, 2019 10:47
oF mini examples
// 1 - Move the Data folder inside to compiled Application
// Add this line into ofApp.cpp
ofSetDataPathRoot("../Resources/data/");
// 2- Click project file (blue icon at top-left)->Build Phases->Run Script
// Paste the following line at the end
cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources";
@alptugan
alptugan / Run with OPENGL on Lubuntu
Last active May 1, 2019 20:11
installation rPi + openFrameworks v0.92
// log into the project folder
make
// If succesful then
MESA_GL_VERSION_OVERRIDE=2.1 bin/project_name
@alptugan
alptugan / CONDTIONALS
Last active June 4, 2023 12:21
Sonic Pi Cheat Sheet
So, let’s flip a coin: if it’s heads, play a drum, if it’s tails, play a cymbal. Easy. We can emulate a coin flip with our one_in function (introduced in the section on randomness) specifying a probability of 1 in 2: one_in(2). We can then use the result of this to decide between two pieces of code, the code to play the drum and the code to play the cymbal:
loop do
if one_in(2)
sample :drum_heavy_kick
else
sample :drum_cymbal_closed
end
@alptugan
alptugan / Tri-planar.md
Created January 8, 2017 18:13 — forked from patriciogonzalezvivo/Tri-planar.md
GLSL Triplanar Texture Mapping
@alptugan
alptugan / GLSL-Lights.md
Created January 8, 2017 18:15 — forked from patriciogonzalezvivo/GLSL-Lights.md
GLSL Shaders Lights Funtions
Reference:
https://www.metachris.com/2015/11/create-standalone-mac-os-x-applications-with-python-and-py2app/
// Create virtual environment
virtualenv venv
. venv/bin/activate
// Install py2app
pip install -U git+https://github.com/metachris/py2app.git@master
py2applet --make-setup app_name.py
@alptugan
alptugan / README.md
Created October 15, 2017 14:01 — forked from kashimAstro/README.md
H3 / Mali GPU driver and openframeworks armv7 ES / ES2

#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.

tested on: orangepi one banana pi M2

dependencies:

apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \ 
           x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
 build-essential automake pkg-config libtool ca-certificates git cmake subversion
@alptugan
alptugan / .bash_aliases commands
Last active February 8, 2018 08:45
Set of bash aliases
# open bash_profile
sudo nano ~/.bash_profile
# add the following line
. ~/.bash_aliases
Kntrl+o
Kntrl+x
source ~/.bash_profile