Skip to content

Instantly share code, notes, and snippets.

View caldempsey's full-sized avatar
📦
the amazon prime of pull requests

Callum Dempsey Leach caldempsey

📦
the amazon prime of pull requests
View GitHub Profile
@caldempsey
caldempsey / nerd_fonts.md
Created March 21, 2024 18:25 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
@caldempsey
caldempsey / Windows 10 Optimization Script.ps1
Created July 23, 2021 18:51
Windows 10 Optimization Script
##########
# Win10 Optimization Script With Extra GPD Win Tweaks
# Adapted version of https://github.com/Disassembler0/Win10-Initial-Setup-Script by Disassembler <disassembler@dasm.cz>
# Author: BlackDragonBE
# Version: v2.2.1 (2017-12-02)
# Copied from https://www.reddit.com/r/gpdwin/comments/6ipa6c/windows_10_optimization_script_for_gpd_win/
##########
# As a workaround for disabled script execution, run this command (without #) in an elevated PowerShell windows first and choose "all" if you're asked where to apply this:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
YV54A-2ZW5P-M887Y-UWXNE-QPUXD
VY3R2-0NW0L-H845Q-TDMXT-XQAT0
VC7JR-A0Z97-08EGZ-M4YNV-XVHD0
FC1TU-4RGEQ-084EP-2XQQX-ZGHWA
CU1WA-8HGEN-M815Z-HQP5E-QKADF
AY7D0-FTG44-H846Y-2XPGV-P32T8
@caldempsey
caldempsey / benchmark-commands.txt
Created June 29, 2020 01:48 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@caldempsey
caldempsey / fast_uuid_io.go
Last active June 24, 2020 01:55
Write 10 million UUIDs to a text file is 0.2 seconds using Golang
package main
import (
"bytes"
"fmt"
"github.com/rogpeppe/fastuuid"
"log"
"os"
"runtime"
"sync"
@caldempsey
caldempsey / uuid_io.go
Last active June 24, 2020 00:40
Write 10 million UUIDs to a text file is 6 seconds using Golang (stdlib)
package main
import (
"bytes"
"fmt"
uuid "github.com/satori/go.uuid"
"log"
"os"
"runtime"
"sync"
@caldempsey
caldempsey / qvm-copy-to-dom0
Created July 21, 2019 23:02
Script to copy QubesOS from a host VM to domain0.
#!/bin/bash
# qvm-copy-to-dom0
# Copy a file from an AppVM to dom0
# qvm-copy-to-dom0 appVM srcPath [ dst ]
AppVM=$1 # mandatory
Source=$2 # mandatory
Destination=$3 # optional (will use ~/QubesIncoming/AppVM/ folder if null)
if [ -z "$Destination" ]; then
@caldempsey
caldempsey / serverlessroles
Last active April 29, 2019 09:22
The bare minimum IAM role-set to perform CRUD operations on Serverless Framework Lambda functions for AWS. Assign me to your responsible groups!
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"apigateway:GetResources",
"iam:DeleteRolePolicy",
"apigateway:DELETE",
"apigateway:GetResource",