Skip to content

Instantly share code, notes, and snippets.

View GlowDB's full-sized avatar
🏠
Working from home

GlowDB GlowDB

🏠
Working from home
View GitHub Profile
AWSTemplateFormatVersion: '2010-09-09'
Metadata: {}
Parameters:
###########
KeyName:
Description: The EC2 Key Pair to allow SSH access to the instance
Type: 'AWS::EC2::KeyPair::KeyName'
AvailabilityZone:
Description: Availability zone to deploy
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
{
"Version": "...",
"Id": "...",
"Statement": [
{
"Sid": "...",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKETNAME/*"
@darrenparkinson
darrenparkinson / listLine.pl
Last active February 5, 2020 01:42
Simple Perl Script to request information from Cisco Communications Manager AXL API
#!/usr/bin/perl -w
use strict;
use warnings;
use Text::CSV;
use LWP::UserAgent;
use LWP::Protocol::https;
use HTTP::Request;
use MIME::Base64;
use XML::LibXML;