Skip to content

Instantly share code, notes, and snippets.

@einalex
einalex / rename-tags.js
Created December 1, 2022 14:07
Capitalize all Tags in Zotero via JS API
var tags = await Zotero.Tags.getAll();
for (let tag of tags) {
let new_tag = ""
for (let part of tag.tag.split(" ")) {
new_tag = new_tag.concat(" ", part.charAt(0).toUpperCase() + part.slice(1));
}
Zotero.Tags.rename(Zotero.Libraries.userLibraryID, tag.tag, new_tag);
}
@einalex
einalex / gist:aa319f7e99febcfd76a32bd41f2995ef
Last active June 26, 2018 18:23
syscoin masternode installation and update script
We couldn’t find that file to show.
@einalex
einalex / gitian-setup.sh
Created May 19, 2018 09:17
Gitian setup
#!/bin/sh
####################
# SETUP THEN REBOOT
export BRANCH=dev-3.x-gitian
export GITIAN_SIGNER=einalex
git clone https://github.com/syscoin/syscoin
pushd syscoin
git checkout $BRANCH
git pull
popd

Keybase proof

I hereby claim:

  • I am einalex on github.
  • I am einalex (https://keybase.io/einalex) on keybase.
  • I have a public key whose fingerprint is 6345 3222 81D9 5E8B 781C A615 8914 C846 E30B E5FA

To claim this, I am signing this object:

@einalex
einalex / gist:11185647
Created April 22, 2014 16:29
add replay gain to a folder of flac files
metaflac --add-replay-gain *.flac
@einalex
einalex / gist:11185621
Created April 22, 2014 16:28
split flac file according to cue sheet
shntool split -f filename.cue -o flac filename.flac
@einalex
einalex / gist:11185571
Created April 22, 2014 16:27
save and restore the list of installed debian packages
dpkg --get-selections > selections.txt
dpkg --set-selections < selections.txt
dselect update
apt-get dselect-upgrade