Skip to content

Instantly share code, notes, and snippets.

View Xarkam's full-sized avatar
🏠
Working from home

Benjamin Nolmans Xarkam

🏠
Working from home
View GitHub Profile
@Xarkam
Xarkam / gist:0ae82779e25647700b1b7bfd59dee71c
Created May 16, 2021 08:36
Windows 2000 desktop color
RGB
Red: 59
Green: 110
Blue: 165
Hexadecimal
#3B6EA5
@Xarkam
Xarkam / WebRestServer.lpr
Created April 20, 2022 11:02
little pascal rest api
program WebRestServer;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}cthreads, cmem, {$ENDIF}
SysUtils, fphttpapp, httpdefs, httproute, fpjson, jsonparser,
fphttpclient, opensslsockets,Classes;
procedure jsonResponse(var aResponse: TResponse; data: String);
@Xarkam
Xarkam / move_extcore_nuget_to_local_repo.ps1
Created November 15, 2022 12:09
Move created nuget packages to a local repositry
# Copyright © 2017-2022 SOFTINUX. All rights reserved.
# Licensed under the MIT License, Version 2.0. See License.txt in the project root for license information.
<#
.SYNOPSIS
This is a Powershell script to create nuget local package
.DESCRIPTION
Usage:
#>
@Xarkam
Xarkam / ubuntu_24.04_vmware.md
Last active January 25, 2025 15:06
Ubuntu 24.04 black screen vmware

VMWare

VmWare Tools

sudo apt install open-vm-tools open-vm-tools-desktop

Fix Freezing Ubuntu 24.04 on VMware and Enable Accelerated Graphics

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update && sudo apt upgrade

Use inter font

@Xarkam
Xarkam / prepare_python_for_obs.ps1
Created March 16, 2025 13:08
Prepare downloaded python zip for obs
$currentPath = Get-Location
# Rename the file python312._pth to python312._pth.save to prevent malfunction
Rename-Item Path "$currentPath\python312._pth" -NewName "$currentPath\python312._pth.save"
#Get pip from https://bootstrap.pypa.io/get-pip.py
$url="https://bootstrap.pypa.io/get-pip.py"
$output="$currentPath\get-pip.py"
Invoke-WebRequest -Uri $url -OutFile $output