Skip to content

Instantly share code, notes, and snippets.

View fellowgeek's full-sized avatar

Erfan Reed fellowgeek

View GitHub Profile
@fellowgeek
fellowgeek / setup-ssh.sh
Created March 1, 2025 04:20
Host Alerts - SSH login web hook installer
### TBD
@fellowgeek
fellowgeek / index.php
Last active April 25, 2025 16:02
PHP server for retouch
<?php
// Define the base URL
define('__BASE_URL__', 'http://192.168.0.100/retroarch/');
// Initialize a counter and create an object to hold the data
$count = 0;
$data = new stdClass();
$data->files = [];
@fellowgeek
fellowgeek / WebServer.m
Created November 9, 2023 02:56
Retroarch TVs code hack to automatically include the ROMs directory into the Apple TV app when caches disappear
-(instancetype)init {
NSLog(@"Init form WebServer");
if ( self = [super init] ) {
#if TARGET_OS_IOS
NSString* docsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
#elif TARGET_OS_TV
// BEGIN HACK
NSString* docsPath = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) firstObject];
<style>
.win {
color: #00cf00;
}
.loose {
color: #cf0000;
}
$('.btn-landscape').click(function(){
if( $(this).find('i').hasClass('fa-check') ){ $(this).find('i').removeClass('fa-check'); } else { $(this).find('i').addClass('fa-check'); }
$.ajax({url:'/w/images/wimages/landscape/?oimage_id='+$(this).attr('data-oimage-id')});
});