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 / 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
@SteveDevOps
SteveDevOps / shared_folder_centos_virtualbox.txt
Created February 28, 2017 15:14 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot