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##*.}"
@ankurk91
ankurk91 / laravel_horizon.md
Last active May 9, 2024 14:05
Laravel Horizon, redis-server, supervisord on Ubuntu server

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

Laravel 8+, Horizon 5.x, Redis 6+

Parepare 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 dashbaord

Install redis-server

@meirbon
meirbon / Dell XPS 15 9560 Manjaro Setup instructions
Last active May 13, 2024 02:39
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 May 21, 2024 14:43
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