git init example
cd example/
echo "# Example" > README.md
git add .
git commit -m "Start project"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /f %%i in ('wsl.exe wslpath "%1"') do set filepath=%%i | |
wsl.exe -- zsh -l -c 'source $ASDF_DIR/asdf.sh; nvim_open %filepath% %2 %3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C: | |
cd \Windows\System32\lxss\lib | |
del libcuda.so | |
del libcuda.so.1 | |
mklink libcuda.so libcuda.so.1.1 | |
mklink libcuda.so.1 libcuda.so.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import gi | |
gi.require_version("Wnck", "3.0") | |
from gi.repository import Wnck, Gdk, GLib | |
def on_window_destroy(screen, window): | |
print(screen, window) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MANAGERS=${MANAGERS:-"arch flatpak rust cargo golang pip yarn misc"} | |
FORCE_INSTALL=${FORCE_INSTALL:-} | |
echo "Managers enabled: $MANAGERS" | |
function download_from_and_install_to() { | |
curl -L -o $2 $1 && chmod +x $2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 1GB swap | |
dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576 | |
chown root:root /swapfile1 | |
chmod 0600 /swapfile1 | |
mkswap /swapfile1 | |
swapon /swapfile1 | |
# add to /etc/fstab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install -y software-properties-common | |
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php | |
LC_ALL=C.UTF-8 add-apt-repository -y ppa:certbot/certbot | |
apt-get update | |
apt-get install -y git vim curl wget apache2 libapache2-mpm-itk |
NewerOlder