Skip to content

Instantly share code, notes, and snippets.

View davidstrauss's full-sized avatar

David Strauss davidstrauss

View GitHub Profile
  1. Download both files for the "offline backup game installers".

  2. Extract:

    innoextract --output-dir=~/Downloads/HoMM3 "setup_heroes_of_might_and_magic_3_complete_4.0_(28740).exe"
    
  3. From the VCMI Launcher, choose to copy in the files. Select the ~/Downloads/HoMM3 directory.

  4. Delete the setup_heroes_of_might_and_magic_3_complete_4.0_(28740)* files and ~/Downloads/HoMM3.

It's also possible to run the import CLI using flatpak run --command=vcmibuilder eu.vcmi.VCMI --data $PATH, but any path seems to be interpreted from within the Flatpak sandbox.

<?php
$msg = file_get_contents('artifact1.php');
$pubkey_enc = 'RWT/sFZ5HK1Dq173idkKlbBz3gRngoqnchtMp4QdPZpdHJ+8Jpa2ZR8t';
$pubkey = base64_decode($pubkey_enc, TRUE);
$sig_enc = 'RWT/sFZ5HK1Dqz/qStQ9zRdmnZowrMNaMRe/B1gEGRBF+GcEYt95YG/2iN+HNPAddtZVRGaU+QW1NPlhDbtGpvY682aQKvvhBgI=';
$sig = base64_decode($sig_enc, TRUE);
file_put_contents('sig.raw', $sig);
<?php
function hello(array $x = null) { // Removing the "= null" will cause the call below to have a fatal error.
echo "hello\n";
}
hello(null);
sub vcl_recv {
#FASTLY recv
set req.http.ISO-3166-1 = client.geo.country_code;
set req.http.Path = req.url.path;
if (req.request != "HEAD" && req.request != "GET" && req.request != "FASTLYPURGE") {
return(pass);
}
[Unit]
Description=OpenRA dedicated server
After=ssh.service
[Service]
ExecStart=/usr/lib/openra/my-dedicated.sh
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
WorkingDirectory=/usr/lib/openra
[straussd@athena merge-tag]$ git checkout new-branch
Switched to branch 'new-branch'
[straussd@athena merge-tag]$ echo "Yet another file" > newbranchfile.txt
[straussd@athena merge-tag]$ git add newbranchfile.txt
[straussd@athena merge-tag]$ git commit -m"Another change to the branch."
[new-branch af871b2] Another change to the branch.
1 file changed, 1 insertion(+)
create mode 100644 newbranchfile.txt
[straussd@athena merge-tag]$ git checkout master
Switched to branch 'master'
[straussd@athena merge-tag]$ git init
Initialized empty Git repository in /home/straussd/Sandbox/merge-tag/.git/
[straussd@athena merge-tag]$ echo "Hello world." > demo.txt
[straussd@athena merge-tag]$ git add demo.txt
[straussd@athena merge-tag]$ git commit -m"Init"
[master (root-commit) 2e4ed59] Init
1 file changed, 1 insertion(+)
create mode 100644 demo.txt
[straussd@athena merge-tag]$ git checkout -b new-branch
Switched to a new branch 'new-branch'

Trace from PowerDNS Recursor

Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: 2 [4/1] question for 'na32.salesforce.com.|AAAA' from 127.0.0.1
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: Looking for CNAME cache hit of 'na32.salesforce.com.|CNAME'
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: No CNAME cache hit of 'na32.salesforce.com.|CNAME' found
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: No cache hit for 'na32.salesforce.com.|AAAA', trying to find an appropriate NS record
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: Checking if we have NS in cache for 'na32.salesforce.com.'
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: no valid/useful NS in cache for 'na32.salesforce.com.'
Sep 10 16:04:13 titan.davidstrauss.net pdns_recursor[27241]: [4] na32.salesforce.com.: Checking if we have NS
$settings = json_decode($_SERVER['PRESSFLOW_SETTINGS'], true); // Perhaps should read Redis settings more directly.
ini_set('session.save_handler', 'redis');
ini_set('session.save_path', 'tcp://' . $settings['conf']['redis_client_host'] . ':' . $settings['conf']['redis_client_port'] . '?auth=' . $settings['conf']['redis_client_password']);
session_set_cookie_params(15*60, '/', $_SERVER["HTTP_HOST"], true, true);
session_start();
<?php
if (!defined(CURLOPT_RESOLVE)) {
define('CURLOPT_RESOLVE', 10203);
}
$gateway_port = '443';
$gateway_ip = '140.211.10.16';
$ch = curl_init();