Skip to content

Instantly share code, notes, and snippets.

View ubuntupunk's full-sized avatar
:octocat:
making coffee

DavDev Yes ubuntupunk

:octocat:
making coffee
View GitHub Profile
@ubuntupunk
ubuntupunk / 1607851494.txt
Created December 13, 2020 09:24
Created with Copy to Gist
Hi
You need to
1) go to wp-admin settings> general
2)WordPress Address (URL) and Site Address (URL) add www to both
3)try to connect jetpack again
4)when finished remove www again if you want
@ubuntupunk
ubuntupunk / 1604308232.txt
Created November 2, 2020 09:10
Created with Copy to Gist
find . -iname "*png" -print0 | xargs -r0 --max-procs=4 -n1 sh -c 'pngnq -s1 "$1" && advpng -z -4 -q "${1%.*}"-nq8.png' -
@ubuntupunk
ubuntupunk / 1604308221.txt
Created November 2, 2020 09:10
Created with Copy to Gist
pngnq -s1 image.png && advpng -z -4 -q image-nq8.png
@ubuntupunk
ubuntupunk / 1603807964.txt
Created October 27, 2020 14:12
Created with Copy to Gist
viman () { text=$(man "$@") && echo "$text" | vim -R +":set ft=man" - ; }
@ubuntupunk
ubuntupunk / 1603620549.txt
Created October 25, 2020 10:09
Created with Copy to Gist
You can make urxvt copy to both Primary and Clipboard with the selection-to-clipboard perl extenion. This keeps them in sync, so you just copy once in urxvt and it should work in applications that use either.
URxvt.perl-ext-common: selection-to-clipboard
@ubuntupunk
ubuntupunk / gist:1bbd5d10ae6c590ce983b719752b527e
Created September 27, 2020 14:24
compile binary on server with user directory as your install
export DESTDIR="$HOME/Software/LocalInstall" && make -j4 install