Skip to content

Instantly share code, notes, and snippets.

@ner00
ner00 / VideoStation.md
Created May 19, 2024 16:16
Synology VideoStation TMDB plugin workaround

VideoStation TMDB workaround

This might help those using VideoStation on non-official as well as official Synology systems:

Start by connecting through SSH, then run the commands below:

1. Backup 'constant.py' script:

@ner00
ner00 / run.ghost.cmd
Created June 8, 2023 23:03
Ghost Toolbox v1.9.0.78
This file has been truncated, but you can view the full file.
@ECHO OFF
REM ##Requires -Version 5
REM
REM .NOTES
REM ===========================================================================
REM Created with: Dolls vodka Technologies, Inc., PowerShell 2021
REM Created on: 12/6/2020 2:42 AM
REM Created by: Ghost Spectre
REM Organization:
REM Filename: Ghost Toolbox
@ner00
ner00 / google2fa.php
Created March 26, 2023 14:53 — forked from vhdm/google2fa.php
Google TOTP Two-factor Authentication for PHP
<?php
/**
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@ner00
ner00 / VMU Flash Memory Specification
Created January 30, 2023 19:32 — forked from RossMeikleham/VMU Flash Memory Specification
VMU Flash Memory Specification
Copied from http://mc.pp.se/dc/vms/flashmem.html
VMS Flashrom
The VMS flash memory contains 128 kilobytes of storage. These are divided into 256 blocks of 512 bytes each. Of these blocks, 200 are available for user files. The rest of the blocks contain filesystem information, or are simply not used at all.
The allocation of the 256 blocks is as follows:
0
.
.
.
@ner00
ner00 / re_notes.txt
Last active January 5, 2023 00:06
Broken Sword 2 - Reverse engineering TEXT.CLU
File header
4 bytes, lookup table offset
4 bytes, null
Text Resources
24 bytes, resource header
4 bytes, resource id
16 bytes, null
4 bytes, lookup table, total # of dialogue lines
@ner00
ner00 / viewimage.user.js
Last active November 15, 2024 21:03 — forked from bijij/viewimage.user.js
Userscript version of the View Image extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 3.7.0.15
// @description Re-implements the Google Images' "View Image" and "Search by Image" buttons.
// @author Joshua B
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFdElEQVRoge2YX2xTVRzHv7ejc8BGmuAYwQXHgxmEIDVqIiEmHULUxIcaffShE2YMgdjBgwRM4HHu5ZpofGDorfpAjA8j0ZjxZxbcwERZWOKTPhjGxv51W9vb293/5/hw1/Z299ze27WgJPs2be89f379/M45v3N+t8C61rWuJ1qcW0X6zIkIR8FTRQ5TVQUIASi1KgvfBa3c02J5qX7r1z+U/cZi7F2K1e2Kt7byognrIvHcCZw+f8TBu4EFr997K2L89U8yPwg2eBl/eR3LCbvI4gKj7yoHVtm42HkaI00HmPYCzEJD4jfs+BMbD00yO7nBVyd/fQY6T2Nk+xHXeuYMEGMpDACNezIAKB4O7ag4vaXRZ5fbtWiS8oKyWbVsb23gfMG7OgBTLkI07skgKAZ6Z29tG2c0dLdssItThHS5tevYtZNvyKTDyEsY2H0KI22V4QGXINZ/bbcNHQU4riv46tRNT2s1KP3RUYHMz8VINuuAL8AMfdzs4GXGgNWl8H70Ssd7LHhRxMBua9kQTSqSAO5h5uLA41M63iOQuVkLvvMURrYfBlGzMOVFxpJ1qoIDj34WrJGfjZGcBT+6Am9IM4kNLTt7/diosIQerYrwooiBzl6Mbj8McwV++NOXuv3aYe9CBRUWnumypaxRdvhLnacw2vYaE97
@ner00
ner00 / lgsl_query_altv.php
Created February 18, 2021 23:17
lgsl_query - Check alt:V master server list
function lgsl_query_44(&$server, &$lgsl_need, &$lgsl_fp)
{
//---------------------------------------------------------+
// Check alt:V master server list
$url ="https://api.altv.mp/servers/list/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_URL, $url);
@ner00
ner00 / backup_mysql.bat
Last active October 31, 2024 18:41
Backup MySQL - Dump DBs, Users, Grants (Windows Batch Script)
@echo off
set mysql_usr=root
set mysql_pwd=
set pasta_mysql_bin=C:\xampp\mysql\bin
set pasta_backup=C:\xampp\mysql\backup\sql
set dia=%date:~0,2%
set mes=%date:~3,2%
@ner00
ner00 / antiX.txt
Last active July 10, 2020 11:59
antiX Live USB + RetroArch
Video guide: https://youtu.be/HJkN_Ngdzq0
MINIMUM RECOMMENDED SETTINGS:
- 8GB USB pendrive
* Live system: 1.1GB
* rootfs: 500MB
* homefs: 3GB
@ner00
ner00 / #nes_rom_unheader.ps1
Last active February 22, 2024 03:24
NES ROM UNHEADER (16 Byte Header Remover)
# NES ROM UNHEADER (16 Byte Header Remover)
# -----------------------------------------
#
# ner0
# Created: 13/04/2020
# Reviewed: 14/04/2020
#
#
#
# Usage: