Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
#include <iostream>
#include <cstring>
using namespace std;
struct st{
int god[10000];
int serial[10000];
string proizvodjac[10000];
string model[10000];
@maddox
maddox / restart
Created May 10, 2023 18:44
Sunshine on ChimeraOS
#!/bin/bash
set -e
cd "$(dirname "$0")"
./stop
./start
@maddox
maddox / commands.md
Created February 29, 2012 06:37
Install script for Samba3

Install Samba 3 on OS X 10.7 Lion

Run the two commands below one at a time to get Samba 3 installed and to have it run on boot.

Install Samba with Homebrew

sh < <(curl https://raw.github.com/gist/1938575/df254d9a2ac83dddb04fcc7f9b634b65708aa477/

Set Samba up to launch on boot

@maddox
maddox / rg552_help.md
Last active February 9, 2023 18:47
RG552 Help Guide

RG552 Help Guide

This guide exists to document a few things about the default firmware that comes with the RG552. Hopefully this info helps you get your RG552 experience more in line with what you are used to.

Fix Rewind

The default firmware includes RetroArch 1.9.13 which includes a bug with rewind if you have RetroAchievements enabled. Disable RetroAchievements to fix rewind.

RetroArch Overides

@maddox
maddox / handheld-screen-sizes.md
Last active February 5, 2023 04:20
Handheld Screen Sizes
model screen size resolution aspect as 4x3 as 16x9
RG280v 2.8" 320x240 4:3 2.8" 2.57"
RG351p/m 3.5" 480x320 3:2 3.24" 3.34"
RG351v 3.5" 640x480 4:3 3.5" 3.21"
RG552 5.36" 1920×1152 5:3 4.6" 5.27"
RGB10 Max (2) 5" 854x480 16:9 4.09" 5"
PSP 4.3" 480×272 16:9 3.51" 4.3"
PSP Go 3.8" 480×272 16:9 3.1" 3.8"
PS Vita 5" 960x544 16:9 4.09" 5"
@maddox
maddox / README.md
Last active January 6, 2023 21:00
Process YouTube videos in Channels to get Thumbnail

This is a script to process YouTube videos on Channels DVR Server to apply a nicer thumbnail.

This assumes the YouTube ID and/or the published date is in the EpisodeTitle of the video. IE, Name of Video_(2023-01-06)_[akZxhhcwkR4]. This should be the case if the filename is Name of Video_(2023-01-06)_[akZxhhcwkR4].EXT in order to derive the video title from the filename when importing.

Published Date is optional.

When running this script, it will process every video in the video group. It will:

  1. Pull the YouTube id from the title
  2. Use it to generate the thumbnail url
http://pastie.caboo.se/pastes/create--- /Users/ioio/Downloads/KeyRemap4MacBook-6.99.0/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-12 18:21:47.000000000 +0100
+++ /Users/ioio/Downloads/KeyRemap4MacBook-6.9.69/files/prefpane/include/simultaneouskeypresses_vimode.xml 2010-11-14 20:43:08.000000000 +0100
@@ -8,7 +8,8 @@
<appendix>Push S and D keys simultaneously and keep them pressing.</appendix>
<appendix>Then you can use Vi style navigation by HJKL.</appendix>
<appendix>- HJKL to Left/Down/Up/Right</appendix>
- <sysctl vk_config="true">notsave.simultaneouskeypresses_vimode</sysctl>
+ <sysctl>notsave.simultaneouskeypresses_vimode</sysctl>
+ <vk_config>true</vk_config>
<autogen>--ShowStatusMessage-- Vi Mode</autogen>
@maddox
maddox / rolling-stones-500-greatest-albums-of-all-time.md
Created July 22, 2015 15:31
Rolling Stone's 500 Greatest Albums of All Time
@maddox
maddox / rg552_help.md
Created December 22, 2021 02:32
RG552 Help Guide

RG552 Help Guide

This guide exists to document a few things about the default firmware that comes with the RG552. Hopefully this info helps you get your RG552 experience more in line with what you are used to.

Fix Rewind

The default firmware includes RetroArch 1.9.13 which includes a bug with rewind if you have RetroAchievements enabled. Disable RetroAchievements to fix rewind.

RetroArch Overides

@maddox
maddox / sick c0dez
Created July 15, 2008 18:56
undefined
<% fields_for @public_key do |f| -%>
<p>
<%= f.label :title %><br />
<%= f.text_field :title %><br /><br />
</p>
<p>
<%= f.label :key %><br />
<%= f.text_area :key %>
</p>
<% end -%>