Skip to content

Instantly share code, notes, and snippets.

@ner00
ner00 / MSPrintToPDF_AllowCustomSizes.ps1
Last active March 31, 2019 17:15 — forked from tmsz/MSPrintToPDF_AllowCustomSizes.ps1
A script that allows adding custom paper sizes in (forms) through Printer Server Manager for Microsoft Print To PDF virtual printer
# Adds custom paper sizes to Windows 10 'Microsoft print to PDF' virtual printer.
# Based on instructions from:
# https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/microsoft-print-to-pdf-custom-paper-sizes-possible/90ed3d48-1ece-4ca5-8d3b-ff0af24a7b37?auth=1
# https://franklinheath.co.uk/2015/08/29/custom-page-sizes-for-microsoft-print-to-pdf/
# https://onedrive.live.com/?authkey=%21ABebdrLzeOY7sa4&cid=A34A14B10D9BB9A1&id=A34A14B10D9BB9A1%21854&parId=A34A14B10D9BB9A1%21838&o=OneUp
# This allows to use custom size forms.
# https://technet.microsoft.com/en-us/library/dd759110(v=ws.11).aspx
$GPDCustomSizeMatch = '*DefaultOption: LETTER'
//https://archive.org/details/softwarelibrary_msdos_games
if (window.location.href.indexOf(document.domain + "/details/msdos") > -1) {
var scripts = document.querySelectorAll("script");
for (var i = 0; i < scripts.length; i++) {
var emuLoader = "" + scripts[i].text;
if (emuLoader.indexOf("AJS.emulate_setup") != -1) {
emuLoader = emuLoader.substring(emuLoader.indexOf("\/"));
emuLoader = emuLoader.replace("\\", "");
emuLoader = emuLoader.substring(0, emuLoader.indexOf("?"));
<?php
/*
*
* OGP - Open Game Panel
* Copyright (C) 2008 - 2017 The OGP Development Team
*
* http://www.opengamepanel.org/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
RetroArch 1.8.4 (Git f425d8d)
=== Build =======================================
Capabilities: ASIMD
[INFO] Built: Jan 16 2020
[INFO] Version: 1.8.4
[INFO] Git: f425d8d
[INFO] =================================================
[Environ]: SET_PIXEL_FORMAT: RGB565.
Redirecting save file to "/storage/emulated/0/RetroArch/saves/.srm".
Redirecting savestate to "/storage/emulated/0/RetroArch/states/.state".
@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:
@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 / 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 / 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 / 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 / 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