Skip to content

Instantly share code, notes, and snippets.

@zedxxx
zedxxx / params.txt
Last active July 1, 2023 09:46
SatMap cache tile server + SASPlanet zmp
[PARAMS]
GUID={C137CF51-CBEF-4267-80EA-DF88C157D0C5}
ParentSubMenu=SatMap Cache
name=Google Sat
NameInCache=satmap.sat
DefURLBase=http://localhost:8080/satmap/0/{z}/{x}/{y}
ContentType=image/jpeg
Ext=.jpg
EPSG=3785
// Android 4.1+
dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.12.13'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
}
// Android 5.0+
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
program Project1;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.Classes,
System.SysUtils;
$ go build -gcflags "-m" main.go
# command-line-arguments
.main.go:8:6: can inline f
.main.go:13:6: can inline main
.main.go:16:16: inlining call to f
.main.go:9:27: &Person literal escapes to heap
.main.go:14:27: &Person literal does not escape
.main.go:16:16: &Person literal does not escape
re1.Lines.BeginUpdate;
try
re1.Lines.Assign(sl2);
finally
re1.Lines.EndUpdate;
end;
@zedxxx
zedxxx / import_route.cmd
Last active September 25, 2020 16:58
osmscout: Import routing data only
@echo off
SETLOCAL ENABLEEXTENSIONS
rem attion variable scope is lost when nesting if's
rem helpfull for string http://www.dostips.com/DtTipsStringManipulation.php
set arg1=%1
set dir=%1
set found=0
set search=%1
uses
SysUtils,
SynCommons;
{$A8}
type
TRec = record
f1: Word;
f2: Byte;
@zedxxx
zedxxx / MouseClickFix.dpr
Last active December 16, 2019 22:00
MouseClickFix
program MouseClickFix;
uses
Windows,
Classes,
SysUtils,
Messages;
var
mHook: HHook = 0;
program FastDigitCount;
{$APPTYPE CONSOLE}
uses
System.SysUtils,
System.Diagnostics;
function Digits_1(const S: string): Integer;
var
@zedxxx
zedxxx / nvidia-gpu-sensor.pl
Created December 23, 2018 20:09 — forked from hacker1024/nvidia-gpu-sensor.pl
KDE KSysGuard NVIDIA GPU temperature/memory/utilization sensor, based on @frantic1048's script, but with units and total memory detection.
#!/usr/bin/perl -w
# act as a KSysGuard sensor
# provides NVIDIA GPU info via `nvidia-settings`
# Usage (e.g. add gpu temperature sensor)
# 1. save this file, make sure it has a exec permission
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine`
# 3.1 in new dialog, type `Host` whatever you want
# 3.2 set `Connection Type` to `Custom command`