Skip to content

Instantly share code, notes, and snippets.

View alptugan's full-sized avatar

alp tuğan alptugan

View GitHub Profile
@alptugan
alptugan / Atom_Cheat_Cheet.md
Created August 4, 2018 19:58 — forked from chrissimpkins/gist:5bf5686bae86b8129bee
Atom Editor Cheat Sheet (Sweetmeat)

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@alptugan
alptugan / drive
Last active March 28, 2018 12:20
sudo apt-get update
sudo apt-get install imagemagick -y
# for manual
# drive man for manual
drive man
# list remote path files
drive list
# Detect and convert file encoding on Linux RPI
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/
execute in terminal :
gcc -v
g++ -v
Okay, so that part is fairly simple. The tricky part is that when you issue the command GCC it is actually a sybolic link to which ever version of GCC you are using. What this means is we can create a symbolic link from GCC to whichever version of GCC we want.
You can see the symbolic link :
ls -la /usr/bin | grep gcc-4.4
ls -la /usr/bin | grep g++-4.4
@alptugan
alptugan / Setup Guide Cross Compiler on RPI (Ubuntu Mate) & Mac Virtual Box (Linux Kali)
Last active December 25, 2017 11:54
Setup Guide Cross Compiler on RPI (Ubuntu Mate) & Mac Virtual Box (Linux Kali)
## On Your Mac Computer
Disable .DS_STORE files to prevent Samba issues
> http://downloads.binaryage.com/Asepsis-1.5.2.dmg
### before installing please run this command in Terminal.app:
> touch ~/.no-asepsis-os-restriction
or Blue Harvest is good at removing these on the fly.
## On your RPI
@alptugan
alptugan / Ubuntu Mate Raspberry Pi Setup on RPI-2 board
Last active December 5, 2017 02:28
Setup Openframeworks on Raspberry Pi 2
Following instructions are hosted on my gist account also.
I can compile the polygon and opencv examples successfully after the issues.
Now everything works fine. Enabling overclock makes compiling process faster btw.
## Ubuntu Mate Raspberry Pi Setup on RPI-2 board##
1) Download ubuntu RPI image
https://ubuntu-mate.org/raspberry-pi/ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img.xz
2) Use Etcher freeware to burn image to SD Card
@alptugan
alptugan / nano-shorts.md
Created December 3, 2017 15:28 — forked from franz-josef-kaiser/nano-shorts.md
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
@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
@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
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