Skip to content

Instantly share code, notes, and snippets.

View doole's full-sized avatar

Dušan Živojnov doole

View GitHub Profile
-- vim: tabstop=2 shiftwidth=2 expandtab
-- We almost always start by importing the wezterm module
local wezterm = require 'wezterm'
-- Define a lua table to hold _our_ module's functions
local module = {}
-- Returns a bool based on whether the host operating system's
-- appearance is light or dark.
function module.is_dark()
@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

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,
theme = "catppuccin_mocha" # nightfox | dracula | sonokai | tokyonight
[editor]
line-number = "relative"
cursorline = true
color-modes = true
true-color = true
auto-pairs = true
bufferline = "never"
# gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
@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 / alacritty.macos.yml
Last active April 12, 2022 11:48
Alacritty config
# 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
doole / wine32_macos.org
Last active September 20, 2024 08:51
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 / ssh-tunnel.md
Created May 11, 2017 09:17 — forked from todgru/ssh-tunnel.md
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 3307:my-rds-db.us-east-1.rds.amazonaws.com:3306 ec2-my-web-server.compute-1.amazonaws.com
@doole
doole / macos_usb.md
Created April 21, 2017 08:04
How to make bootable macOS USB install drive

How to make bootable macOS USB install drive

MacOS 10.12 (Sierra)

sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USBDrive --applicationpath /Applications/Install\ macOS\ Sierra.app --nointeraction

Tools

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