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:
@dunderrrrrr
dunderrrrrr / Search-domains-ubuntu.md
Created August 16, 2023 06:04
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
@chabala
chabala / using-google-takeout.md
Last active May 2, 2025 22:41
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 -
@fworks
fworks / install-zsh-windows-git-bash.md
Last active April 9, 2025 09:11
Zsh / Oh-my-zsh on Windows Git Bash
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active April 30, 2025 05:20
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@cmitu
cmitu / gamelist.py
Last active March 14, 2023 17:08
Python script to export Emulationstation's game list to an Excel (xlsx) file.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as et
import logging as log
import os.path
import fnmatch
import argparse
import xlsxwriter
from datetime import datetime as dt
@Evalle
Evalle / gist:7b21e0357c137875a03480428a7d6bf6
Created October 20, 2017 12:08
How to configure Docker to use external DNS server
Either via
$ docker run --dns 10.0.0.2 busybox nslookup google.com
or edit your /etc/docker/daemon.json to have something like:
{
"dns": ["10.0.0.2", "8.8.8.8"]
}
then restart docker service
@0xjac
0xjac / private_fork.md
Last active May 13, 2025 13:48
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

@kshcherban
kshcherban / auto-update-terraform
Last active April 23, 2020 19:14
Bash script to auto update terraform on linux
#!/bin/bash
INSTALL_DIR="${1:-/opt/terraform}"
URL="https://releases.hashicorp.com/terraform"
VER="$(curl -sL $URL | grep -v beta | grep -Po "_(\d*\.?){3}" | sed 's/_//' | sort -V | tail -1)"
ZIP="terraform_${VER}_linux_amd64.zip"
echo "* Downloading ${URL}/${VER}/terraform_${VER}_linux_amd64.zip"
curl -s ${URL}/${VER}/terraform_${VER}_linux_amd64.zip -o ${INSTALL_DIR}/${ZIP}