Skip to content

Instantly share code, notes, and snippets.

View RenChunhui's full-sized avatar

Ren Chunhui RenChunhui

View GitHub Profile
@gholami-mohammad
gholami-mohammad / arch-linux-dev-ws.sh
Last active June 20, 2024 04:44
Arch Linux For Development Workspace
sudo pacman --noconfirm -S ntfs-3g
sudo pacman --noconfirm -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
git config --global credential.helper store
sudo pacman --noconfirm -S bash-completion
sudo pacman --noconfirm -S curl
sudo pacman --noconfirm -S unzip
@numToStr
numToStr / au.lua
Last active August 20, 2023 05:15
Neovim autocmd in lua
--
-- Move this file to your neovim lua runtime path ie. ~/.config/nvim/lua/au.lua
--
local cmd = vim.api.nvim_command
local function autocmd(this, event, spec)
local is_table = type(spec) == 'table'
local pattern = is_table and spec[1] or '*'
local action = is_table and spec[2] or spec
if type(action) == 'function' then
@mikepruett3
mikepruett3 / arch-setup.sh
Last active June 20, 2024 04:44
A setup script for my Default Arch Linux installation
#!/usr/bin/env bash
## Install base
pacman -Syu base
# Initial Setup
## Install git if is unavailable on the system
if ! [ -x "$(command -v git)" ]; then
pacman -S git
fi
@blurayne
blurayne / ui-widget-select.sh
Last active March 15, 2024 20:27
Pure BASH interactive CLI/TUI menu (single and multi-select/checkboxes)
#!/bin/bash
##
# Pure BASH interactive CLI/TUI menu (single and multi-select/checkboxes)
#
# Author: Markus Geiger <mg@evolution515.net>
# Last revised 2019-09-11
#
# ATTENTION! TO BE REFACTORED! FIRST DRAFT!
#
@justsml
justsml / setup_osx.sh
Last active October 20, 2020 03:00 — forked from rands0n/setup_osx.sh
setup_osx
#!/bin/sh
echo "Starting XCode Command Line Tools Setup... Continue using the GUI prompt..."
sleep 4s
xcode-select --install
echo "DONE: Installing XCode Command Line Tools\!"
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"