Skip to content

Instantly share code, notes, and snippets.

View ramiabraham's full-sized avatar

Rami Abraham ramiabraham

View GitHub Profile
@ramiabraham
ramiabraham / rom_suffix_codes.md
Last active October 16, 2026 02:45
Video game rom suffix codes (decoded)

Video game rom codes

You wouldn't download a car...


Primary rom codes

Probably what you're looking for

  • [a] Alternate (alternate version of the game, usually trying a different output method)
  • [p] Pirate
@ramiabraham
ramiabraham / pyscenedetect.sh
Created July 24, 2026 18:14
A script using pyscenedetect to detect scene cuts in mp4 video files within any directory, and split scenes to separate files. Uses adaptive detection method.
#!/usr/bin/env bash
#
# extract_scenes.sh
#
# Batch-detect scene cuts in a directory (and all its subdirectories) of
# .mp4 files using PySceneDetect, and save the results (split clips + scene
# list CSVs) to an output directory.
#
# Requirements:
# pip install scenedetect[opencv]
@ramiabraham
ramiabraham / gethooks
Last active December 26, 2024 21:30
Copy all actions and filters in a plugin and save to a file.
#!/bin/bash
#
# Prints all hooks in a dir to a .log file.
#
# Permissions issues:
# run: chmod +x gethooks
#
# gist: https://gist.github.com/ramiabraham/e8356e00130351ddcbe2c62125e6c52a
#
# Easy usage:
@ramiabraham
ramiabraham / togetherjs.php
Last active September 5, 2024 01:43 — forked from anonymous/togetherjs.php
Just a plugin to load together.js in WP.
<?php
/*
Plugin Name: TogetherJS for WordPress
Plugin URI: http://www.rami.nu
Description: Integrates TogetherJS with WordPress
Version: 0.1
Author: ramiabraham
Author URI: http://rami.nu
License: GPL 2.0
*
@ramiabraham
ramiabraham / affwp-custom-affiliate-managers.php
Last active May 15, 2024 11:34
Add AffiliateWP management permissions for multiple users.
<?php
/**
* Plugin Name: AffiliateWP - Add Affiliate Managers
* Plugin URI: http://affiliatewp.com/
* Description: Add AffiliateWP management permissions for a specific user; specify the user ID on line 35.
* Author: AffiliateWP
* Author URI: https://affiliatewp.com
* Version: 0.1
* Text Domain: affiliatewp-affiliate-managers
* Domain Path: languages
@ramiabraham
ramiabraham / console.loog.js
Created January 24, 2024 20:28
console.loog.js
let loog =
console.loog = function(){
Array.prototype.unshift.call(
arguments, loog );
console.log.apply( console, arguments );
};
@ramiabraham
ramiabraham / TinyTS_v11.ino
Created January 3, 2017 18:10
The Tiny-TS Touch Synthesizer
// (*) All in the spirit of open-source and open-hardware
// Janost 2016 Sweden
 
// The Tiny-TS Touch Synthesizer
// https://janostman.wordpress.com/the-tiny-ts-diy-touch-synthesizer/
 
// Copyright 2016 DSP Synthesizers Sweden.
//
// Author: Jan Ostman
//
@ramiabraham
ramiabraham / web.config
Created September 18, 2015 00:08
IIS web.config 301 and 302 redirect examples
<?xml version="1.0"?>
<configuration>
<system.webServer>
<httpRedirect enabled="true" destination="http://foo.com/newdir" httpResponseStatus="Permanent" />
</system.webServer>
</configuration>
<?xml version="1.0"?>
<configuration>
<system.webServer>
@ramiabraham
ramiabraham / README.md
Last active April 13, 2023 15:17
Get all public gists by EAL; https://gist.github.com/ericandrewlewis.
@ramiabraham
ramiabraham / bash_colors
Last active March 28, 2023 23:39 — forked from ian128K/bash_colours
Shell script colours
## Colours and font styles
## Syntax: echo -e "${FOREGROUND_COLOUR}${BACKGROUND_COLOUR}${STYLE}Hello world!${RESET_ALL}"
# Escape sequence and resets
ESC_SEQ="\x1b["
RESET_ALL="${ESC_SEQ}0m"
RESET_BOLD="${ESC_SEQ}21m"
RESET_UL="${ESC_SEQ}24m"
# Foreground colours