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/python3 | |
""" | |
extras.py: Upscale PNG images in DIR_IN into DIR_OUT. | |
Usage: Set API_URL, DIR_IN, and DIR_OUT. Then run ./extras.py | |
For API documentation see: http://localhost:7860/docs#/ | |
""" | |
import sys | |
import io | |
import os |
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
provider "aws" { | |
region = "us-east-1" | |
} | |
data "aws_caller_identity" "current" {} | |
data "aws_vpc" "vpc" { | |
filter { | |
name = "tag:Name" | |
values = [ |
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 | |
# Installs an IKEv2 VPN server on Amazon linux. | |
# Reference: | |
# https://hub.zhovner.com/geek/universal-ikev2-server-configuration/ | |
# https://www.zeitgeist.se/2013/11/22/strongswan-howto-create-your-own-vpn/ | |
# Operates well on a t2.nano instance for administrative use. t2 allows full CPU | |
# usage as long as < 5% of daily operation time which is perfect for an | |
# administrative VPN. The server fits well inside the ram requirements and uses |
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
Each Jenkins page has a REST API hyperlink at the bottom, this is because each page has its own endpoint. | |
http://localhost:8080/me | |
configure | |
Click 'Show API Token' | |
78e21f82a9e137614fef5b9593bcf827 = API Token | |
curl -s -u goll:78e21f82a9e137614fef5b9593bcf827 http://localhost:8080/crumbIssuer/api/json |