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 / 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 /
@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 / 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 / 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 / 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 / .wcalcrc
Created November 11, 2019 07:17
wcalc settings and preferences for Turkish notation (~/.wcalcrc)
color = yes
engineering = never
history_limit = no
precision_guard = yes
print_delimiters = yes
thousands_delimiter = .
decimal_delimiter = ,
colors[approx_answer] = boldcyan
colors[exact_answer] = boldgreen
colors[prompt] = boldblue
@GokhanPolat
GokhanPolat / Homebrew Install Specific Version of Formula.org
Last active February 7, 2020 18:03
Homebrew Install Specific Version of Formula
cd $(brew --repo homebrew/core)
git log master -- Formula/mpv.rb
commit 214fbf099806e2c79ec0f214e12b5becca988011
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
@GokhanPolat
GokhanPolat / alacritty.yml
Created February 12, 2020 14:36
Deletes the whole line on the MacOS X with cmd+Backspace in Alacritty. (macOS Mojave)
key_bindings:
- { key: Back, mods: Command, chars: "\x15" }
@GokhanPolat
GokhanPolat / install_castero.sh
Created May 12, 2020 11:53
castero manual Installation
#!/bin/zsh
# Installing castero from source code on macOS X.
# castero - TUI podcast client for the terminal.
# https://github.com/xgi/castero
# Clone repo
git clone --recurse-submodules https://github.com/xgi/castero.git
@GokhanPolat
GokhanPolat / castero.conf
Last active May 12, 2020 11:54
castero configuration file
# castero configuration file
# https://github.com/xgi/castero
[client]
# Whether to ask for confirmation before deleting a feed.
# default: False
delete_feed_confirmation = False
# The minimum number of feeds before the client asks you for confirmation