In case you are curious the password hashed is "Pa22word".
from : https://cloudinit.readthedocs.io/en/latest/topics/examples.html
also cool : https://github.com/belgaied2/harvester-cli
#cloud-config
In case you are curious the password hashed is "Pa22word".
from : https://cloudinit.readthedocs.io/en/latest/topics/examples.html
also cool : https://github.com/belgaied2/harvester-cli
#cloud-config
version: "3" | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf | |
ports: | |
- 8080:80 | |
networks: |
#!/usr/bin/python | |
# -*- encoding: iso-8859-1 -*- | |
""" | |
Python syslog client. | |
This code is placed in the public domain by the author. | |
Written by Christian Stigen Larsen. | |
This is especially neat for Windows users, who (I think) don't |
$prtguser = "apiuser" | |
$prtghash = "123456" | |
$match = "Auto-Discovery *" | |
$actiontype = "close" # "close" or "resolve" | |
$message = "auto close" | |
$hostname = "prtg.yourdomain.com" | |
$URI = "https://" + $hostname + "/api/table.json?content=tickets&columns=datetime,priority,parentid,message,user,status,name&filter_drel=&username=" + $prtguser + "&passhash=" + $prtghash | |
$response = Invoke-WebRequest $URI | |
$jsonObj = $([String]::new($response.Content)) | ConvertFrom-Json | select -expand tickets | select parentid,status_raw,message_raw | Where-Object {($_.message_raw -like $match) -and ($_.status_raw -EQ '1')} |
This is no longer needed; OPNSense now has full CARP support in the wireguard plugin which works much better than these hacks ever did =] I'll leave it here as an example of a thing you can do and 'cause why delete it?
checkWireguard
as /usr/local/opnsense/scripts/OPNsense/Wireguard/checkWireguard
actions_wireguardCarp.conf
as /usr/local/opnsense/service/conf/actions.d/actions_wireguardCarp.conf
service configd restart
version: "3" | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf | |
ports: | |
- 8080:80 | |
networks: |
This code allows you to pass ntlm auth in nginx reverse proxy mode. The problem with plain nginx is that ntlm requires one tcp connection for multiple http requests. Even if browser respect this behaviour, nginx will create/took new connection for each request to ntlm-awared server.
Implement nginx-like stream proxy, but parse http to understand end of sequence (first request after ntlm auth). We need end of sequence, since browser can reuse opened tcp connection and send another request, which will be passed to ntlm-aware server and this is not you expect.
Put ntlm.lua
to lualib
path of openresty.
You need to install lua-http-parser into openresty lualib
path with luarocks
.
#!/bin/sh | |
# | |
# Author: Luis Felipe Domínguez Vega <ldominguezvega@gmail.com> | |
# | |
# Program to use with the rate software to send to InfluxDB the | |
# rate of each IP on interface | |
# | |
# rate_to_influx <influxdb_url> <influxdb_database> <local_network> <interface> | |
# rate_to_influx http://127.0.0.1:8086 network 192.168.0.0/24 re1 |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
#!/usr/bin/env bash | |
############################################################ | |
# MIGRATED TO REPOSITORY | |
# https://github.com/tavinus/cloudsend.sh | |
# | |
# This gist will NOT be updated anymore | |
############################################################ | |
############################################################ |