Skip to content

Instantly share code, notes, and snippets.

View shakahl's full-sized avatar
:electron:

Soma Szelpal shakahl

:electron:
  • Platform whisperer @ Shakahl Ltd. • Made GitLab AutoDevOps work on GitHub • DevOps’d the hell out of DiNG • Metaverse pipelines @ nextearth.io • Used to scrub fraud on Jasmin at Docler
  • Budapest, Hungary
  • 04:41 (UTC +02:00)
  • LinkedIn in/somaszelpal
  • X @szelpalsoma
  • Facebook szelpalsoma
  • Instagram szelpalsoma
View GitHub Profile
@sgeraldes
sgeraldes / Check-Nahimic.ps1
Last active August 20, 2026 01:15
Disable Nahinic Service
# Check Nahimic service status
$nahimicService = Get-Service -Name "Nahimic service" -ErrorAction SilentlyContinue
if ($nahimicService) {
if ($nahimicService.Status -eq "Running") {
Write-Host "Nahimic service is currently running." -ForegroundColor Yellow
Write-Host "Advice: If you're experiencing issues related to Nahimic or high CPU/RAM usage, consider stopping and disabling the service."
}
else {
Write-Host "Nahimic service is present but currently not running." -ForegroundColor Green
@shakahl
shakahl / backup.ps1
Created June 7, 2023 01:30 — forked from vnau/backup.ps1
PowerShell script to backup files to ZIP archive excluding specific folders
param([Parameter(Mandatory)]$path)
$ErrorActionPreference = "Stop"
# top path that we want to keep in the source code zip file
$subdir = ""
# location of the zip file
$ZipFile = (Get-Item -Path ".\").FullName+"\"+(Split-Path $path -leaf)+".zip"
# change current directory
Set-Location "$path"
@erangaeb
erangaeb / podman
Created April 25, 2023 03:34
install podman
# install podman
❯❯ brew install podman
# initializes a new Linux runtime envirounment which known as podman machine
# podman behind the scene uses quem emulator to provide linux runtem envirounment
# --cpus 4 (specify cpus)
# --memory=6144 (specify memory)
❯❯ podman machine init --cpus 4 --memory=6144
# list podman machines
@sailist
sailist / keepchatgpt.js
Created April 17, 2023 11:41
keepchatgpt 去掉高亮
// ==UserScript==
// @name KeepChatGPT
// @description 让我们在使用ChatGPT过程中更高效、更顺畅,完美解决ChatGPT网络错误,不再频繁地刷新网页,足足省去10个多余的步骤。还可以取消后台监管审计。解决了这几类报错: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact us through our help center at help.openai.com. (3) This content may violate our content policy. If you believe this to be in error, please submit your feedback — your input will aid our research in this area. (4) Conversation not found.
// @version 7.7
// @author xcanwin
// @namespace https://github.com/xcanwin/KeepChatGPT/
// @supportURL https://github.com/xcanwin/KeepChatGPT/
// @description:ar لنجعل استخدام ChatGPT لدينا أكثر كفاءة وسلاسة، من خلال تحسين الحل لأخطاء شبكة ChatGPT. وهذا يوفر لنا من تحديث صفحة الويب بشكل متكرر ويقضي على أكثر من 10 خطوات غير ضرورية. تم حل الأخطاء التالية: (1) NetworkError when attempting to fetch resource. (2) Something went wrong. If this issue persists please contact
@stokito
stokito / README.md
Last active April 20, 2026 06:34
CGI shell scripts samples

CGI samples

CGI Variables

Standard set of Common Gateway Interface environment variable are described in RFC3875. For example:

CONTENT_TYPE=application/x-www-form-urlencoded
GATEWAY_INTERFACE=CGI/1.1
REMOTE_ADDR=192.168.1.180
QUERY_STRING=Zbr=1234567&SrceMB=&ime=jhkjhlkh+klhlkjhlk+%A9%D0%C6%AE%C6%AE&prezime=&sektor=OP
REMOTE_PORT=2292
@marcpinet
marcpinet / README.md
Last active July 16, 2026 17:46
Activate Sublime Text 4 Build 4143 and below for ever (also maybe above, but not yet tried)

Activate Sublime Text (for ever)

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner and select sublime_text.exe
  3. Press CTRL + F or on the Search for bar in the left panel and look for: 80 78 05 00 0f 94 C1
  4. Now in the editor, click on the first byte (80) and start replacing each byte by: C6 40 05 01 48 85 C9
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

@bburky
bburky / container.rsc
Last active December 20, 2025 02:48
Run the Tailscale Docker container on a Mikrotik router
# Run the Tailscale Docker container on a Mikrotik router
# Based on Mikrotik container documentation:
# https://help.mikrotik.com/docs/display/ROS/Container
# Tailscale container documentation:
# https://hub.docker.com/r/tailscale/tailscale
# Tested on an hAP AX^3 with RouterOS 7.7
@shakahl
shakahl / gochroot
Created January 5, 2023 22:51 — forked from kevinxucs/gochroot
chroot wrapper script
#!/bin/bash
# Change this to the parent folder that holds all chroots
CHROOT_ROOT=/scratch/chroot
# DO NOT CHANGE!
chrootname="$1"
chrootdir="$CHROOT_ROOT/$chrootname"
chrootlock="$CHROOT_ROOT/$chrootname.lock"
pid=$$
@jdhitsolutions
jdhitsolutions / Send-MastodonPost.ps1
Created December 21, 2022 20:19
A PowerShell function to post a Mastodon status.
#requires -version 5.1
<#
Based on a function from https://gist.github.com/dhmacher/2203582502c7ab13015db8f52e94da45
You need an access token that has at least write access to your status
* go to settings -> Development
* Click "New Application"
* Enter a name
@jdhitsolutions
jdhitsolutions / set-envvar.ps1
Last active June 28, 2025 21:16
Set a temporary environment variable in PowerShell
#requires -version 5.1
#set a temporary environment variable
# example using the function alias and positional parameters: se rust_log debug
Function Set-EnvironmentVariable {
[CmdletBinding(SupportsShouldProcess)]
[alias("se")]
Param (
[Parameter(Position = 0, Mandatory)]
[ValidateNotNullOrEmpty()]