Command 'x86_64-w64-mingw32-gcc' not found, but can be installed with:
64-bit exe: sudo apt install gcc-mingw-w64-x86-64
32-bit exe: sudo apt install gcc-mingw-w64-i686
#!/bin/bash | |
# Files changed or deleted since checksum creation are noted. | |
# New files are not noted. | |
if [ -z "$1" ]; then | |
DIR=`pwd` | |
else | |
DIR=`realpath $1` | |
fi |
import sys | |
import socket | |
import random | |
# Create and bind UDP socket | |
bind_ip = sys.argv[1] | |
bind_port = int(sys.argv[2]) | |
msgsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) | |
msgsock.bind((bind_ip, bind_port)) | |
print('Waiting for commands on', bind_ip, 'port', bind_port) |
{ BinSearchReplace Version 0.9 } | |
program BinSearchReplace; | |
{$APPTYPE CONSOLE} | |
{$R *.res} | |
uses | |
Windows, SysUtils; | |
const | |
cFileChunkSize = 500000; |
Nem opsætning af simpel/slank MariaDB test-server på Windows | |
------------------------------------------------------------ | |
Hent seneste stable MariaDB til Windows | |
(ZIP-fil uden debug-symbols, ikke MSI) | |
fra https://downloads.mariadb.org/ | |
Der oprettes en valgfri rod-mappe |
Create/update the copy: | |
rsync -avi --delete A/ B/ | |
Verify: | |
rsync --dry-run --recursive --checksum --times --delete --itemize-changes --verbose --stats A/ B/ |
Command 'x86_64-w64-mingw32-gcc' not found, but can be installed with:
64-bit exe: sudo apt install gcc-mingw-w64-x86-64
32-bit exe: sudo apt install gcc-mingw-w64-i686
function call_api(url, args, rsp_json, result_func) { | |
// Start the fetch chain of promises | |
fetch(url, { | |
method: 'POST', | |
headers: {'Content-Type': 'application/json'}, | |
body: JSON.stringify(args) | |
}) | |
.then(rsp => { | |
// rsp.ok true if rsp.status is 200-299 | |
if (rsp.ok) { |
body { | |
background-color: white; | |
color: black; | |
font-family: sans-serif; | |
font-size: 100%; | |
} |
// Very basic Windows Service template - maybe not fully correct/complete but it works. | |
// x86_64-w64-mingw32-gcc -mwindows -municode -O2 -s -o TempLoggerService.exe TempLoggerService.c | |
// SC create TempLoggerService binpath="C:\Temp\TempLoggerService.exe" | |
// SC delete TempLoggerService | |
#include <windows.h> | |
#include <stdio.h> | |
#define SERVICE_NAME L"TempLoggerService" |
# Reads a directory of picture files and creates a single-file HTML-document including all the pictures as Base64 data inside the document | |
import sys | |
import os | |
import io | |
import math | |
import base64 | |
from PIL import Image, UnidentifiedImageError | |
# ---------- TagBuilder ---------- |