The miniDLNA service is active, bu serving 0 audio, 0 video and 0 image files.
- Login via SSH
- Perform command:
/etc/init.d/minidlna reload - It is good to add this command to some start scripts ->
/etc/rc.local
| QTabBar, | |
| QTabBar::tab | |
| { | |
| /* font-size: 11px;*/ | |
| /* height: 16px; */ | |
| padding: 2px; | |
| border: 0px; | |
| border-bottom: 3px solid palette(dark); | |
| background-color: palette(dark); | |
| color: palette(text); |
| #!/bin/sh | |
| # https://askubuntu.com/questions/377937/how-do-i-set-a-custom-resolution | |
| # cvt 2560 1440 | |
| xrandr --newmode "2560x1440_60.00" 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync | |
| xrandr --addmode HDMI-1-2 "2560x1440" |
| #!/bin/bash | |
| # get list of VMs and LXCs on the node | |
| VMIDs=$(/usr/sbin/qm list | tail -n +2 | awk '/[0-9]/ {print $1}') | |
| LXCs=$(/usr/bin/lxc-ls) | |
| # ask LXCs to stop | |
| for LXC in $LXCs | |
| do | |
| /usr/bin/lxc-stop $LXC |
| #!/bin/bash | |
| set -e | |
| LOGGER_TAG="cron-auto-snapshot" | |
| DESCRIPTION="Auto snapshot $TIMESTAMP by cron" | |
| TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S") | |
| BACKUP_DIR="/srv/backups/" | |
| MAX_BACKUPS=5 |
/etc/cockpit/cockpit.conf
[WebService]
Origins = https://cloudflare.domain wss://cloudflare.domain http://cockpitIP:9090 wss://cockpitIP:9090
ProtocolHeader = X-Forwarded-Proto
AllowUnencrypted = true
[Session]
Banner = /etc/issue
Installation
sudo apt install tigervnc-standalone-server tigervnc-commo vncpasswd. vncserver. vncserver -kill :1
$HOME/.vnc/xstartup [*][X] unset SESSION_MANAGER
I will often run this command to make sure all my docker containers are stopped and removed before running docker-compose up. Sometimes when you restart your system, old containers will start back up automatically in the background.
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
| import jwt | |
| import time | |
| import requests | |
| # Instalation | |
| ## python3 -m venv ~/python-dev-env | |
| ## source ~/python-dev-env/bin/activate | |
| ## pip install requests PyJWT | |
| ## download ghost_cms_add_tag.py | |
| ## edit ghost_cms_add_tag.py -> add url, tag and admin key |