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
#!/usr/bin/env python3 | |
import requests | |
import getpass | |
import html.parser | |
class LoginFormParser(html.parser.HTMLParser): | |
def __init__(self): | |
html.parser.HTMLParser.__init__(self) |
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
################################################################################ | |
######################## STUBBY YAML CONFIG FILE ############################### | |
################################################################################ | |
# This is a yaml version of the stubby configuration file (it replaces the | |
# json based stubby.conf file used in earlier versions of getdns/stubby). | |
# | |
# For more information see | |
# https://dnsprivacy.org/wiki/display/DP/Configuring+Stubby | |
# | |
# This format does not fully support all yaml features - the restrictions are: |
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 | |
CFG_TZ=<timezone> | |
CFG_URL=<mydomain.com> | |
CFG_SUBDOMAINS=<subdomains>, | |
CFG_EMAIL=<email> | |
CFG_PASSWORD=<password> | |
CFG_DHLEVEL=2048 | |
CFG_ONLYSUBDOMAINS=true |
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 facebook | |
import requests | |
accessToken = "page_access_token_here" | |
graph = facebook.GraphAPI(access_token=accessToken, version="3.1") | |
parent = graph.put_object( | |
parent_object="page_id_here", | |
connection_name="feed", | |
message="Bruh Test") |
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 | |
# FreeIPA installer script for CentOS 8 | |
# https://gist.github.com/caguiclajmg/d293c49dfc4514e12ec81f50c6ceb724 | |
COLOR_ERROR='\033[0;31m' | |
COLOR_WARNING='\033[1;33m' | |
COLOR_NONE='\033[0m' | |
function die { |
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 | |
# <UDF name="hostname" label="Hostname" /> | |
# <UDF name="timezone" label="Timezone" example="Asia/Tokyo" /> | |
# <UDF name="role" label="Role" oneof="Server,Replica" /> | |
# <UDF name="server" label="FQDN of server to set up a replica of" /> | |
# <UDF name="domain" label="Domain" example="example.com" /> | |
# <UDF name="realm" label="Realm" example="EXAMPLE.COM" /> | |
# <UDF name="password_dm" label="Directory Manager Password" /> | |
# <UDF name="password_admin" label="Admin Password" /> |
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 | |
# Run this script directly from the raw gist: . <(curl -L https://git.io/JUvy1) | |
function error { | |
echo -e "\033[0;31m[ERROR] ${1}\033[0m" | |
exit $2 | |
} | |
function warn { |
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 | |
dnf update -y | |
firewall-cmd --add-service={ssh,cockpit} --permanent | |
systemctl enable firewalld --now | |
dnf module install virt -y | |
systemctl enable libvirtd --now |
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 | |
# . <(curl https://gist.githubusercontent.com/caguiclajmg/6f8a7295b7edbde72de1ddbf419ffae5/raw/centos-kvm.sh) | |
if [ -z "$HOSTNAME" ]; then read -p 'Hostname: ' HOSTNAME; fi | |
if [ -z "$DOMAIN" ]; then read -p 'Domain: ' DOMAIN; fi | |
if [ -z "$EMAIL" ]; then read -p 'Email: ' EMAIL; fi | |
FQDN=${HOSTNAME}.${DOMAIN} |
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
// ==UserScript== | |
// @name TextReplace | |
// @namespace https://guarandoo.jp | |
// @version 0.1 | |
// @description Simple text replacement | |
// @author [email protected] | |
// @match https://www.lowendtalk.com/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer