Skip to content

Instantly share code, notes, and snippets.

@bobpaul
bobpaul / PKGBUILD
Last active August 29, 2021 21:20
nzbget-ppscript-nzbtomedia-git with dependencies fixed.
# Maintainer: TwoLeaves < ohneherren at gmail dot com >
pkgname=nzbget-ppscript-nzbtomedia-git
pkgver=2627.f9dde627
pkgrel=1
arch=(any)
pkgdesc="Post-processing scripts to communicate with media managers."
url="https://github.com/clinton-hall/nzbToMedia"
license=('GPL3')
@bobpaul
bobpaul / check_password.sh
Created February 23, 2018 19:39
Keepass Password checker
#!/bin/bash
# This oneliner checks on pwnedpasswords.com to see if any passwords in your keepass password database
# are passwords that have been leaked in attacks known by haveIbeenpwned.com
#
# Your passwords are not transmitted to the website. Instead only the first 5 char of the SHA1 has is provided
# the website then returns the remaining chars of the SHA1 hash. This script fetches and compares and then
# prints the plain text of any passwords that match
#
# Usage (tested with KeePassX; other keepass clients might export differently):
@bobpaul
bobpaul / gnu_getopt_example.sh
Created March 20, 2018 18:24
An example showing how to use getopt
#!/usr/bin/env bash
# Time-stamp: <2017-04-27 09:57:21 kmodi>
# Time-stamp: <2018-03-20 12:58:02 bobpaul>
# derived from kmodi's gist: https://gist.github.com/kaushalmodi/74e9875d5ab0a2bc1010447f1bee5d0a
#
# Example of using getopt to parse command line options
# http://stackoverflow.com/a/29754866/1219634 Limitation: All the options
# starting with - have to be listed in --options/--longoptions, else getopt will
# error out.
# The downside is that if you intend to use this as a wrapper to some other program,
@bobpaul
bobpaul / PKGBUILD
Created March 25, 2018 18:16
Updated jbidwatcher PKGBUILD for archlinux
# Maintainer: luckdragon <f41c0r [/at\] cyb3r DOT space>
# Original maintainer from the AUR3 package: yugrotavele <yugrotavele at archlinux dot us>
pkgname=jbidwatcher
pkgver=2.99pre5
pkgrel=1
pkgdesc='Allows you to monitor eBay auctions, submit bids, and snipe.'
arch=('any')
url="http://www.jbidwatcher.com/"
license=('custom:CCPL-by-nc-sa-amended')
@bobpaul
bobpaul / 719948708.json
Last active November 9, 2020 18:37
Tabletop Simulator, Wooden Horse Racing ... updates
{
"SaveName": "Wooden Horse Racing Grid",
"GameMode": "Wooden Horse Racing",
"Date": "11/9/2020 9:10:01 AM",
"Gravity": 0.5,
"PlayArea": 0.5,
"GameType": "Game",
"GameComplexity": "Low Complexity",
"PlayerCounts": [
0,
@bobpaul
bobpaul / problem demonstration
Created August 10, 2021 16:50
`git stash --keep-index` includes changes that are on the index
###
# It is suggested to use the `--keep-index` option when using `git stash` if you don't want to stash
# changes already added to the index.
# This almost works as it leaves the index in the working tree untouched, but it includes the index tree in the patch that's stashed.
###
(>'o')>$ git init
^('o')^$ touch a
<('o'<)$ git add a
^('o')^$ git commit -am "initial commit"
[main (root-commit) 372d94c] initial commit
@bobpaul
bobpaul / PKGBUILD
Created March 31, 2022 17:15
updated PKGBUILD for barrier-git and barrier-headless-git 20220331
# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
_pkgname=barrier
pkgname=("${_pkgname}-git" "${_pkgname}-headless-git")
pkgver=v2.4.0+165+g420de96f
pkgrel=1
pkgdesc="Open-source KVM software based on Synergy"
arch=(any)
url="https://github.com/input-leap/barrier"
license=("custom:GPL2WithOpenSSLException")