Skip to content

Instantly share code, notes, and snippets.

View doole's full-sized avatar

Dušan Živojnov doole

View GitHub Profile
theme = "catppuccin_mocha"
[editor]
line-number = "relative"
cursorline = true
color-modes = true
true-color = true
auto-pairs = true
bufferline = "multiple"
# gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
@doole
doole / install_python3.sh
Last active April 11, 2024 15:41
Python 3.3 installation script for Debian Wheezy
PY_VER="3.3.3"
# Update
apt-get update && apt-get dist-upgrade -y
# Install required packages
apt-get install -y build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev libgdbm-dev libreadline-dev libc6-dev
# Get, compile and install python3
cd /usr/local/src
@doole
doole / wine32_macos.org
Last active April 4, 2024 21:16
Use win32 binaries on macOS 10.15/11.0

macOS wine 32/64-bit Setup

Run 32-bit apps on macOS Catalina (10.15) and Big Sur (11.0).

Installation

Dependencies

First install homebrew brew.sh

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@doole
doole / kitty.conf
Last active March 18, 2024 09:42
Kitty configuration
# 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 JetBrainsMono Nerd Font
@doole
doole / mpv.conf
Last active February 14, 2024 16:09
Configuration file for `mpv`
#
# mpv configuration file
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
#
# Note that the commented example options usually do _not_ set the default
@doole
doole / flac_transcoding.org
Created February 8, 2024 13:47
FLAC transcoding (cli)

FLAC Transcode

Convert

MP3 - VBR V0

- encode/mp3

find . -name '*.flac' -print0 | xargs -0 -I FILE sh -c 'ffmpeg -i "$1" -c:a libmp3lame -q:a 0 "${1%.flac}.mp3" ' -- FILE

M4A - CBR 320kbps

@doole
doole / _etc_resolv.conf
Last active January 23, 2024 10:52
Nameservers
# SBB
nameserver 89.216.1.30
nameserver 89.216.1.50
# Google
nameserver 8.8.8.8
nameserver 8.8.4.4
# OpenDNS
nameserver 208.67.222.222
@doole
doole / install_psql_php.sh
Last active September 21, 2023 19:12
Install PostgreSQL PHP extensions on Mac OS X
#!/bin/bash
# Install Xcode Command Line Tools first (required)
xcode-select --install
# Check PHP version `php --version`
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Extensions directory (default: empty string)
EXT_DIR=""
local wezterm = require 'wezterm'
return {
color_scheme = 'Dracula',
font = wezterm.font 'JetBrains Mono',
font_size = 13.0,
window_background_opacity = 0.99,
initial_cols = 170,
initial_rows = 55,
enable_kitty_graphics = true,
@doole
doole / .vimrc
Last active August 31, 2022 10:17
Minimal .vimrc for server setup
"
" Minimal .vimrc for server setup
"
set nocompatible
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set vb t_vb=