See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// Source : http://bgrins.github.io/devtools-snippets | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} |
var cleanStorage = function(){ | |
console.log('%c Start clean localStorage', 'color: green') | |
var myStorage = window.localStorage; | |
var ids = Object.keys(myStorage).filter( (key) => { | |
return key.slice(0,3) === '5G_' | |
}) | |
ids.forEach( (id) => { | |
console.log('clean: '+id) | |
window.localStorage.removeItem(id); | |
}) |
apiVersion: v1 | |
data: | |
auth: <SECRET> | |
kind: Secret | |
metadata: | |
name: staging-basic-auth | |
type: Opaque |
# https://explainshell.com/explain?cmd=convert+-density+200x200+-quality+60+-compress+jpeg+input.pdf+output.pdf | |
convert -density 200x200 -quality 60 -compress jpeg input.pdf output.pdf |
# https://explainshell.com/explain?cmd=detox+-s+iso8859_1+-r+-v+.%2F* | |
detox -s iso8859_1 -r -v ./* | |
# Lowecase filenames | |
# linux | |
rename 'y/A-Z/a-z/' * | |
# macOS needs to be forced |
# source: https://docs.nextcloud.com/server/19/user_manual/files/access_webdav.html#accessing-files-using-curl | |
curl -u USERNAME:PASSWORD -T /path/to/file https://my.nextcloud.tld/remote.php/dav/files/USERNAME/path/to/directory/ |
body{ | |
background:none; | |
font-family:arial; | |
max-width:1440px; | |
margin:0 auto; | |
font-size:16px; | |
} | |
h1,h2{ | |
color:white; |
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |