This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Term::ANSIColor; | |
$ARGV[1] = $ARGV[1] || 'HEAD'; | |
my $mb = `git merge-base $ARGV[0] $ARGV[1]`; | |
# trim () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
branchname=${1:-$(git rev-parse --abbrev-ref HEAD)} | |
if ! [ -x "$(command -v jq)" ]; then | |
echo 'Error: "jq" is not installed.' >&2 | |
exit 1 | |
fi | |
if [ ! $SECRET_GH_TOKEN ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github notifications: Open in new tab | |
// @namespace io.kuc.ben | |
// @version 1.1 | |
// @description Open all links from github notification page in new tab. Works for old and new notifications pages. | |
// @author bkucera | |
// @match https://github.com/notifications/* | |
// @match https://github.com/notifications* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
const getFavicon = () => { | |
return ( | |
document.querySelector('link[href*=".ico"]') | |
|| document.querySelector('link[href*=".png"]') | |
) | |
} | |
const changeFavicon = async function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# download gdown.pl perl script for downloading from google drive | |
wget -w0 https://raw.githubusercontent.com/circulosmeos/gdown.pl/master/gdown.pl | |
# download chrome-remote-desktop.deb for 64-bit debian linux | |
./gdown.pl https://drive.google.com/file/d/1GRasE1wOaP7kyHpMavLviZRiKlgcuF-c/view?usp=sharing chrome-remote-desktop.deb | |
sudo dpkg -i chrome-remote-desktop.deb |