Skip to content

Instantly share code, notes, and snippets.

View GokhanPolat's full-sized avatar
🏠
Working from home

Gökhan Polat GokhanPolat

🏠
Working from home
View GitHub Profile
@GokhanPolat
GokhanPolat / eBookViewer-Theme.css
Created April 17, 2018 19:09
eBook viewer theme for best readability on Calibre.
body {
/* background: #FFFAFD; */
background-color: rgb(245, 245, 245) !important;
font-size: 100% !important;
line-height: 1.5 !important;
font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
margin: 35px !important;
}
header {
@GokhanPolat
GokhanPolat / youtube-dl.sh
Last active October 21, 2022 07:36
Download youtube video as mp3
# For file convention youtube-dl uses "ffmpeg"
# Don't forget install the necessary packages.
# if single video link
youtube-dl -i --extract-audio --audio-format mp3 [youtube link]
# if playlist link with desired naming convention
youtube-dl -i --extract-audio --audio-format mp3 -o "%(playlist_index)s-%(title)s.%(ext)s" [youtube link]
@GokhanPolat
GokhanPolat / iTerm2-MacOSX-Key-Configs.cfg
Created August 17, 2016 10:47
iTerm2 User Profile Key Configs on MacOSX
# iTerm2 User Profile Key Configs on MacOSX
# Deleting a word: 0x17
# Deleting a line: 0x15
# Moving to the beginning of the line: 0x01
# Moving to the end of the line: 0x05
# Moving to the cursor 1 word back : (Esc+) b
# Moving to the cursor 1 word forth : (Esc+) f
@GokhanPolat
GokhanPolat / izin-Degerlerini-Rakamsal-Olarak-Goster.sh
Created August 17, 2016 10:45
İzin Değerlerini Rakamsal Olarak Göster, stat -f '%A %N' *
# -rw-r--r-- şeklinde görünen dizin/dosya izin özelliklerini rakamsal olarak ifade eder (644 gibi)
stat -f '%A %N' *
@GokhanPolat
GokhanPolat / veriy-Repair-Permissions-inMacOSX.sh
Last active August 17, 2016 10:42
Verify - Repair Disk Permissions in OS X El Capitan from Command Line
# MacOSX permissions verify and repair
# verify
sudo /usr/libexec/repair_packages --verify --standard-pkgs /
# repair
sudo /usr/libexec/repair_packages --repair --standard-pkgs --volume /