Skip to content

Instantly share code, notes, and snippets.

@luutuankiet
luutuankiet / boilerplate_devcontainer.sh
Last active July 19, 2024 03:11
boilerplate devcontainer script
#!/bin/bash
# usage : `source <(curl -s https://gist.githubusercontent.com/luutuankiet/5c88f9640c596ec5a23a96337304756b/raw/boilerplate_devcontainer.sh)`
# Set working directory
ENV_WORK_DIR="$(pwd)"
# URLs for devcontainer.json and postCreateCommand.sh
URL_DEVCONTAINER="https://gist.githubusercontent.com/luutuankiet/23a7c5bdf896896f8b9d1fa1b95ddb08/raw/devcontainer.json"
URL_POSTCREATESCRIPT="https://gist.githubusercontent.com/luutuankiet/a29c065133be245f17786c81f48c4f09/raw/postCreateCommand.sh"
@luutuankiet
luutuankiet / postCreateCommand.sh
Last active July 23, 2024 14:22
postCreateCommand.sh
#!/bin/bash
# Function to print a section header
print_section() {
local section_title=$1
echo
echo "================================="
echo "================================="
echo "================================="
echo " $section_title"
echo "================================="
@luutuankiet
luutuankiet / devcontainer.json
Last active July 23, 2024 14:17
devcontainer boilerplate
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
// =======================================================================================================================
// =======================================================================================================================
// ================================================= DEFAULTS ======================================
// =======================================================================================================================
// =======================================================================================================================
// =======================================================================================================================
"name": "Python 3",
@luutuankiet
luutuankiet / terminal-utils-setup
Last active May 30, 2024 18:51
terminal-utils-setup
#!/bin/bash
# usage : either paste all the contents to terminal or use curl : `curl -fsSL <link to this gist> | bash`
# Function to print a section header
print_section() {
local section_title=$1
echo
echo "================================="
echo " $section_title"
echo "================================="
echo
# usage : either paste all the contents to terminal or use curl : `curl -fsSL <link to this gist> | bash`
apt-get update && \
# INSTALL ZSH PLUGINS START
apt install -y \
curl git zsh-autosuggestions zsh-syntax-highlighting zsh vim tree && \
export RUNZSH="no" && \
export USER="$(id -u -n)" && \
export ZSH="/root/.oh-my-zsh" && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
cd /root/.oh-my-zsh/plugins && \
@luutuankiet
luutuankiet / SpaceFn.json
Last active April 22, 2023 14:07 — forked from tshu-w/SpaceFn.json
Karabiner Elements config to simulate SpaceLauncher, with mod for command arrows
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{