Skip to content

Instantly share code, notes, and snippets.

View gabstv's full-sized avatar
:shipit:

Gabriel Ochsenhofer gabstv

:shipit:
View GitHub Profile
@gabstv
gabstv / github_gpg_key.md
Created July 21, 2022 22:52 — forked from ankurk91/github_gpg_key.md
Signing git commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@gabstv
gabstv / Coverage Badges
Last active November 13, 2021 15:00
Coverage Badges
Coverage Badges
@gabstv
gabstv / cvwebv.sh
Last active January 12, 2019 05:57
Convert videos to HTML5 friendly video formats (mp4, ogg and webm).
#!/bin/bash
# For this to work, you need to have ffmpeg
# installed with libvorbis, theora and libvpx ENABLED
# to do that in Homebrew:
# brew reinstall ffmpeg --with-libvpx --with-libvorbis --with-theora
#
# encoding reference:
# https://blog.mediacru.sh/2013/12/23/The-right-way-to-encode-HTML5-video.html
@gabstv
gabstv / portal2patchmac.go
Created July 1, 2014 13:48
Unofficial Portal 2 patch for mac. It fixes the issue that crashes the game when turrets are firing.
package main
import (
"bytes"
"crypto/md5"
"encoding/hex"
"fmt"
"io"
"os"
"os/user"
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
#!/bin/sh
# Called by "git push" after it has checked the remote status,
# but before anything has been pushed.
#
# If this script exits with a non-zero status nothing will be pushed.
#
# Steps to install, from the root directory of your repo...
# 1. Copy the file into your repo at `.git/hooks/pre-push`
# 2. Set executable permissions, run `chmod +x .git/hooks/pre-push`
@gabstv
gabstv / twitch_plays_pokemon_snippets.js
Last active July 19, 2018 18:31
Twitch Plays Pokemon: Controls
//reddit: regulargabs
//MIT license
// USAGE:
// go to http://www.twitch.tv/twitchplayspokemon
// Paste the "components" that you want on the javascript console of your browser and run.
// ###############
// # COMPONENTS: #
// ###############