-
Add SP to
authsources.php'default-sp' => array( 'saml:SP', 'entityID' => 'https://svwiki.cloudapp.net', 'discoURL' => NULL, 'privatekey' => 'saml.pem',
'certificate' => 'saml.crt',
| import requests | |
| headers = { | |
| 'User-Agent': 'CurseForge Uploader Script/1.0', | |
| 'X-API-Key': YOUR_KEY | |
| } | |
| files = {'file': ('MyFile.zip', open('MyFile.zip', 'r'))} | |
| data = { | |
| 'name': 'Version Banana', |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| # Constants - taken from dpkt/ssl.py | |
| import struct | |
| # SSLv3/TLS versions | |
| SSL3_V = 0x0300 | |
| TLS1_V = 0x0301 | |
| TLS11_V = 0x0302 | |
| TLS12_V = 0x0303 |
| #!/bin/bash | |
| #Heavily inspired by clivewalkden/centos-7-package.sh | |
| # ( https://gist.github.com/clivewalkden/b4df0074fc3a84f5bc0a39dc4b344c57 ) | |
| #However, this one was tested... 2017-JAN-09 | |
| vagrant init centos/7 | |
| vagrant up | |
| vagrant ssh -c "sudo yum -y update" | |
| vagrant ssh -c "sudo yum -y install wget nano kernel-devel gcc" |
| # The initial version | |
| if [ ! -f .env ] | |
| then | |
| export $(cat .env | xargs) | |
| fi | |
| # My favorite from the comments. Thanks @richarddewit & others! | |
| set -a && source .env && set +a |
| #!/bin/bash | |
| UPLOAD=$1 | |
| fswatch -0 . | xargs -0 -I {} sh -c 'p="{}"; f="${p/$(pwd)\/}"; scp $p '"$UPLOAD"'"${f}"' |
Install Certbot using Python PIP (Package Installer for Python) - without using SNAP, APT or SYSTEMD. (Debian/Ubuntu)
This guide will help you install LetsEncrypt / Certbot using venv PIP under Debian/Ubuntu.
| /** | |
| * Copyright (c) 2022 ddomen (Daniele Domenichelli <daniele.domenichelli.5@gmail.com>) | |
| * | |
| * Permission is hereby granted, free of charge, to any person | |
| * obtaining a copy of this software and associated documentation | |
| * files (the "Software"), to deal in the Software without | |
| * restriction, including without limitation the rights to use, | |
| * copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the | |
| * Software is furnished to do so, subject to the following |