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 / 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 git@github.com: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 / steam-deck-config.md
Last active July 18, 2023 01:34
steam deck config
@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

#!/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 ~/
#
@SteveDevOps
SteveDevOps / gamelist.py
Last active March 14, 2023 17:17 — 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 / .zshrc-mac
Last active June 1, 2022 16:12
my .zshrc for mac
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/steveduys/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@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