Skip to content

Instantly share code, notes, and snippets.

View lvaylet's full-sized avatar
🔥
Learning

Laurent Vaylet lvaylet

🔥
Learning
  • Google, Inc
  • Paris, France
View GitHub Profile
@lvaylet
lvaylet / README.md
Last active March 13, 2024 11:01
SLO Generator Demo Environment

SLO Generator Demo Environment

  1. Create a new project, for example slo-generator-demo, and set it to the current project, for example with:

    gcloud projects create cloud-operations-sandbox-a5r3 --set-as-default
  2. Open Cloud Shell and save the project ID and project number to environment variable with:

@lvaylet
lvaylet / install-zsh.sh
Last active April 3, 2024 07:41
Install a new Zsh shell with prompt, plugins, utils and custom aliases
#!/usr/bin/env bash
# Install Zsh shell and shell utils
sudo apt update -y && sudo apt install -y exa bat zsh
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install and enable Spaceship prompt
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/spaceship-prompt" --depth=1
#!/usr/bin/env bash
# Instructions
# ---
# On top of a clean install of Arch Linux, for example after https://gist.github.com/lvaylet/c931e881f4038080b47646be1da6be65:
#
# 1. Download this script with:
# $ curl -Lo install_my_linux.sh -H 'Cache-Control: no-cache' https://gist.githubusercontent.com/lvaylet/5bad228cfb854756dac972d67dcfe969/raw
# or, thanks to GitHub's URL shortener:
# $ curl -Lo install_my_linux.sh -H 'Cache-Control: no-cache' https://git.io/JRsiW
@lvaylet
lvaylet / arch_linux_xorg_window_manager.md
Last active February 26, 2024 01:14
Install XOrg and a Window Manager on a Clean Install of Arch Linux - DistroTube

Install Xorg and a Window Manager (dwm, XMonad) on a Clean Install of Arch Linux

dwm + st + dmenu, custom build from DistroTube

Following up on Arch Linux Installation Guide , lauch VM with clean install and log in as a normal user.

Install video driver, X.Org, X.Org initialization program, wallpaper manager, compositor, text editor, terminal emulator and web browser with:

@lvaylet
lvaylet / arch_linux_install.md
Last active February 5, 2024 13:28
Inspired by Arch Linux Installation Guide 2020 - DistroTube

Arch Linux Installation Guide

Create a new VM in VirtualBox or VMWare Player with:

  • 2 CPUs
  • 4096 MB RAM
  • 20 GB disk
  • Enable EFI
  • 128 MB video memory
  • Enable 3D Acceleration
  • The official Arch Linux ISO mounted
@lvaylet
lvaylet / 10_alacritty.md
Last active August 3, 2021 07:36
Install Alacritty system-wide on Ubuntu with DistroTube's config

10 - Alacritty

Install the dependencies with:

sudo apt install -y cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3

Create the config directory with

@lvaylet
lvaylet / 00_fonts.md
Last active May 9, 2023 20:06
Install fonts for Distrotube's config

00 - Fonts

Create local fonts folder. Note that ~/.fonts is deprecated.

mkdir -p ~/.local/share/fonts

Download each font individually with:

@lvaylet
lvaylet / 05_vim.md
Last active August 6, 2021 18:32
Install Vim and Neovim with Distrotube's config

05 - Vim

Download Derek's config file with:

curl -fLo ~/.vimrc --create-dirs https://gitlab.com/dwt1/dotfiles/-/raw/master/.vimrc

Install vim-plug (for plugin management) with:

@lvaylet
lvaylet / 15_xmonad_xmobar.md
Last active January 26, 2024 06:59
Install XMonad and Xmobar on Ubuntu with Distrotube's config

15 - XMonad and Xmobar

From a fresh installation of Ubuntu 20.04 (ubuntu-20.04.2.0-desktop-amd64.iso), install the base XMonad package, extra libraries/modules from the community as well as xterm and dmenu with:

sudo apt install xmonad libghc-xmonad-contrib-dev xterm dmenu

Log out, click your user, select XMonad from the cog at the bottom right and type your password to log in using XMonad instead of the default window manager. The black screen you get is suckless to the extreme and completely expected :-) No wallpaper, no menu, no panel...

@lvaylet
lvaylet / install_hashicorp_tools.sh
Last active July 12, 2020 15:02
Install Hashicorp tools with sethvargo/hashicorp-installer
cd ~/.local/bin
docker run -v $(pwd):/software sethvargo/hashicorp-installer terraform 0.12.28
docker run -v $(pwd):/software sethvargo/hashicorp-installer vault 1.4.3
# Then make sure ~/.local/bin is added to $PATH in .profile, .bashrc or .zshrc