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
git ls-remote --heads | awk -F '/' '{ print $NF }' | while read -r name; do | |
echo "[${name}]"; | |
git fetch origin "${name}:${name}"; | |
done |
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
git gc --prune=now |
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
# Generate hex code for quotes | |
echo '"' | od -A n -t x1 |
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/env bash | |
set -eo pipefail | |
IFS=$'\n' | |
function getExtension { | |
local file =$(basename -- "$1"); | |
echo "${1##*.}"; | |
} | |
function convertImages { | |
cd "$1"; |
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 | |
set -eo pipefail | |
FILENAME=$(basename -- "$1"); | |
EXT="${FILENAME##*.}"; | |
NAME="${FILENAME%.*}"; | |
OUTPUT=$(echo "$NAME-2.$EXT"); | |
echo $FILENAME; | |
echo $OUTPUT; |
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
{ | |
const list = $$('.js-branch-row'); | |
const toRemove = list.filter((node) => { | |
return node.querySelector('.State--purple'); | |
}); | |
toRemove.forEach((node) => { | |
node.querySelector('.State--purple').textContent = 'DONE' | |
}); | |
if (!toRemove.length) { |
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
/* | |
Source https://scastiel.gitlab.io/protonmail-theme-creator/ | |
*/ | |
body section.sidebar ul.menu li a, | |
body section.sidebar ul.menu li:hover a, | |
body section.sidebar ul.menu li a i.fa, | |
body section.sidebar ul.menu li:hover a i.fa, | |
body section.sidebar ul.menu li a button.fa-repeat, | |
body section.sidebar ul.menu li:hover button.fa-repeat, |
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 | |
# | |
inputFile=$1 | |
FPS=15 | |
WIDTH=$2 | |
OUTPUT='output.gif'; | |
PALETTE_OUTPUT='tmp_palette.png'; |
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
Array | |
.from($$('.state-merged')) | |
.map(node => node.parentElement.parentElement.querySelector('button')) | |
.forEach(node => node.click()) |
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
String.fromCharCode.apply(null, data); | |
// data = new Uint8Array... |
NewerOlder