Skip to content

Instantly share code, notes, and snippets.

Installing i3wm on Ubuntu 22.04 LTS

This guide details my experience of installing i3wm on Ubuntu 22.04 LTS.

Note: My Ubuntu Desktop environment was already set up. All the apps available in the default Ubuntu window manager will also be accessible in i3wm, which is amazing because you can switch back to the default Ubuntu window manager anytime.

Install the i3wm

Open the terminal and run the following command:

# Source: https://gist.github.com/vfarcic/8301efb15748af1da3e376b7132e519e
###################################################################
# Should We Run Databases In Kubernetes? CloudNativePG PostgreSQL #
# https://youtu.be/Ny9RxM6H6Hg #
###################################################################
# Additional Info:
# - CloudNativePG: https://cloudnative-pg.io
# - EDB: https://enterprisedb.com
@xmawja
xmawja / 00_Partition_BTRFS_Disk.sh
Last active May 3, 2025 19:00
Gentoo BTRFS Installation Guide - How To Install Gentoo On BTRFS
#!/bin/sh
# Gentoo BTRFS Installation Guide
# First Step You Need to boot From Gentoo Live Cd
## reference https://gist.github.com/renich/90e0a5bed8c7c0de40d40ac9ccac6dfd
####################################################
# Partition Your Disks
# referenses https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks#Partitioning_the_disk_with_GPT_for_UEFI
# Print Partions That Attached TO Your System
@riskiwah
riskiwah / build_nginx_with_lua.sh
Last active May 30, 2025 19:55 — forked from kanna5/build_nginx_with_lua.sh
A simple script to build nginx with lua support
#!/bin/sh
# Script to build nginx with lua support.
NGINX_VERSION='1.18.0'
NGX_DEVEL_KIT_VERSION='0.3.1'
LUA_NGINX_MODULE_VERSION='0.10.16rc5'
STREAM_LUA_NGINX_MODULE_VERSION='0.0.8rc3'
# we use openresty's version of luajit here.
# You may get error like "curl: (60) SSL certificate problem: certificate has expired"
# One of root certif like "AddTrust External CA Root" expires after May 30, 2020
# this may cause the issue
1. Dowloand correct "USERTrust RSA Certification Authority" root certificate from official site: https://support.sectigo.com/Com_KnowledgeDetailPage?Id=kA01N000000rfBO
2. copy SHA-2_Root_USERTrust_RSA_Certification_Authority.crt to /usr/share/ca-certificates/mozilla
3. run sudo dpkg-reconfigure ca-certificates
4. uncheck mozilla/AddTrust_External_Root.crt and check mozilla/2_Root_USERTrust_RSA_Certification_Authority.crt
5. press OK
6. run sudo update-ca-certificates
@ruanbekker
ruanbekker / dnsmasq.conf
Last active April 3, 2025 17:58
Tinkering with Loki, Promtail, Grafana, Prometheus, Nginx and Dnsmasq
log-queries
log-facility=/var/log/dnsmasq.log
no-resolv
server=8.8.4.4
server=8.8.8.8
address=/router/10.1.1.1
address=/server/10.1.1.2
@tvvignesh
tvvignesh / .gitlab-ci.yml
Created December 22, 2019 17:46
Example on running Skaffold with GITLAB CI for Kubernetes in GKE (Make sure you modify it appropriately and set GCP_SERVICE_KEY and GCP_PROD_SERVICE_KEY variable in Gitlab with the service account json value)
services:
- docker:dind
stages:
- development
- production
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ''

CockroachDB and Docker Compose

This is the first in a series of tutorials on CockroachDB and Docker Compose

  • Information on CockroachDB can be found here.
  • Information on Docker Compose can be found here
  1. Install Docker Desktop

Because we already have an official CockroachDB docker image, we will use that in our docker-compose.yml file. We recommend you use one of the current tags instead of latest.

@jamesguan
jamesguan / gist:4c7c2e00038c0b257059b36b8271a269
Created October 5, 2018 02:30
How to remove the osxkeychain from git credentials
Do
You may try the following but may not succeed:
git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
On Mac, the configuration is stored in:
/Library/Developer/CommandLineTools/usr/share/git-core/gitconfig
@etiennetremel
etiennetremel / create-user.sh
Last active February 1, 2024 20:22
Create Kubernetes user using kubectl csr and cfssl
#!/bin/bash
#
# Create Kubernetes user. Require cfssl.
#
# Usage:
# ./create-user.sh <kubernetes api host> <fulle name> <clusterrole>
#
# Example:
# ./create-user.sh k8s-api.my-domain.com "Jane Doe" my-project:admin