Skip to content

Instantly share code, notes, and snippets.


Dušan Živojnov doole

View GitHub Profile
doole / kitty.conf
Last active Apr 26, 2022
Kitty configuration
View kitty.conf
# vim:fileencoding=utf-8:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Hack Nerd Font Mono
# font_family FiraCode Nerd Font Mono Retina
doole / .gitconfig
Created Apr 21, 2022
Git configuration
View .gitconfig
name = ***
email = ***
signingkey = ***
program = /usr/local/bin/gpg
excludesfile = ~/.gitignore_global
pager = delta
doole / alacritty.macos.yml
Last active Apr 12, 2022
Alacritty config
View alacritty.macos.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
doole /
Last active Jan 28, 2021
Use win32 binaries on macOS 10.15+

macOS wine 32/64-bit Setup

Run 32-bit apps on macOS Catalina 10.15+.



First install homebrew

/bin/bash -c "$(curl -fsSL"
doole /
Created May 11, 2017 — forked from todgru/
How to set-up a SSH tunnel for AWS RDS

SSH Tunnel

Our db is hosted on Amazon. Our web server can connect to the db. Connections to the db are not allowed outside of the web server.

Run ssh tunnel locally:

This creates a tunnel from my local machine to the web server:

ssh -N -L
doole /
Created Apr 21, 2017
How to make bootable macOS USB install drive

How to make bootable macOS USB install drive

MacOS 10.12 (Sierra)

sudo /Applications/Install\ macOS\ --volume /Volumes/USBDrive --applicationpath /Applications/Install\ macOS\ --nointeraction



Set NFS server on macOS

Set paths fot NFS

$ sudo vi /etc/exports

Add directories/drives

/Volumes/folder1 -maproot=nobodynfs	auto,user,nofail,noatime,nolock,intr,tcp,actimeo=1800	0	0
doole /
Created Oct 27, 2016
Install mcrypt PHP extension on macOS
# Install Xcode Command-Line Tools first (required)
xcode-select --install
# Check PHP version
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Extensions directory (default: empty string)
doole /
Created Mar 12, 2016
Build the latest `mpv` with brew
# taken from
# install homebrew
# setup
sudo easy_install docutils
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# install python3
doole / php.ini.diff
Last active Oct 27, 2016
Diff for macOS (10.10, 10.11, 10.12) /private/etc/php.ini
View php.ini.diff
--- php.ini.default 2016-09-07 01:39:57.000000000 +0200
+++ php.ini 2016-10-27 09:37:27.000000000 +0200
@@ -446,7 +446,7 @@
; Development Value: E_ALL
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
-error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
+error_reporting = E_ALL
; This directive controls whether or not and where PHP will output errors,