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 / push_vault_changes.sh
Last active November 28, 2024 19:23
Commit and push changes to Obsidian Vault
#!/usr/bin/env sh
# For commit messages like `2024-11-28T11:06:52`, inside the Vault directory:
# Source: https://phoenixnap.com/kb/linux-date-command
git add . && git commit -m "$(date +"%Y-%m-%dT%T")" && git push
nix-shell -p git curl vim
git clone https://gitlab.com/zaney/zaneyos.git
cd zaneyos
cp -r hosts/default hosts/desktop
# Update configuration variables and options.
sed -i 's/aarch64-linux/x86_64-linux/g' flake.nix
sed -i 's/nixbook/desktop/g' flake.nix
@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: