Skip to content

Instantly share code, notes, and snippets.

KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@iann0036
iann0036 / gist:b473bbb3097c5f4c656ed3d07b4d2222
Last active April 28, 2024 11:47
List of expensive / long-term effect AWS IAM actions
route53domains:RegisterDomain
route53domains:RenewDomain
route53domains:TransferDomain
ec2:ModifyReservedInstances
ec2:PurchaseHostReservation
ec2:PurchaseReservedInstancesOffering
ec2:PurchaseScheduledInstances
rds:PurchaseReservedDBInstancesOffering
dynamodb:PurchaseReservedCapacityOfferings
s3:PutObjectRetention
@Misko-2083
Misko-2083 / notif.sh
Created February 14, 2019 20:03
yad notification left click list example
#!/bin/bash
ERR(){ echo "ERROR: $1" 1>&2; }
declare -i DEPCOUNT=0
for DEP in /usr/bin/{xdotool,yad,xprop};do
[ -x "$DEP" ] || {
ERR "$LINENO Dependency '$DEP' not met."
DEPCOUNT+=1
}
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@tgrushka
tgrushka / resume.json
Last active April 28, 2024 11:43
JSON Resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Thomas (Tom) Grushka, M.S., CPWA",
"label": "Leading Software and Data Engineering Wizard",
"image": "",
"email": "tom@grushka.com",
"phone": "+1 720 495 7323",
"url": "https://linkedin.com/in/tgrushka",
"summary": "I’m a full-stack mobile and web engineer who architects apps and their infrastructures from the ground up. Having worked for both small and large companies, I am well-versed in a variety of programming frameworks and development processes. My expertise in accessibility is an advantage that adds unique value to my projects.",
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 28, 2024 11:42
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@g-monroe
g-monroe / api-service.ts
Last active April 28, 2024 11:42
Decorators Routes | App Router with NextJS 14
import 'reflect-metadata';
import { NextRequest, NextResponse } from "next/server";
export const GetMethodSymbol = Symbol('GetMethod');
export const PostMethodSymbol = Symbol('PostMethod');
export const BodyMetadataKey = Symbol('Body');
export const BodyTypeMetadataKey = Symbol('BodyType');
interface NextRequestWithParams extends NextRequest {
params: { [key: string]: string };
}
@SuperstrongBE
SuperstrongBE / apiService.decorator.ts
Created November 20, 2023 12:52
Research around decorator and api route
import { NextResponse } from "next/server";
import { PostMethodSymbol } from "./http-methods/post";
import { GetMethodSymbol } from "./http-methods/get";
export interface APIService {
GET:()=>void,
POST:()=>void,
}
// How can i fix the return type to avoid type check issue ?
@brianclements
brianclements / Commit Formatting.md
Last active April 28, 2024 11:35
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.