Skip to content

Instantly share code, notes, and snippets.

@adibhanna
adibhanna / tmux.conf
Last active September 14, 2024 11:36
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
@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 September 5, 2024 09:13
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

@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,

@wolph
wolph / aida64_prometheus_exporter.py
Last active May 29, 2024 07:54
This prometheus exports all of your AIDA64 data to a Prometheus server so you can chart all of them using Grafana: https://grafana.com/grafana/dashboards/11339
import re
import mmap
import typing
import hashlib
import logging
import argparse
import datetime
import ipaddress
import dataclasses
import xml.etree.cElementTree as ET
@JoaoCarabetta
JoaoCarabetta / README.md
Last active August 24, 2024 11:16
Add Time Based Glue Partitions with Lambda AWS

Creates time based Glue partitions given time range.

Keep in mind that you don't need data to add partitions. So, you can create partitions for a whole year and add the data to S3 later.

@MIvanchev
MIvanchev / article.md
Last active April 4, 2023 13:39
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active September 19, 2024 18:26
set -e, -u, -o, -x pipefail explanation