Skip to content

Instantly share code, notes, and snippets.

@oca159
oca159 / tmux.conf
Last active March 30, 2025 22:17
tmux
# Set terminal colors
set-option -sa terminal-overrides ",xterm*:Tc"
# Enable mouse support
set -g mouse on
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
@oca159
oca159 / config
Last active April 11, 2025 20:27
ghostty
theme = catppuccin-mocha
adjust-cell-height = 10%
command = /bin/zsh -c "tmux new -A -s work"
copy-on-select = true
font-family = "TX-02"
font-size = 16
font-thicken = true
mouse-hide-while-typing = true
macos-non-native-fullscreen=visible-menu
@adibhanna
adibhanna / tmux.conf
Last active April 20, 2025 01:45
Tmux config
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Increase scrollback buffer size
set -g history-limit 10000
@julian-west
julian-west / .zshrc
Last active June 6, 2022 12:57
Example .zshrc file with oh-my-zsh
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# need to disable in order for exa ls alias to work
DISABLE_LS_COLORS="true"
# FZF settings
export FZF_BASE="$HOME/.fzf"
export FZF_DEFAULT_COMMAND='rg --hidden --no-ignore --files -g "!.git/"'
export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND
@tcartwright
tcartwright / dbo.sp_generate_merge_crud.sql
Last active April 12, 2025 10:33
SQL SERVER: Generates (DUI or UPSERT) delete, update, insert statements instead of a MERGE statement to merge data into a table.
USE master
IF OBJECT_ID (N'dbo.sp_generate_merge_crud') IS NULL BEGIN
EXEC('CREATE PROCEDURE dbo.sp_generate_merge_crud AS SELECT ''PROCEDURE STUB, TO BE REPLACED'';');
END
GO
/*
TIM C: Because of issues with the MERGE statement (https://www.mssqltips.com/sqlservertip/3074/use-caution-with-sql-servers-merge-statement/)
@sandeepmanchi
sandeepmanchi / bucket-policy-on-destination-bucket-1.txt
Last active June 2, 2023 12:29
bucket-policy-on-destination-bucket-1
{
2 "Version": "2012-10-17",
3 "Id": "PolicyForDestinationBucket",
4 "Statement": [
5 {
6 "Sid": "Permissions on objects and buckets",
7 "Effect": "Allow",
8 "Principal": {
9 "AWS": "arn:aws:iam::999999999999:role/cross-account-bucket-replication-role"
10 },
#!/usr/bin/env bash
#: Your comments here.
set -o errexit
set -o nounset
set -o pipefail
work_dir=$(dirname "$(readlink --canonicalize-existing "${0}" 2> /dev/null)")
readonly conf_file="${work_dir}/script.conf"
readonly error_reading_conf_file=80
readonly error_parsing_options=81
readonly script_name="${0##*/}"
@PaulNeumann
PaulNeumann / Ubuntu_Vagrant_libvirt.md
Last active April 23, 2025 06:02
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization

@trongnghia203
trongnghia203 / install_pyenv.md
Last active April 4, 2025 17:41
Install pyenv
@inactivist
inactivist / luigi_first_steps.md
Last active July 13, 2023 09:12 — forked from tomsing1/luigi_first_steps.md
First steps with the Luigi workflow manager

First steps with the Luigi workflow manager

As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.

The problems and solutions described in the examples below have led to the development of sciluigi,