Skip to content

Instantly share code, notes, and snippets.

View Lednerb's full-sized avatar

Sascha Brendel Lednerb

View GitHub Profile
@brunogaspar
brunogaspar / macro.md
Last active March 7, 2026 07:06
Recursive Laravel Collection Macros

What?

If a nested array is passed into a Laravel Collection, by default these will be threaded as normal arrays.

However, that's not always the ideal case and it would be nice if we could have nested collections in a cleaner way.

This is where this macro comes in handy.

Setup

@peci1
peci1 / torrc
Last active March 31, 2022 14:47
My torrc on Turris Omnia
SOCKSPort 9050
SOCKSPolicy accept 127.0.0.1/32
SOCKSPolicy accept 192.168.18.0/24
SOCKSPolicy accept6 FC00::/7
SOCKSPolicy reject *
Log notice syslog
RunAsDaemon 1
DataDirectory /srv/tor
AvoidDiskWrites 1
ORPort 9001
@max-mapper
max-mapper / readme.md
Last active January 31, 2025 03:52
Video stabilization using VidStab and FFMPEG (Mac OS X)

Video stabilization using VidStab and FFMPEG

Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.

Here's an example video I made

Install ffmpeg with the vidstab plugin from homebrew

brew install ffmpeg --with-libvidstab
@janikvonrotz
janikvonrotz / Unattended Encrypted Incremental Backup to Amazon S3.md
Last active March 5, 2025 14:53
Ubuntu: Unattended Encrypted Incremental Backup to Amazon S3#AmazonAWS#Markdown

Introduction

For this task we are going to configure a duplicity script wrapper. Unregarded of the installation instructions it's expected that you have already signed up for an Amazon account and know how to use their services.

Requirements

  • Ubuntu server
  • duplicity, Git, GnuPG
  • MySQL