Skip to content

Instantly share code, notes, and snippets.

View rjstone's full-sized avatar
😼
I may be slow to respond.

Robert Stone rjstone

😼
I may be slow to respond.
View GitHub Profile
@x43x61x69
x43x61x69 / vnc_install.sh
Last active June 11, 2024 11:17
Steam Deck VNC Installation
#!/bin/bash
#
# Script for installing x11vnc on Steam Deck.
#
# Install:
#
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/x43x61x69/9a5a231a25426e8a2cc0f7c24cfdaed9/raw/vnc_install.sh?$RANDOM)"
#
# This will modify root filesystem so it will probably get
# overwrite on system updates but is totally ok executing
@rjstone
rjstone / rawgithashurl.sh
Last active September 20, 2016 14:36
Get cdn.rawgit.com hash URLs for most recent commit of files in git repo.
#!/bin/bash
# Get cdn.rawgit.com hash URLs for most recent commit of files in git repo.
# 1) cd to root directory of repository
# 2) run script on one or more filenames.
# Your working dir must be repo root or the URLs will be wrong.
# If you have 'globstar' enabled and your shell supports it, run with ** for recursion.
for f in $@
do
url=`git ls-remote --get-url | sed 's#\.git$##' | sed 's#//github.com/#//cdn.rawgit.com/#'`
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active June 11, 2024 11:25
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