This file contains hidden or 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 | |
SCRIPNAME=$0 | |
function show_help() { | |
echo "Resalt Wordpress configurations without any plugins." | |
echo "Usage:" | |
echo " -f Use specific file to resalt ($SCRIPTNAME -f /var/www/html/wordpress/wp-config.php)" | |
echo " -d Use wp-config.php in given directory ($SCRIPTNAME -d /var/www/html/wordpress)" | |
echo " -a Use wp-config.php in all subdirectories of given directory ($SCRIPTNAME -a /var/www/html)" |
This file contains hidden or 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
#!/usr/bin/python | |
import re, requests | |
import paho.mqtt.client as mqtt | |
import time, datetime | |
data = { | |
'gemeinde': 'Hannover', | |
'strasse': '00590@Burgweg@', # Wert des Dropdowns | |
'hausnr': '5', | |
} |
This file contains hidden or 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
#!/usr/bin/env python | |
ws_port = 8000 # public [e.g. via proxy] | |
http_port = 8001 # just locally accessible | |
guest_identifier = ' [GUEST]' | |
incoming_url = 'https://example.org/hooks/token' | |
# First message to websocket will be the username, all afterwards will be sent to all connected WebSocket clients and Rocket.Chat | |
# Install SimpleWebSocketServer: |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#Make sure you have set retry=0 in ProxyPass when on apache | |
rootdir="/opt/" | |
#folder in rootdir where Rocket.Chat is installed in | |
rocketdir="Rocket.Chat" | |
#MongoDB backup, comment if you don't want to backup your db | |
mongobackup="mongodump --db rocketchat --archive=/backup/mongodb/Rocket.Chat.db.bak --gzip" |
This file contains hidden or 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 | |
# Modified version of http://cacodaemon.de/index.php?id=5 | |
SERVER="dyndns.inwx.com" | |
USERNAME="hellomynameis" | |
PASSWORD="secure!!!" | |
HOSTNAME="example.org" | |
IPV4=`curl -s http://ipv4.sndstrm.de | grep -o '\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}'` | |
IPV6=`curl -s http://ipv6.sndstrm.de | grep -o '\([0-9a-fA-F]\{0,4\}\:\)\{4,7\}[0-9a-fA-F]\{0,4\}'` |
This file contains hidden or 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
<html> | |
<head> | |
<style> | |
div.badge { | |
display: inline-block; | |
border-radius: .75em; | |
font-family: 'Dejavu Sans','Arial'; | |
} | |
div.badge div { | |
display: inline-block; |
This file contains hidden or 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
EXAMPLE for MOVE CMD | |
CMD PAYLOAD | |
vvvvvvv vvvvvvvvv | |
89 1a d900020 001010100 | |
^^ ^^ | |
|| Checksum | |
\_ 0x80 toggles with checksum 0x01 | |
D9 1101 1001 | |
+ 02 0000 0010 |
This file contains hidden or 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 | |
#configure an incoming webhook | |
SERVER="https://demo.rocket.chat/hooks/TOKEN" | |
CHANNEL="#rocketchat" | |
cd /opt | |
#get most recent version | |
curl -s -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz | |
#compare files, you can use it in a cronjob | |
cmp --silent rocket.chat.tgz.cur rocket.chat.tgz && echo "Rocket.Chat is already up-to-date!" && exit 0 |