Skip to content

Instantly share code, notes, and snippets.

View tylerapplebaum's full-sized avatar
☁️
AWS + Networking

Tyler Applebaum tylerapplebaum

☁️
AWS + Networking
View GitHub Profile
@alan-finn
alan-finn / AwsDnsBackup.ps1
Last active May 2, 2019 20:33
Powershell wrapper for the cli53 utility to backup Route53 zones.
if ($null -eq (Get-Module -Name AWSPowerShell)) {
Import-Module AWSPowerShell
}
$AwsDnsBucketName = "NAME_OF_AWS_BUCKET"
$AwsCredProfileName = "NAME_OF_AWS_PROFILE"
$SmtpServer = "SMTP_SERVER"
$FromAddress = "FROM_ADDRESS"
$ToAddress = "RECIPIENT_ADRESS"
@jedisct1
jedisct1 / spectre.c
Last active January 27, 2020 04:20 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@chrisdiana
chrisdiana / export-cognito-users.sh
Last active March 18, 2024 09:38
Export AWS Cognito User Pool
# Export as Text Table
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output table > ~/users.txt
# Export as JSON
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --output json > ~/users.json
# Export User Pool with more than 60 users (pagination)
aws --region XXXXXXXXX cognito-idp list-users --user-pool-id XXXXXXXXXXXXX --pagination-token INCREDIBLYLONGSTRINGHERE --output json > ~/users-2.json
@austind
austind / Get-CiscoManufactureDate.ps1
Last active October 31, 2017 15:37
Parse a Cisco serial number into a DateTime object accurate to within seven days of manufacture
Function Get-CiscoManufactureDate {
<#
.SYNOPSIS
Parses a modern Cisco serial number into an approximate date of
manufacture.
.DESCRIPTION
Modern Cisco serial numbers encode both the year and the week of
manufacture. Get-CiscoManufactureDate returns a corresponding DateTime
object given a Cisco serial number, accurate to within about 7 days
@aaronhoffman
aaronhoffman / iphone-text-message-sqlite.sql
Last active February 2, 2024 11:45
SQLite SQL Query for iPhone Text Message Backup
-- more info http://aaron-hoffman.blogspot.com/2017/02/iphone-text-message-sqlite-sql-query.html
select
m.rowid
,coalesce(m.cache_roomnames, h.id) ThreadId
,m.is_from_me IsFromMe
,case when m.is_from_me = 1 then m.account
else h.id end as FromPhoneNumber
,case when m.is_from_me = 0 then m.account
else coalesce(h2.id, h.id) end as ToPhoneNumber
,m.service Service
@jordanbrauer
jordanbrauer / README.md
Last active February 27, 2024 13:42
Runes.txt (Diablo II)

Runes.txt

Ladder only runewords, by default, are not able to be used in Single Player in Diablo II: Lord of Destruction.

  1. Download the Runes.txt file below.
  2. Place the Runes.txt file into your Diablo II directory under Diablo II\data\global\excel.
    Please note, these folders may need to be created!
  3. Right click on your Diablo 2 shortcut → properties → Add -direct -txt in the target line after ...\Diablo II\Diablo II.exe
  4. Test runewords!
@Jaykul
Jaykul / Get-MsdnKeys.ps1
Last active August 3, 2022 20:28
PowerShell + Selenium Demo: Getting Started, and reusing cookies with Invoke-Request
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code
#requires -Version 5.0
param(
# Your Live ID for MSDN login
[Parameter(Mandatory)]
[PSCredential]
[System.Management.Automation.CredentialAttribute()]
$Credential,
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file)
@supercheetah
supercheetah / Get-CDPInfo.ps1
Created October 30, 2015 20:34
Gets the CDP information from a Windows computer with PowerShell.
<#
.SYNOPSIS
Gets the CDP information from a computer.
.DESCRIPTION
Attempts to get the CDP information from a computer. It automatically downloads tcpdump.exe if it's not already on a computer.
.PARAMETER DeviceNumber
Alias: dn
@mskutta
mskutta / EdgeRouter_IPv6_Commands_for_Comcast.txt
Last active December 6, 2023 02:11
EdgeRouter IPv6 Commands for Comcast
configure
# Configure Firewall
set firewall ipv6-name IPV6WAN_IN description 'IPV6WAN to internal'
set firewall ipv6-name IPV6WAN_IN default-action drop
set firewall ipv6-name IPV6WAN_IN rule 10 action accept
set firewall ipv6-name IPV6WAN_IN rule 10 state established enable
set firewall ipv6-name IPV6WAN_IN rule 10 state related enable
set firewall ipv6-name IPV6WAN_IN rule 10 log disable
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 6, 2024 07:22
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites