Skip to content

Instantly share code, notes, and snippets.

@unrooted
unrooted / ventoy-notes.md
Last active July 19, 2022 23:42
notes, tips and tricks on ventoy usage and configuration
  1. injection - inject into runtime after the boot Windows -> WinPE env. Linux -> initramfs env.

    {
    "injection": [
        {
            "image": "/linux.iso",
            "archive": "/archives/compressedDepressed.[zip/tar.[gz/bz2/xz/lzma]]"
@unrooted
unrooted / .zshrc
Created February 28, 2022 20:29
zsh config
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$HOME.local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/viper/.oh-my-zsh"
# export Nix
. /home/viper/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
@unrooted
unrooted / cheatsheet.md
Created April 5, 2021 17:38
Bedrock Linux cheat sheet

Bedrock cheat-sheet

command what it does
brl list list currently integrated strata
brl fetch acquite new strata and list fetchable
brl fetch -L list supported stata
brl fetch -X list experimental strata
brl fetch -LX list both supported and experimental strata
brl enable [strata] enable stratum
@unrooted
unrooted / README.md
Created March 16, 2021 16:29
Very bad way to host Linux terminal on Windows via X

Very bad way to host Linux terminal on Windows via X

l-cmd.bat

@python3 G:\Win10\Linux-VM\l-windows.py gnome-terminal

l-init.bat

@echo off
@unrooted
unrooted / .Xresources
Created March 1, 2021 20:17
NaughtyOne color scheme
! special
*.foreground: #d2d0ce
*.background: #11100f
*.cursorColor: #d2d0ce
! black
*.color0: #282a2e
*.color8: #373b41
! red
@unrooted
unrooted / initSystemsCheatSheet.md
Created December 31, 2020 11:58
init systems cheat sheet

Manage services in systemd, openRC and runit

systemd

  • list all services: systemctl list-unit-files
  • list running services status: systemctl list-units
  • list failed services: systemctl --failed
  • list available services: systemctl --all
  • start a service: systemctl start [SERVICE_NAME]
  • stop a service: systemctl stop [SERVICE_NAME]

Keybase proof

I hereby claim:

  • I am unrooted on github.
  • I am unrooted (https://keybase.io/unrooted) on keybase.
  • I have a public key ASAwVOXYVmRnlokEIJ59holq57IjdegwvCCibNNLSPIe9Ao

To claim this, I am signing this object:

@unrooted
unrooted / NaughtyOne.psm1
Created July 8, 2020 07:58
My Oh-My-Posh theme
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
@unrooted
unrooted / xpsModding.md
Last active July 6, 2020 13:58
Gist about modding XPS series laptop

Dell XPS 15s

I do not suggest doing it, if you do something that I do say here, you're doing it at your own risk.

Mobos

Well, XPS mobos are quite good. If you have 9550, MOBOs from 9560 and 9570 will fit perfectly. Same goes for 7590 MOBO. The problem? Few screws are placed in the other places, but that's not a problem, since the most important screws are in the good places and it will be placed quite good. Since the whole MOBOs are repleacable, you can have different specs from different generations. You can use even 9th gen. of Intel CPUs and new Max-Q GPUs.

@unrooted
unrooted / profiles.json
Last active April 26, 2021 16:28
Profiles.json file for Windows Terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "all",
"copyOnSelect": false,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"keybindings":
[
{
"command":
{