Skip to content

Instantly share code, notes, and snippets.

View alptugan's full-sized avatar

alp tuğan alptugan

View GitHub Profile
@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 / 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 / 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
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
# Detect and convert file encoding on Linux RPI
https://www.tecmint.com/convert-files-to-utf-8-encoding-in-linux/
@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
@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 / tidal installation snippets
Last active August 16, 2018 22:26
Issues, installation, etc...
# re-installing Tidal
# 1- Uninstall haskell
# to see installed versions
$ uninstall-hs
$ uninstall-hs thru [current version of yours. DO NOT INCLUDE brackets] --remove
# 2- Instal Tidal again
$ cabal install tidal
# 3- check installed tidal components
var scaleW = this.imgW / this.images[this.curId].width;
var scaleH = this.imgH / this.images[this.curId].height;
if(scaleW > scaleH) {
this.images[this.curId].height = this.imgH;
this.images[this.curId].scale.x = this.images[this.curId].scale.y;
}else{
this.images[this.curId].width = this.imgW;
this.images[this.curId].scale.y = this.images[this.curId].scale.x;
}
@alptugan
alptugan / ptpd-tidal
Last active April 15, 2025 11:54
ptpd server installing and running on Super Collider and Tidal Cycles
## ptpd installation on Mac OS X HIGH SIERRA ##
#### update brew ####
``` $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null```
``` $ brew install automake```
``` $ brew install libtool```
``` $ brew install autoconf```