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
<form method=GET action="<?php htmlentities(basename(_FILE_)); ?>"> | |
<input type=text name="q" value="<?php echo htmlentities($_REQUEST["q"]); ?>"> | |
<input type=submit value="WHOIS"> | |
</form> | |
<pre><?php | |
/* | |
* whois.php | |
*/ | |
main(); |
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
""" | |
Document Description | |
""" | |
__author__ = "Anonymous Coward" | |
__version__ = "0.1.0" | |
__license__ = "GPLv3" | |
import argparse | |
# from logging.handlers import SysLogHandler |
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
# Generic role to allow lambda to execute | |
resource "aws_iam_role" "lambda_exec" { | |
name = "lambda_assume_role" | |
assume_role_policy = jsonencode({ | |
Version = "2012-10-17" | |
Statement = [ | |
{ | |
Action = "sts:AssumeRole" | |
Effect = "Allow" | |
Sid = "" |
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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowAllUsersToListAccounts", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ListAccountAliases", | |
"iam:ListUsers", | |
"iam:GetAccountSummary" |
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
{"sidebarBg":"#e8e4d9","sidebarText":"#2e2e2e","sidebarUnreadText":"#cb4b16","sidebarTextHoverBg":"#DCD6C6","sidebarTextActiveBorder":"#cb4b16","sidebarTextActiveColor":"#cb4b16","sidebarHeaderBg":"#e8e6df","sidebarHeaderTextColor":"#424242","onlineIndicator":"#52adad","awayIndicator":"#d4b579","dndIndicator":"#f74343","mentionBj":"#ffffff","mentionColor":"#ffffff","centerChannelBg":"#fdf6e3","centerChannelColor":"#444444","newMessageSeparator":"#f2777a","linkColor":"#2aa198","buttonBg":"#cb4b16","buttonColor":"#ffffff","errorTextColor":"#fd5960","mentionHighlightBg":"#ebd8c2","mentionHighlightLink":"#cb4b16","codeTheme":"github","mentionBg":"#cb4b16"} |
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 | |
# Install Prometheus Node Exporter on CentOS 6. | |
set -eu | |
set -o pipefail | |
set -x | |
REPOFILE='/etc/yum.repos.d/coprs.ibotty.prometheus-exporters.repo' | |
INSTALLED=0 |
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 | |
set -eu -o pipefail | |
# -------------------------------------------- | |
# ---------- USE AT YOUR OWN RISK ----------- | |
# -------------------------------------------- | |
# Remove Solr from Ubuntu, as long as it was installed with defaults. | |
# As of 2022, works for any version of solr on any version of Ubuntu. |
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 | |
# ------------------------------------------------------------- | |
# Repeatedly probe a url forever with curl, only keeping the HTTP response code or the failure message from curl. Discard all other output. | |
# Any args passed to this script will be forwarded to the curl command as-is. | |
# Activity is profusely logged. | |
# | |
# Examples: | |
# | |
# Probe from the internet, limiting execution time: |
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 -ue | |
################################################################################ | |
# Simulates the certificate files that LetsEncrypt creates, creating self signed ones instead | |
# Ignores all arguments except the last one, which is assumed to be your FQDN. | |
################################################################################ | |
if [ $# -lt 1 ]; then | |
>&2 echo "I need at least a FQDN to do anything." | |
exit 1 |
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 | |
/** | |
################## | |
ip.php | |
################## | |
A php page that simply displays the IP address of the visitor. | |
Serves plain text by default, serves a pretty html version by request, or if |
NewerOlder