Skip to content

Instantly share code, notes, and snippets.

View navicore's full-sized avatar

Ed Sweeney navicore

View GitHub Profile
@navicore
navicore / log4shell.md
Last active December 15, 2021 14:09
fav log4shell tweet - storing here for a clue about the apocolypse for distant future alien archeologists to know what the hell happened

Zhuowei Zhang @zhuowei

Finally, a unified Linux package manager:

${jndi:ldap://apt-get.debian.org/install/gcc}
#!/bin/env bash
echo "checking for log4j vulnerability...";
OUTPUT="$(locate log4j|grep -v log4js)"
if [ "$OUTPUT" ]; then
echo "[WARNING] maybe vulnerable, those files contain the name:";
echo "$OUTPUT"
fi;
OUTPUT="$(dpkg -l|grep log4j|grep -v log4js)"
if [ "$OUTPUT" ]; then
@navicore
navicore / log4j_fix.md
Last active December 10, 2021 18:30
log4j zero day vulnerability fix CVE-2021-44228
@navicore
navicore / forgetmenot.md
Created November 21, 2021 15:51
forgettable vim

I can't remember these but wish I could

delete everything after the first word on every line

:%normal! WD
@navicore
navicore / ffmpeg_mov.md
Last active November 13, 2021 20:24
make mov from mp4

make mov from mp4

ffmpeg -i ~/Desktop/bitmap.mp4_with_Audio\ Recorder\ 1_1.mp4 -vf mpdecimate -c:a copy -vsync vfr out.mov
@navicore
navicore / ffmpeg_mov.md
Created November 4, 2021 14:21
ffmpeg mp4 to mov for apple usable codecs

ffmpeg mp4 to mov for apple usable codecs

ffmpeg -i in.mp4 -f mov out.mov
@navicore
navicore / scalaactions.md
Last active October 26, 2021 00:46
checklist for creating github actions to maven central for scala

checklist for creating github actions to maven central for scala

create github repo secrets

PGP_SECRET   (w/o passphrase since secret is only for github and github must have passphrase)
SONATYPE_USERNAME
SONATYPE_PASSWORD
@navicore
navicore / gnupg.md
Last active October 24, 2021 14:26
pgp gnupg maven signature cheat sheet

pgp gnupg maven signature cheat sheet - my personal notes

after deleting ~/.gnupg for whatever reason - this fixes the dir not found error

gpgconf --kill gpg-agent 

create

gpg --gen-key
@navicore
navicore / rename_master_to_main.sh
Last active October 12, 2021 14:54
steps to rename git master branch to main and update your default git installation to automatically start with main default branches for future repos
To change default branch name from master to main, go to settings of repo, branches tab.
Branch will be renamed and each user revisiting site will get a popup of cmdline commands to run to fix the repo locally.
#
# you are now DONE with fixing an existing repo
#
###################################################################
# thanks to orig post here: https://medium.com/dataseries/how-to-make-your-git-repos-default-to-main-instead-of-master-28b7a9d3d631