Skip to content

Instantly share code, notes, and snippets.

View long-blade's full-sized avatar

Michael. M long-blade

  • Moon
View GitHub Profile
@long-blade
long-blade / docker-compose.yml
Last active February 3, 2022 13:57
[Redis-Kafka-Neo4j] Boot up all in one a kafka cluster and neo4j + redis databases! #kafka #zookeeper #neo4j #redis #docker #docker-compose
version: '3'
services:
redis:
image: 'bitnami/redis:latest'
ports:
- 6379:6379
environment:
- REDIS_PASSWORD=password
- ALLOW_EMPTY_PASSWORD=yes
@long-blade
long-blade / resize.sh
Last active January 14, 2022 19:57
[Image resizer] Resize images for a directory of image files. #bash, #bashscripting
#! usr/bin/bash
## execute: bash resize.sh /path/to/files
for f in "$1"/*.{jpg,png}; do
[ -f "$f" ] || continue #skip in case f is not a regular file.
base=$(basename "$f")
echo "Converting $1/${base%.*}.${base##*.}"
convert "$f" -resize 1920x1322 -gravity center -background white -extent 1600x1102 "$1/${base%.*}.${base##*.}"
@andreasonny83
andreasonny83 / RELEASE-NOTES.md
Last active April 6, 2025 08:56
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
@ankurk91
ankurk91 / laravel_horizon.md
Last active January 23, 2025 05:08
Laravel Horizon, redis/valkey-server, supervisord on Ubuntu server

Laravel Horizon, redis-server, supervisord on Ubuntu 20/22/24 server

Laravel 10+, Horizon 5.x, Redis/Valkey 7+

Prepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now; it should show status as inactive on horizon dashboard

Install redis-server

@meirbon
meirbon / Dell XPS 15 9560 Manjaro Setup instructions
Last active February 1, 2025 11:52
Small, quick guide to set up Manjaro on the XPS 15 9560
# 1. First of all of course get Manjaro:
https://manjaro.org/get-manjaro/
# I recommend using Etcher to copy the image to your USB:
https://etcher.io/
# 2. Before installing make sure:
# - Secure boot is disabled in BIOS
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 19, 2025 21:03
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example