Skip to content

Instantly share code, notes, and snippets.

View o9uzdev's full-sized avatar
🌎
Working from earth

oguz o9uzdev

🌎
Working from earth
View GitHub Profile

How to convert h264 file to m4v file

Installing ffmpeg on Mac OS X

Using Homebrew

The simplest way to install ffmpeg on Mac OS X is with Homebrew.

Once you have Homebrew installed install ffmpeg from the Terminal with the following:

Full Keyboard Access

Enable Tab in modal dialogs.

# Full Keyboard Access OFF and Text boxes and lists only
defaults write NSGlobalDomain AppleKeyboardUIMode -int 0

# Full Keyboard Access ON and Text boxes and lists only
defaults write NSGlobalDomain AppleKeyboardUIMode -int 1

# Full Keyboard Access OFF and All controls

Linux update date and time on internet

sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
@o9uzdev
o9uzdev / install-redis-3.2.3.md
Last active September 10, 2016 20:00
Install redis 3.2.3 for mac

Install redis 3.2.3

curl -o http://download.redis.io/releases/redis-3.2.3.tar.gz
tar xzf redis-3.2.3.tar.gz
cd redis-3.2.3
make
cp src/redis-server src/redis-cli /usr/local/bin
@o9uzdev
o9uzdev / sublime-automatic-reindent.md
Last active May 26, 2016 12:18
Sublime Automatic Reindent

Prefences/keybindig-user

[
  { "keys": ["option+command+["], "command": "reindent"}
]
@o9uzdev
o9uzdev / background-download file-in-raspberry-pi-terminal.md
Created May 3, 2016 20:10
Background Download File In Raspberry Pi Terminal

Background Download File In Raspberry Pi Terminal

$ nohup wget -qc download_file_url & exit
$ ps aux | grep wget
$ kill pid
@o9uzdev
o9uzdev / install-wget-on-raspberry-pi.md
Created May 3, 2016 20:09
Install wget on Raspberry Pi

Install wget on Raspberry Pi

$ apt-get update
$ apt-get upgrade -y
$ apt-get dist-upgrade -y
$ apt-get install wget
@o9uzdev
o9uzdev / libv8-error-fix.md
Created May 3, 2016 20:08
libv8 Error Fix

libv8 Error Fix

brew install homebrew/versions/v8-315
brew link --overwrite v8-315 --force
gem install libv8 -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -v '0.12.2' -- --with-system-v8
@o9uzdev
o9uzdev / change-apple-osx-dock-size-from-apple-terminal.md
Created May 3, 2016 20:05
Change Apple OS X Dock size from Apple Terminal

Change Apple OS X Dock size from Apple Terminal

defaults write com.apple.dock tilesize -int 32; killall Dock

32 is icon size