Skip to content

Instantly share code, notes, and snippets.

@ongbt
ongbt / Cloudflare on Colima solution (use this first)
Last active January 2, 2025 03:12
Cloudflare ceriificate issues
mkdir -p ~/.docker/certs.d && curl -L -o ~/.docker/certs.d/Cloudflare_CA.pem https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem
colima restart

############################################################################################################ ################## ############################# ################## #############################

              This Gist collection contains all localstack related examples

################## ############################# ################## ############################# ############################################################################################################

@zaenk
zaenk / privileges.md
Created November 21, 2020 21:48
PostgreSQL grant privileges for future tables

Spring Boot makes database migration with Flyway or Liquibase almost effortless - but by default it will use the spring.datasource.* credentials when running the migrations, which kinda suggests that this user should have ALL PRIVILEGES on the schema. This is risky, because... well if you find this page, you probably familiar with poor little Bobby Tables.

Spring Boot also makes it possible to configure separate credentials for running database migrations with the spring.flyway.* or spring.liquibase.* properties.

I prefer app credetials this way: an app owner with ALL PRIVILEGES to run the migrations and an app user with least privileges, mostly CRUD or some limited EXECUTE for the app itself.

@ahacke
ahacke / Exiftool Cheats (for Synology Photostation).md
Last active March 22, 2025 08:04
Contains exiftool cheats and tricks, mostly used for Synology Photostation

Exiftool Cheats (for Synology Photostation).md

Contains scripts to modify exif metadata on media files. Generally, I used them for the synology photostation.

Another good reference with exif tricks: https://gist.github.com/rjames86/33b9af12548adf091a26

All of the commands or scripts require ExifTool by Phil Harvey.

Recommended Order of Running the Commands and Scripts

  1. Set CreateDate for Video-Media
  2. Set 'CreateDate' Based on FileName Supporting Different Formats
@mikepfeiffer
mikepfeiffer / stress.sh
Created January 27, 2019 21:05
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active July 16, 2025 06:32
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@jirutka
jirutka / keytool-import.sh
Last active January 28, 2024 03:45
Script to import key/certificate pairs into an existing Java keystore
#!/bin/bash
#
# The MIT License
#
# Copyright 2013-2015 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell