Skip to content

Instantly share code, notes, and snippets.

View SteveDevOps's full-sized avatar
😎
werkin'

Steve Duys SteveDevOps

😎
werkin'
View GitHub Profile
@SteveDevOps
SteveDevOps / install-zsh-windows-git-bash.md
Created September 11, 2024 02:53 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@SteveDevOps
SteveDevOps / starship_git_bash_windows.md
Created September 11, 2024 01:56 — forked from fitzy1321/starship_git_bash_windows.md
Installing Starship.rs on Git Bash for Windows

Installing Starship prompt on Git Bash for Windows

Source: https://bleepcoder.com/starship/640385008/unable-to-install-on-windows-git-bash-configuration-not

All scripts should be ran in your git bash terminal, not cmd or ps.

  1. Make/Choose folder where to install: mkdir -p ~/bin/starship && cd ~/bin
  2. Download the install script: curl -fsSL https://starship.rs/install.sh > ./install.sh
  3. Run install script: ./install.sh --bin-dir /c/Users/<username>/bin/starship/ --platform pc-windows-msvc
  4. Finally add the following to the end of your .bashrc file:
@SteveDevOps
SteveDevOps / Search-domains-ubuntu.md
Created June 18, 2024 14:40 — forked from dunderrrrrr/Search-domains-ubuntu.md
Adding search domain in ubuntu 22.04

Edit /etc/systemd/resolved.conf, set option Domains= (space separated list of domains) according to docs and then restart systemd-resolved.

$ systemctl restart systemd-resolved
@SteveDevOps
SteveDevOps / private_fork.md
Created February 27, 2024 16:27 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@SteveDevOps
SteveDevOps / using-google-takeout.md
Created December 14, 2023 00:05 — forked from chabala/using-google-takeout.md
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
@SteveDevOps
SteveDevOps / fix-corrupted-sdcard.md
Last active July 13, 2023 16:54
fix corrupted sdcard

fix corrupted sd card with bad superblock

unmount

sudo umount /dev/mmcblk0p1

get the superblock backup block ids

sudo mke2fs -n /dev/mmcblk0p1

fix and restore from backup block

sudo e2fsck -y -b <backup superblock id> /dev/mmcblk0p1

check if clean / fix

sudo e2fsck -p /dev/mmcblk0p1

or

@SteveDevOps
SteveDevOps / steam-deck-config.md
Last active July 18, 2023 01:34
steam deck config
@SteveDevOps
SteveDevOps / gamelist.py
Last active February 4, 2025 15:36 — forked from cmitu/gamelist.py
Python script to export Emulationstation's game list to an Excel (xlsx) file.
#!/usr/bin/env python
#BATOCERA SETUP:
#(removed custom game collection section, caused error in batocera)
#wget -O export.py <this gist>
#SETUP PREREQ: (I cloned repo on laptop first and scp'ed up to batocera box)
#git clone --depth=1 https://github.com/jmcnamara/xlsxwriter
#cd xlsxwriter
#sudo python3 setup.py install
#!/bin/bash
#After installing holoiso 4 offline iso -- released in Dec '22 -- you may run into the inability to download system updates
#due to repo names out of sync with upstream. (https://steamdeck-packages.steamos.cloud/archlinux-mirror/)
#First, ensure your current version reads 3.4 in steamdeck GUI system properties.
#
#switch to desktop mode, load Konsole
#save this script to your home dir ~/
#