These are shorthands for Taskwarrior I found so far. Make sure to install the Taskwarrior plugin for zsh
t
->task
pro:
->project:
act
->active
(e.g.t act
->task active
)mod
->modify
These are shorthands for Taskwarrior I found so far. Make sure to install the Taskwarrior plugin for zsh
t
-> task
pro:
-> project:
act
-> active
(e.g. t act
-> task active
)mod
-> modify
aws s3 cp FOLDER_NAME_OR_DOT s3://BUCKET_NAME --profile OPTIONAL_AWS_PROFILE --recursive --acl public-read |
'use strict'; | |
const arr = [1,[2],[[3]],[[[4]]]]; //example Array | |
//Solution one - classic | |
let flatArr = []; | |
const flatten = (elem) => { | |
if (Array.isArray(elem)) return elem.forEach(flatten); | |
return flatArr.push(elem); | |
}; |
Script to control the Volume of a USB headset, can connect to shortcuts.
sh volumeChange.sh up
sh volumeChange.sh down
<Files *.php> | |
deny from all | |
</Files> |
!function(){if(!window.jQuery){var e=document.createElement("script");e.setAttribute("src","//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"),document.body.appendChild(e)}}(); |
ls *.png -tr | tr '\n' ' ' | sed 's/$/\ output_file.pdf/' | xargs convert |
#!/bin/bash | |
# simple function to check http response code before downloading a remote file | |
# example usage: | |
# if `validate_url $url >/dev/null`; then dosomething; else echo "does not exist"; fi | |
function validate_url(){ | |
if [[ `wget -S --spider $1 2>&1 | grep 'HTTP/1.1 200 OK'` ]]; then echo "true"; fi | |
} |
document.querySelector('.track-info').addEventListener('DOMSubtreeModified',function(){ | |
document.title = document.querySelector('.track-info__artists').textContent + ' - ' + document.querySelector('.track-info__name').textContent; | |
}); |
#!/bin/sh | |
xrandr --output HDMI1 --scale 2x2 --mode 1920x1080 --fb 3840x2160 --pos 3040x0 --rotate normal --primary | |
xrandr --output eDP1 --scale 1x1 --pos -980x0 |