Skip to content

Instantly share code, notes, and snippets.

jsonFile="$HOME/files.json"
sourceBucket="your-source-bucket-name"
targetBucket="your-target-bucket-name"
function keyExists {
local searchKey=$1;
aws s3api list-objects-v2 --bucket $targetBucket --query "length(Contents[?ends_with(Key, \`$searchKey\`)])"
}
for object in `jq -cr '.[]' $jsonFile`;
#0 Hello
#1 World
#2 I am Cow
#3 Here me moo
#4 Here I stand
#5 I am Cow
#6 Here me moo, moo
interface eth0 {
AdvSendAdvert on;
AdvLinkMTU 3600;
AdvHomeAgentFlag off;
AdvManagedFlag off;
AdvOtherConfigFlag off;
MinRtrAdvInterval 30;
MaxRtrAdvInterval 100;
prefix 2600:1700:7d48:b210::/64 {
AdvOnLink on;
AWSTemplateFormatVersion: '2010-09-09'
Description: 'VPC Creation'
Resources:
PrivateVpc:
Type: 'AWS::EC2::VPC'
Properties:
CidrBlock: '172.16.0.0/16'
EnableDnsSupport: true
EnableDnsHostnames: false
Tags:
def flexibleFizzBuzz(start: Int, end: Int) (callback: String => Unit): Unit = {
for (i <- Range(start, end)) {
var output: String = ""
if (i % 3 == 0) {
output += "Fizz"
}
if (i % 5 == 0) {
output += "Buzz"
}
if (output.isEmpty) {
import java.io.{BufferedReader, BufferedWriter, FileReader, FileWriter}
def withFileWriter(filename: String) (handler: BufferedWriter => Unit): Unit = {
val writer = new BufferedWriter(new FileWriter(filename))
try handler(writer)
finally writer.close()
}
def withFileReader(filename: String) (handler: BufferedReader => Unit): Unit = {
val reader = new BufferedReader(new FileReader(filename))
def fibonacci(n: int) -> int:
abs_n: int = abs(n)
if abs_n < 2:
return 0
if abs_n < 3:
return 1
return fibonacci(abs_n-1) + fibonacci(abs_n-2)
AWSTemplateFormatVersion: '2010-09-09'
Description: DNS Host Management
Parameters:
PrimaryDomainName:
Type: String
Resources:
PrimaryDomain:
Type: 'AWS::Route53::HostedZone'
Properties:
Name: !Ref PrimaryDomainName
Family Specialty Use Case
F1 Field Programmable Gate Array Genomics research, financial analytics, real-time video processing, big data, etc
I3 High Speed Storage NoSQL DBs, Data Warehousing, etc
G3 Graphics Intensive Video Encoding/3D Application Streaming
H1 High Disk Throughput MapReduce-based workloads, distributed file systems such as HDFS and MapR-FS
T2 Lowest Cost, General Purpose Web Servers/Small DBs
D2 Dense Storage Fileservers/Data Warehousing/Hadoop
R4 Memory Optimized Memory Intensive Apps/DBs
M5 General Purpose Application Servers
@haydenk
haydenk / sln.csv
Last active June 25, 2025 17:36
This file is not routinely updated. Last update was 2025-06-25 (when it was created). Go to https://launchstrong.com for more information
region lat lng name address website phone contact
8 25.7616798 -80.1917902 Christ Church Miami – Launching in 2025! 13611 S Dixie Hwy. NUM463 Miami, FL, 33176 https://christchurchmiami.org/
8 27.8145078 -82.6389833 Artisan City Church – Launching in 2025! 260 1st Ave S Suite. 200 Box #111 St. Petersburg, FL, 33701 https://www.artisancity.church/
3 33.3709687 -111.617275 Echoes Church 10045 East Madero Mesa, AZ 85209 https://www.echoes.church/ (602) 529-6072
9 43.9129612 -69.9761962 Iron Coast Church Meeting at Brunswick High School: 71 Dragon Drive, Brunswick, ME 04011 https://www.facebook.com/ironcoastchurch/?_rdr
3 47.8106521 -122.3773552 Odyssey Church – Launching in 2025! PO Box 92 Edmonds, WA 98020 https://odyssey.church/