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 / 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 / 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 / gist:0ae82779e25647700b1b7bfd59dee71c
Created May 16, 2021 08:36
Windows 2000 desktop color
RGB
Red: 59
Green: 110
Blue: 165
Hexadecimal
#3B6EA5
@Xarkam
Xarkam / yml
Created May 11, 2021 09:56
Docker compose synology rocket.chat portainer
version: '2'
services:
rocketchat:
image: rocketchat/rocket.chat:latest
command: >
bash -c
"for i in `seq 1 30`; do
node main.js &&
s=$$? && break || s=$$?;
@Xarkam
Xarkam / gist:de4fcefb369c066a8f87124e9991b9d3
Created April 13, 2021 09:21
How to Block YouTube Video "End Screens" Overlays and Subscribe Thumbnail at End of Video
For µBlock Origin:
click uBlock Origin Options (Gears) > My filters tabs
youtube.com##.ytp-ce-element
Add this filter on its own line (copy and paste it) and then hit "Apply changes":
@Xarkam
Xarkam / gist:908559a9b3067c5ac4c5c33af174c065
Created December 1, 2020 11:08
Downgrade 1080p to 720p and reduce video size. (103mb mkv to 1.4mb mp4)
ffmpeg -i INPUTFILENAME -c:v libx264 -r 25 -preset slow -crf 24 -c:a copy -vf scale=1280:720 OUTPUTFILENAME
@Xarkam
Xarkam / fix_vlc_smb_error.txt
Created November 9, 2020 13:59
Fix smb stream error: read failed (Software caused connection abort)
Change value of read size into Input/Codec -> Stream filters -> Prefetch
Set it same as buffer size.
@Xarkam
Xarkam / install_mono_nuget.sh
Last active August 20, 2020 08:54
Install minimal mono for nuget.exe
#!/bin/bash
sudo apt-get install mono-4.0-gac \
libmono-system-core4.0-cil \
libmono-system-componentmodel-composition4.0-cil \
libmono-microsoft-build-utilities-v4.0-4.0-cil \
libmono-system-componentmodel-dataannotations4.0-cil \
libmono-windowsbase4.0-cil \
libmono-system-net-http-webrequest4.0-cil \
libmono-system-xml-linq4.0-cil \
libmono-system-data-datasetextensions4.0-cil \
@Xarkam
Xarkam / getWM_CLASS.sh
Created July 13, 2020 11:35
Get type of manager window class in X.
#!/bin/bash
xprop WM_CLASS | grep -o '"[^"]*"' | head -n 1
@Xarkam
Xarkam / .imwheelrc
Last active October 11, 2022 21:07
imwheel configuration vscode, jetbrains ide, slack, discord, rocket.chat, microsoft teams, gimp, firefox, chrome/chromium, vivaldi, spotify
"^(code|discord|rocket.chat|slack|microsoft teams - preview)$"
None, Up, Button4, 2
None, Down, Button5, 2
".*-chrome*"
None, Up, Button4, 2
None, Down, Button5, 2
Shift_L, Up, Shift_L|Button4, 2
Shift_L, Down, Shift_L|Button5, 2
Control_L, Up, Control_L|Button4