Skip to content

Instantly share code, notes, and snippets.

@tostercx
tostercx / goip_pkg.md
Created February 18, 2022 08:08
reversed GoIP PKG format

PKG format

offset sample name details
DB AD 47 5E magic
00 01 version PKG format version 1
00 00 encrypt resellers can crypt these?
00 2A 60 00 pkg_len total package length
69 4F 82 7D pkg_md5 md5 of rest of pkg
6B DE CA 4F -
@tostercx
tostercx / .bash_aliases
Created April 15, 2020 14:41
linux git shortcuts
alias gs='git status'
alias gp='git push'
gc() {
git commit -m "$*"
}
ga() {
git add $*
}
@tostercx
tostercx / mkcsv.php
Last active May 28, 2020 15:48
Convert ARIS VZD XML to CSV
<?php
$csv = "";
function wcsv($a) {
global $csv;
$csv .= '#' . implode('#;#', $a) . "#\r\n";
}
$filemap = [
'HouseCoordinateData' => 'AW_EKA_GEO',
['AUR', 'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BufferError', 'BytesWarning', 'CATID', 'ConnectionError', 'CreateInstance', 'DATE', 'DAY', 'DIST', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FloatingPointError', 'FutureWarning', 'GPSAddressOccupied', 'GPSBadAddress', 'GPSException', 'GPSTransportClosed', 'GROUPID', 'GeneratorExit', 'HOUR', 'IOError', 'ISK', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LOCID', 'LookupError', 'MIN', 'MONTH', 'MachoException', 'MachoWrappedException', 'MemoryError', 'MethodNotCalledFromClient', 'NameError', 'None', 'NotImplemented', 'NotImplementedError', 'OSError', 'OWNERID', 'OverflowError', 'PendingDeprecationWarning', 'ProxyRedirect', 'ReferenceError', 'RoleNotAssignedError', 'RuntimeError', 'RuntimeWarning', 'SEC', 'SQLError', 'ServiceNotFound', 'SessionUnavailable', 'StandardError', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemErr
#include <io.h>
#include <fcntl.h>
#include <windows.h>
#include <stdio.h>
typedef int (__stdcall *PY_ISINITIALIZED)();
typedef int (__stdcall *PYRUN_SIMPLESTRING)(const char *str);
typedef DWORD* (__stdcall *PYGILSTATE_ENSURE)();
typedef void (__stdcall *PYGILSTATE_RELEASE)(DWORD *gstate);
$test = @{};
$out = New-Object System.Text.StringBuilder;
$lines = Get-Content 'f1.txt'
foreach ($line in $lines) { $test[$line] = 1; }
$lines = Get-Content 'f2.txt'
foreach ($line in $lines) { if($test[$line]) { $null = $out.Append("$line`r`n") } }
Set-Content out.txt $out.ToString()
global MeGUI_darx = 16
global MeGUI_dary = 9
LoadPlugin("C:\Apps\MeGUI\tools\dgindex\DGDecode.dll")
DGDecode_mpeg2source("VTS_01_1.d2v", info=3)
LoadPlugin("C:\Apps\MeGUI\tools\avisynth_plugin\ColorMatrix.dll")
ColorMatrix(hints=true, threads=0)
{
"id":"1",
"created":"2016-06-23 15:41:44",
"started":"2016-06-23 15:41:36",
"finished":"2016-06-23 15:41:44",
"status":"done",
"message":"",
"query":"substance paint fruit",
"engines":[
{
var net = require('net');
var client = net.connect({host: '10.181.121.21', port: 5552},
function() {
console.log('connected to server!');
client.write('TYPE=PARAMGET?Axle Weight Max Permited&');
});
client.on('data', function(data) {
console.log(data.toString());