Skip to content

Instantly share code, notes, and snippets.

View truongmanhsang's full-sized avatar
💭
I may be slow to respond.

truongmanhsang

💭
I may be slow to respond.
View GitHub Profile
@ld100
ld100 / ArchLinuxWSL2.md
Last active April 27, 2024 18:05
Steps for setting up Arch Linux on WSL2

Migrating from Ubuntu on WSL to ArchLinux on WSL2

Obsolete notice

This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.

Upgrading to WSL 2

  • Download WSL2 Kernel
  • run wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.
@LazyDay
LazyDay / bootmac.cmd
Last active April 20, 2022 04:33
OS X 86 Reboot to windows, change default boot volume in clover, Siri shortcuts
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "C:\Users\ld\bootmac.ps1"
@manovotny
manovotny / script-already-running-check.sh
Last active September 22, 2023 07:15
Bash script to check if a script is already running.
#!/bin/bash
dupe_script=$(ps -ef | grep "SCRIPT_NAME.sh" | grep -v grep | wc -l | xargs)
if [ ${dupe_script} -gt 2 ]; then
echo -e "The SCRIPT_NAME.sh script was already running!"
exit 0
fi