Skip to content

Instantly share code, notes, and snippets.

BEGIN MESSAGE.
hTzCNZHGD7AjVwT Powl6QcTfR8VhOL Ik6yabr35Cy4IDl xA9cITXizJV3a3x
bSNWfPvOeT5S1sp kDbcgtfBDCOTCKq 6Xr2MZHgg6m2Oi8 q1mKqvJtcKHiA5t
MaUan5iimCBgkdn HqlgZj01lWQbq9c hTN0SVpFXLC5zo7 oOxP2UwQ8X2y0tL
U3GlUg39DjWvzhD 1IhnrkKPMGYPNf0 h8Era2IP.
END MESSAGE.
@zidizei
zidizei / gcmb.zsh
Created June 11, 2020 19:09
Prefixes git commit messages with the current branch's ticket number.
# prefixes git commit messages with the current branch's ticket number, e.g.
# feature/TICKET-123-description => git commit -m "TICKET-123 ..."
function gcmb() {
pat='[A-Za-z]+\/([A-Za-z]+[-_][0-9]+)[-_]'
branch=$(git rev-parse --abbrev-ref HEAD)
[[ $branch =~ $pat ]]
if [[ -z "$1" ]];
then
git commit -m "${match} " --edit
@zidizei
zidizei / protonmail-dark.css
Created August 4, 2019 13:13
Fork of the "ProtonMail DeepDark" UserStyle.
/*Main color variables*/
:root {
/*User colors*/
--main-color: #00adee;
--main-background: #111111;
--second-background: #181818;
--hover-background: #232323;
--main-text: #eff0f1;
--dimmer-text: #cccccc;
--shadow: 0 2px 3px 0 rgba(0, 0, 0, .2);
@zidizei
zidizei / toggle-terminal.sh
Created May 23, 2019 20:58
Toggle your GNOME Terminal window with a keyboard shortcut under Linux.
#!/bin/bash
function toggle_terminal () {
Terminal_Window_ID=`xdotool search --all --onlyvisible --classname gnome-terminal`
# echo $Terminal_Window_ID
if [[ -z "$Terminal_Window_ID" ]]
then