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 / .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
@GokhanPolat
GokhanPolat / solc-wrapper.sh
Last active April 27, 2021 07:16
solc wrapper for emacs-solidity package
#!/bin/sh
#
# Wrapper for running solc from flycheck-solidity.
#
# If DOOM Emacs is used, this file must be ~/.doom.d/solc-wrapper.sh
#
set -e
/usr/local/bin/solc \
@openzeppelin/=$(git rev-parse --show-toplevel)/node_modules/@openzeppelin/ \
@GokhanPolat
GokhanPolat / emacs-solidity-config.el
Created April 27, 2021 07:21
emacs-solidity package configs
#
# this code block part of ~/.doom.d/config.el
#
(require 'flycheck)
;; (setq solidity-solc-path "/usr/local/bin/solc")
(setq-default solidity-solc-path "~/.doom.d/solc-solium-wrapper.sh")
(setq solidity-solium-path "/usr/local/bin/solium")