This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
jellyfin: | |
image: lscr.io/linuxserver/jellyfin:latest | |
container_name: jellyfin | |
environment: | |
- PUID=1000 | |
- PGID=1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
wiki: | |
image: requarks/wiki:2 | |
container_name: wiki | |
restart: unless-stopped | |
depends_on: | |
- wiki-db | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# simple script to check logs, if no entries have been made in 45 seconds restart | |
set -x | |
PATH=$PATH:/usr/sbin | |
TS=$(date +%s) | |
timer1=$(expr $TS - $(date +%s -r /path/to/some/file.log)) # make sure to set the log path here | |
if [ "$timer1" -gt 45 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MySQLdb | |
host = '10.10.10.10' | |
user = 'root' | |
password = 'password' | |
port = 3306 | |
db = 'lm' | |
dbc = MySQLdb.Connection( | |
host=host, user=user, passwd=password, port=port, db=db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ./ -name '???? - *.xml' -print0 | while read -d ''; do | |
[[ $REPLY =~ (.*)/(....)\ -\ (.*)\.xml$ ]] || continue | |
path=${BASH_REMATCH[1]} | |
num=${BASH_REMATCH[2]} | |
str=${BASH_REMATCH[3]} | |
echo mv "$REPLY" "$path/$str ($num).xml" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +kingpin is my blockchain ID. https://onename.com/kingpin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ahRemoveYoastNag_Remove_Yoast_SEO_Nag { | |
private $yoastPluginFile; | |
public function __construct() { | |
$this->yoastPluginFile = "wordpress-seo/wp-seo.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy proxmox iso on usb stick | |
#fdisk -l | |
#mount /dev/sdb1 /mnt | |
#mount -o loop -t iso9660 /mnt/proxmox_1-7.iso /mnt | |
#cd /mnt | |
#chroot /mnt sbin/unconfigured.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.opscode.com/blog/2013/03/11/chef-11-server-up-and-running/ | |
# https://github.com/opscode/omnibus-chef-server/blob/master/files/chef-server-cookbooks/chef-server/attributes/default.rb | |
# http://www.opscode.com/blog/2013/03/12/5106/ | |
server_name = "chef.domain" | |
api_fqdn server_name | |
rabbitmq['enable'] = false | |
rabbitmq['node_port'] = '5672' | |
#rabbitmq['node_ip_address'] = '10.12.10.65' | |
rabbitmq['node_ip_address'] = '127.0.0.1' | |
rabbitmq['nodename'] = 'chef@localhost' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* DDNS Service: Custom | |
* DYNDNS Server: <yourserver.com> | |
* Username: | |
* Password: | |
* Host Name: | |
* URL: /cloudflare_update.php?key=&hostname= | |
*/ | |
/** |