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
FROM python:3.11-slim | |
ENV USER="user" | |
ENV HOME_DIR="/home/${USER}" | |
ENV WORK_DIR="${HOME_DIR}/hostcwd" \ | |
SRC_DIR="${HOME_DIR}/src" \ | |
PATH="${HOME_DIR}/.local/bin:${PATH}" | |
ENV LANG="en_US.UTF-8" \ | |
LANGUAGE="en_US.UTF-8" \ | |
LC_ALL="en_US.UTF-8" |
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 |
NewerOlder