Monthly Archives: March 2019
Tricks in command line
Serve current directory tree at http://$HOSTNAME:8000/ $ python -m SimpleHTTPServer Currently mounted filesystems in nice layout $ mount | column -t Get your external IP address / host / user agent / port from http://ifconfig.me/ $ curl ifconfig.meor$ curl ifconfig.me/ip$ curl ifconfig.me/host$ curl ifconfig.me/ua$ curl ifconfig.me/port Execute a command at one, given time $ echo… Read More »
Save file to your Nextcloud from bash
Sometimes you need to upload from command line to you Nextcloud storage. You can do it with a simple curl command. At first you have to create a shared directory in your Nextcloud with “Allow upload and editing” share option. You will get a share link for example: https://nextcloud.myserver.com/index.php/s/gz8BS7mtxGbwkQB The string “gz8BS7mtxGbwkQB” will be used… Read More »