Skip to content

Instantly share code, notes, and snippets.

Avatar
🐐
Goats are cute

Ruandré Janse van Rensburg ruandre

🐐
Goats are cute
View GitHub Profile
@ruandre
ruandre / nix.sh
Last active Oct 17, 2021
nix on debian/ubuntu (incl. wsl)
View nix.sh
# info source: https://ariya.io/2020/05/nix-package-manager-on-ubuntu-or-debian
# install these if not already available
sudo apt install curl xz-utils
# or (gcc et al, includes xz-utils)
sudo apt install curl build-essential
sudo mkdir /nix
sudo chown username /nix # replace username with own
sh <(curl -L https://nixos.org/nix/install) --no-daemon
View awesome-cli.md
View shell-tips.sh
# mostly "notes to self" as I occasionally forget
# system info
uname -a
# search for a process
ps aux | grep [something]
# immediately terminate process
kill -9 [pid]
@ruandre
ruandre / Profile.ps1
Last active Oct 5, 2021
PowerShell Profile.ps1
View Profile.ps1
# $Home\Documents\PowerShell\Profile.ps1
Clear-Host
# Install-Module PSReadLine -Scope CurrentUser
# Install-Module posh-git -Scope CurrentUser
# Install-Module oh-my-posh -Scope CurrentUser
# Install-Module -AllowClobber Get-ChildItemColor -Scope CurrentUser
# Install-Module Terminal-Icons -Scope CurrentUser
# Install-Module ZLocation -Scope CurrentUser
# Install-Module -AllowClobber Pansies -Scope CurrentUser
@ruandre
ruandre / random-awesome-stuff.md
Last active Oct 1, 2021
Random Awesome Stuff
View random-awesome-stuff.md
@ruandre
ruandre / boiler.html
Last active Sep 21, 2021
HTML Boilerplate
View boiler.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title></title>
<!-- <meta name="robots" content="noindex,nofollow"> -->
<meta name="description" content="">
<meta name="theme-color" content="#fff">
@ruandre
ruandre / settings.json
Last active Sep 21, 2021
Windows Terminal
View settings.json
//
// https://github.com/microsoft/terminal
// https://aka.ms/terminal-documentation
// https://github.com/lextm/windowsterminal-shell
//
// shortcuts:
// ctrl+tab cycle tabs
// ctrl+shift+t new tab
// ctrl+shift+w close tab
// alt+shift+d split
@ruandre
ruandre / win10-11.md
Last active Sep 13, 2021
After installing Windows 10/11
View win10-11.md

After installing Windows 10/11

Install:

You can use https://uupdump.net/ to build up an ISO file (even from Linux or Mac, the options enable you to keep the file size down) and just drop into https://github.com/ventoy/Ventoy and you're good to go.

If you're already running Windows you can do "Reset this PC" for a more convenient ISO download option.

Personal preference:

  • Disconnect from the internet before install.
@ruandre
ruandre / .bashrc
Last active Sep 13, 2021
Debian/Ubuntu .bashrc
View .bashrc
# fix dir colors in wsl
LS_COLORS+=':ow=01;33'
alias q='exit'
alias upup='sudo apt update && sudo apt upgrade -y'
alias ls='clear && ls --color=auto'
alias ll='clear && ls --color=auto -alhF'
alias lll='clear && ls --color=auto -alhF *'
@ruandre
ruandre / bspwmrc
Last active Sep 13, 2021
bspwm setup (arrows)
View bspwmrc
#!/bin/sh
# fix cursor
xsetroot -cursor_name left_ptr &
# clear font cache
fc-cache -fv &
# compositor
picom &