Skip to content

Instantly share code, notes, and snippets.

View Scarjit's full-sized avatar

Ferdinand Linnenberg Scarjit

View GitHub Profile
❯ ls -la
total 1771560
drwxr-xr-x 2 845 845 12288 Jul 26 19:38 .
drwxr-xr-x 8 845 845 4096 Jul 26 19:39 ..
-rw-r--r-- 1 845 845 1144026 Dec 26 2022 aai-containers_0.2.11.zip
-rw-r--r-- 1 845 845 10237658 Jul 26 17:48 aai-industry_0.5.20.zip
-rw-r--r-- 1 845 845 22321884 Jul 26 17:48 aai-signal-transmission_0.4.8.zip
-rw-r--r-- 1 845 845 158781 Dec 26 2022 AbandonedRuins_1.1.6.zip
-rw-r--r-- 1 845 845 43764 Dec 26 2022 AbandonedRuins-Krastorio2_0.1.2.zip
-rw-r--r-- 1 845 845 23819915 Jul 26 17:48 Aircraft_1.8.6.zip
import requests
import json
def find_nearby_pois(lat, lon):
overpass_url = "https://overpass-api.de/api/interpreter"
overpass_query = f"""
[out:json];
(
node["shop"="supermarket"](around:1000,{lat},{lon});
#!/bin/bash
# Get current time
current_time=$(date +"%Y-%m-%d_%H-%M-%S")
# Set log file name
log_file="${current_time}.log"
# Gather CPU information
echo "---- CPU Information ----" > "$log_file"
{
"OS": "linux",
"Arch": "amd64",
"Memory": {
"total": 16435666944,
"available": 10456764416,
"used": 5444882432,
"usedPercent": 33.12845441898972,
"free": 336252928,
"active": 4879347712,

Keybase proof

I hereby claim:

  • I am scarjit on github.
  • I am scarjit (https://keybase.io/scarjit) on keybase.
  • I have a public key ASAxTS26EDWWGA4S3y4HrTw6I43hkTQkKqN6L1JKU9dMygo

To claim this, I am signing this object:

@Scarjit
Scarjit / getduid.cs
Created May 7, 2022 21:38 — forked from Wack0/getduid.cs
clipc!GetOfflineDeviceUniqueID PoC.
using System;
using System.Runtime.InteropServices;
enum RETRIEVAL_METHOD {
ODUID_DEFAULT = 0,
ODUID_TPM_EK,
ODUID_UEFI_VARIABLE_TPM,
ODUID_UEFI_VARIABLE_RANDOMSEED,
ODUID_UEFI_DEV_LOCK_UNLOCK, // there is no code for this in clipsvc.dll, given the enum name, this could be Windows Phone only?
ODUID_XBOX_CONSOLE_ID, // this should never be seen, with xbox one a different function is called to get the console ID
@Scarjit
Scarjit / install.sh
Created April 13, 2022 12:36
Installs docker, Kubernetes & helm
#!/usr/bin/env bash
# Install dependencies
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release \
apt-transport-https
@Scarjit
Scarjit / public_suffic_private_section_dns_checker.py
Last active February 22, 2022 11:31
This python file checks the private domain part of the PSL against 3 major DNS providers and writes an report to a json file.
#!/usr/bin/env python3
"""
This python file checks the private domain part of the PSL against 3 major DNS providers
and writes an report to a json file.
The json file only contains entries wich have no valid TXT record on there _psl. domain
as described here: https://github.com/publicsuffix/list/wiki/Guidelines#rfc8553-dns-authentication
It also filters any entry, which was submitted by E-Mail authentication
"""
{
"columnNames":[
"Target Output",
"Actual Output",
"Actual Scrap",
"timestamp",
"Internal Order ID",
"Ordered Units",
"Predicted Output",
"Predicted Scrap",
@Scarjit
Scarjit / 192.168.10.16.har
Created January 17, 2022 10:57
192.168.10.16.har
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [],
"entries": [
{