Skip to content

Instantly share code, notes, and snippets.

View unlux's full-sized avatar
💤
womp womp

Lakshay Choudhary unlux

💤
womp womp
View GitHub Profile
@unlux
unlux / gist:912a2f72ab076564d767505d5dd517f4
Created October 23, 2025 05:31
syncthing ignore patterns
node_modules
.next
.medusa
.yarn
.venv
venv
https://vimforvscode.com/enable-key-repeat-vim
macOS
To enable key repeat on mac for VSCode + Vim, run the following commands in the Terminal:
# For VSCode
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
# For VSCode Insiders
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&Ee}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function
I set up a self-hosted Syncthing instance on a Google Cloud VM to enable real-time, redundant synchronization of code across my laptop, Mac, and Android device. The VM is secured following best practices and protected with password authentication. Any changes made on any device are instantly synced to the VM, which then asynchronously distributes updates to all other devices over the internet using end-to-end encryption. With the VM always online, synchronization remains uninterrupted even if one or more devices are offline. Currently, the setup reliably maintains over 70,000 files in sync across all devices.
I developed a scalable, high-performance video transcoding pipeline using FFmpeg, designed to balance speed, cost, and reliability. When a user uploads a file to the input S3 bucket, an SQS event queues the job for processing by either ECS tasks for rapid, on-demand scaling or EC2 workers for consistent, cost-efficient performance. SQS handles reliable job ordering and retries, with safeguards to prevent duplicate processing. Upon completion, the transcoded video is delivered to the output S3 bucket with all original metadata preserved, ensuring seamless end-to-end handling from ingestion to delivery.
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACArSErpb5ojsToVNnOcNUaS9eieCeakcYDUP+hVBwTHQAAAAJDLVAzwy1QM
8AAAAAtzc2gtZWQyNTUxOQAAACArSErpb5ojsToVNnOcNUaS9eieCeakcYDUP+hVBwTHQA
AAAEDtCeu3AErdZqabJu9MrXetzmhBO8ftrRGuRzcUwLsVeStISulvmiOxOhU2c5w1RpL1
6J4J5qRxgNQ/6FUHBMdAAAAACmx1eEBsZXB0dXABAgM=
-----END OPENSSH PRIVATE KEY-----
@unlux
unlux / snort_install.sh
Created November 8, 2024 03:46 — forked from maravedi/snort_install.sh
Install script for Snort3
# I scripted out the installation commands from the Snort setup guide for Ubuntu 16:
# https://s3.amazonaws.com/snort-org-site/production/document_files/files/000/000/123/original/Snort_3.0.0-a4-223_on_Ubuntu_14_and_16.pdf
#
# This script will install all the prerequisites for Snort, including Snort itself.
# As time passes, it may be necessary to update the download URLs for Libsafe, Ragel, Hyperscan, DAQ, and Snort. As those are hard-coded URLs based on their versions
#
# How to run the script:
# sudo sh snort_install.sh
logfile=~/snort_install.log
@unlux
unlux / README.md
Created August 4, 2024 16:04 — forked from balupton/README.md
Upload a File to Cloudflare R2 Instructions