Skip to content

Instantly share code, notes, and snippets.

mobilemind /
Last active June 22, 2024 05:19
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
bmcbm /
Last active June 9, 2024 21:16
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf

Userstyles and UserScripts for SponsorBlock (by jiraph)


simple-label-1 simple-label-2

Styles the SponsorBlock thumbnail label to match YouTube's existing thumbnail badges.

  • Colors will follow what you choose in SponsorBlock settings, and text will adapt to contrast with background color.
  • Includes a settings menu if installed with Stylus.
    • Options for top left or bottom left corner, colored text/white text/colored background, all caps text, and show/hide logo.
ainsofs / gist:2b80771a5582b7528d9e
Created April 16, 2015 01:50
Clear .gitignore cache
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
nathanborror / instructions.txt
Last active May 17, 2023 00:55
Example Kubernetes setup with Postgres and two Services for serving an API and a static site using Ingress. Also have a CronJob example for kicks.
*** Cluster Setup for Google Container Engine ***
0/ Install and configure local gcloud and kubectl:
> gcloud components install kubectl
1/ Configure Google Cloud account:
> gcloud config set account YOUR_EMAIL_ADDRESS
> gcloud config set project YOUR_PROJECT_ID
> gcloud config set compute/zone us-west1-a
> gcloud config set container/cluster example

Execute these lines:

sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
deb focal-dell public
deb focal-oem public
deb focal-somerville public
deb focal-somerville-melisa public
sudo apt-key adv --keyserver --recv-keys F9FDA6BED73CDC22
MRuy /
Created May 14, 2021 14:14
SB visual overlay
mouse-reeve /
Last active April 22, 2022 06:33
Fizzbuzz via
''' we're solving fizzbuzz with a little help from the web '''
from html.parser import HTMLParser
from urllib.request import Request, urlopen
import re
import time
base_url = ''
tag_name = 'div'
class_name = 'answer-body'
delimiter = '_'
ashwinvis /
Last active July 7, 2020 05:22
GitHub Retro
using UnityEngine;
using System.Collections.Generic;
[RequireComponent(typeof (MeshFilter))]
[RequireComponent(typeof (MeshRenderer))]
public class MeshGenerator : MonoBehaviour {
void Start () {
CreateCube ();