inspiration (and concrete example) : https://kevq.uk/how-to-backup-nextcloud/
- creating the dedicated user
# Create new user
sudo adduser <GOOD_LOGICAL_USERNAME>
if this user needs to store some data :
docker run --rm -it -v $PWD:/tmp debian:10-slim /bin/bash | |
# --rm : remove after exit | |
# -it : interactive TTY | |
# -v : mount folder : current folder to /tmp folder of the container | |
# debian:10-slim : docker image https://git.io/JJzfy | |
# /bin/bash : run bash in this container |
inspiration (and concrete example) : https://kevq.uk/how-to-backup-nextcloud/
# Create new user
sudo adduser <GOOD_LOGICAL_USERNAME>
if this user needs to store some data :
2019-06-03
Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.
cat urls.txt | xargs youtube-mp4 {} | |
cat urls.txt | xargs zsh -c 'youtube-mp4 {}' | |
cat urls.txt | xargs $functions[youtube-mp4] {} | |
cat urls.txt | xargs zsh -c '$functions[youtube-mp4] {}' | |
cat urls.txt | parallel curl http://example.com/item/{}.tar ">" {}.tar |
sudo fdisk -l | |
sudo blkid | |
# note the UUID | |
# create the folder where you want the USB drive to be mounted | |
sudo mkdir -p /media/usb | |
# if your USB drive is in exfat | |
sudo apt install exfat-fuse exfat-utils |
sudo apt install samba samba-common-bin
mkdir -p /media/usb/NAS
stages: | |
- build | |
localbuild: | |
image: debian:10-slim | |
stage: build | |
script: | |
- pwd |
This code redirects the current page to the find twitter page.
Works great with medium articles to bypass the paywall.
Add this code to a bookmark :
javascript:(function(){window.open("https://twitter.com/search?q="+document.location.href, '_blank')})()
# Ask for the sudo password | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until the command has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |