Skip to content

Instantly share code, notes, and snippets.

View syntaxhacker's full-sized avatar
🧠
upgrading...

Rohit J syntaxhacker

🧠
upgrading...
View GitHub Profile
@syntaxhacker
syntaxhacker / react-scan.md
Created April 2, 2026 12:59
react-scan: React performance scanning tool setup guide

react-scan: React Performance Scanning Tool

Detects unnecessary re-renders and performance bottlenecks in React apps visually.

Install

bun add -D react-scan   # or: npm install -D react-scan
@syntaxhacker
syntaxhacker / branching-strategy.mmd
Last active March 27, 2026 10:47
Git Branching Strategy - GitFlow-lite for team workflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@syntaxhacker
syntaxhacker / attention-residuals-deep-dive.md
Created March 26, 2026 19:59
Attention Residuals (AttnRes) - arXiv:2603.15031 explained in layman terms with ASCII diagrams
@syntaxhacker
syntaxhacker / color.js
Last active September 19, 2022 13:09
Cooolorrrsss
// generate list of random colors except blue rgb values until green is reached
let colors = [];
const numOfColors = 10;
const unDesirableColor = (color) => {
// if color is near blue or white return true
const rgb = color.split(',').map((val) => {
@syntaxhacker
syntaxhacker / capp_treemaps.py
Created March 3, 2022 22:07 — forked from gVallverdu/capp_treemaps.py
Treemaps with python and matplotlib
#!/usr/bin/env python3
# coding: utf-8
import matplotlib
import matplotlib.pyplot as plt
import pandas as pd
import squarify
import platform
# print versions
@syntaxhacker
syntaxhacker / config.py
Created November 22, 2021 18:07
send emails to gmail via python
username='' #email
password='' #password
# /usr/bin/env python
#
# Author: Red5d
#
# Description: Extract and run OCR on subtitles from a PGS-format .sup file.
#
# Example Usage: python sup2srt.py bd_subtitles.sup bd_subtitles.srt
#
# Dependencies:
# - pytesseract
@syntaxhacker
syntaxhacker / install_ffmpeg_libfdkaac.sh
Created January 6, 2021 10:12 — forked from rafaelbiriba/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@syntaxhacker
syntaxhacker / command.txt
Created December 26, 2020 19:07 — forked from nrk/command.txt
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
VBR="2500k"
FPS="30"
QUAL="veryfast"
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
SOURCE="/tmp/Aot.mkv"
KEY=""
ffmpeg \
-stream_loop -1 -i "$SOURCE" -deinterlace \