Skip to content

Instantly share code, notes, and snippets.

View shakahl's full-sized avatar
:electron:

Soma Szelpal shakahl

:electron:
View GitHub Profile
@shakahl
shakahl / countries.sql
Created June 23, 2025 22:02 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@shakahl
shakahl / command.md
Created March 15, 2025 14:34 — forked from aidik/command.md
curl ssh public key from GitHub to authorized_keys

mkdir -m 700 ~/.ssh; curl https://github.com/aidik.keys >> ~/.ssh/authorized_keys

@shakahl
shakahl / Music_powershell.cmd
Created March 13, 2025 01:39 — forked from bryanvine/Music_powershell.cmd
Powershell Wrapped in batch - a simple song using system beeps
goto ExecutePowershell
cls
#Powershell code block begining
#LINK http://www.bryanvine.com/2016/02/powershell-quick-script-wrap-any.html
0..2 | %{
"Loop: $($_+1)"
[System.Console]::Beep(450, 110);[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110)
[System.Console]::Beep(675, 200);[System.Console]::Beep(675, 200);[System.Console]::Beep(600, 300);[System.Console]::Beep(450, 110)
[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110);[System.Console]::Beep(600, 200)
[System.Console]::Beep(600, 200);[System.Console]::Beep(550, 300);[System.Console]::Beep(525, 110);[System.Console]::Beep(450, 300)
@shakahl
shakahl / FOR modifiers.md
Created February 25, 2025 17:47 — forked from Prince-Mandor/FOR modifiers.md
windows batch - FOR variables modifiers, ( AKA %~dp0 )

In addition, substitution of FOR variable references has been enhanced. You can now use the following optional syntax:

%~I         - expands %I removing any surrounding quotes (")
%~fI        - expands %I to a fully qualified path name
%~dI        - expands %I to a drive letter only
%~pI        - expands %I to a path only
%~nI        - expands %I to a file name only
%~xI        - expands %I to a file extension only
%~sI        - expanded path contains short names only

%~aI - expands %I to file attributes of file

@shakahl
shakahl / README.md
Created February 21, 2025 23:22 — forked from Artefact2/README.md
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggml-org/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@shakahl
shakahl / wrapper.cmd
Created February 12, 2025 23:12 — forked from mklement0/wrapper.cmd
wrapper.cmd - a wrapper batch-file template for executing embedded PowerShell and/or VBScript/JScript code
@echo off
setLocal enableDelayedExpansion
:: === ADAPTING THIS TEMPLATE (for help, see bottom or invoke with "help") ===
:: * Step 1 of 3: CLONE THIS BATCH FILE and give it a name of your choice.
:: * Step 2 of 3: Set the TARGET LANGUAGE on the next line.
:: One of: "ps1" "vbs" "js" (PowerShell, VBScript, JScript)
:: OR: "all" (runs ALL embedded snippets, in sequence)
:: NOTE: To add support for a new language, search for "NEW LANGUAGE"
:: below and follow the instructions there.
set "WRAPPER_LANG=ps1"
@shakahl
shakahl / prompts.csv
Created February 10, 2025 20:05 — forked from kevconklin/prompts.csv
Prompts
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
prompt_question
"Write a detailed essay on Dependency Injection. The essay should demonstrate your understanding of Dependency Injection, highlight its practical applications, and discuss the risks or challenges associated with Dependency Injection. Ensure your explanation is thorough and clear."
"Write a detailed essay on RESTful API Design. The essay should demonstrate your understanding of RESTful API Design, highlight its practical applications, and discuss the risks or challenges associated with RESTful API Design. Ensure your explanation is thorough and clear."
"Write a detailed essay on Event-Driven Architecture. The essay should demonstrate your understanding of Event-Driven Architecture, highlight its practical applications, and discuss the risks or challenges associated with Event-Driven Architecture. Ensure your explanation is thorough and clear."
"Write a detailed essay on Continuous Integration/Continuous Deployment (CI/CD). The essay should demonstrate your understanding of Continuous Integratio
@shakahl
shakahl / psql-with-gzip-cheatsheet.sh
Created January 7, 2025 16:50 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
# This is just a cheat sheet:
# On production
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz
# On local
scp -C production:~/database.sql.gz
dropdb database && createdb database
gunzip < database.sql.gz | psql database
@shakahl
shakahl / rclone-cron.sh
Created January 5, 2025 02:57 — forked from jaredmales/rclone-cron.sh
An rclone backup script for cron
#!/bin/bash
##############################################################################
# An rclone backup script by Jared Males ([email protected])
#
# Copyright (C) 2018 Jared Males <[email protected]>
#
# This script is licensed under the terms of the MIT license.
# https://opensource.org/licenses/MIT
#
@shakahl
shakahl / README.md
Created December 30, 2024 16:12 — forked from stokito/README.md
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