Skip to content

Instantly share code, notes, and snippets.

View ssg's full-sized avatar
馃暐
loading

Sedat Kapano臒lu ssg

馃暐
loading
View GitHub Profile
@ssg
ssg / mysql_wsl.md
Last active June 7, 2025 01:25
Use MySQL with WSL from Windows

Use MySQL with WSL from Windows

WARNING: These instructions override many secure defaults for your MySQL setup by assuming that your WSL instance and your dev machine isn't ever exposed to an external network. Don't use these instructoins in production instances or with databases with sensitive data.

In order to be able to use MySQL running in WSL from Windows you need to perform these steps:

  1. Rename root host
  2. Change root authentication mechanism
@ssg
ssg / server.cfg
Created February 3, 2025 06:58
SokSa CS:GO Server Configuration from 2016 or so
rcon_password "[REDACTED]"
hostname "[SokSa] CS:GO Blues!"
sv_broadcast_ugc_downloads 1
sv_broadcast_ugc_download_progress_interval 5
sv_hibernate_ms "20"
sv_hibernate_ms_vgui "20"
sv_hibernate_postgame_delay "5"
sv_hibernate_punt_tv_clients "0"
sv_hibernate_when_empty 0
host_players_show 2
@ssg
ssg / lx.pas
Created September 6, 2024 21:27
My attempt at an executable dumper for new EXE formats introduced with Windows 3.1, OS/2 etc
{ NE Lister }
uses XTypes,Dos,Objects;
var
dirinfo:SearchRec;
T:TDosStream;
H:TEXEHeader;
w:word;
l:longint;
b:byte;
@ssg
ssg / logon.pas
Created September 6, 2024 21:25
An IBM VM/CMS like LOGON screen for DOS
{$M $4000,0,0}
{$G+}
uses xstr,crt,dos;
const
statusx = 64;
log : array[1..9] of string[20] =
(' GGG GGGG',' GGGGGG G GGG',' GGGGGGG G G',
@ssg
ssg / cit.pas
Created September 6, 2024 21:07
OS/2 to Windows Bitmap converter I coded back in 1994
uses GDrivers,XIO,Objects,XTypes;
var
I,O:TDosStream;
BC:TBMPCore;
BX:TBMPExtra;
Quad:QuadPal;
RGB:PalType;
BS:TBMPSimple;
s,d:FNameStr;
@ssg
ssg / bmpdump.pas
Created September 6, 2024 21:04
A tool I coded back in early 1990's to see the structure of a BMP file
{ BMP Header Dumper }
uses Objects,XIO,XTypes;
(*
type
TBitmapFileHeader = record
bfType: Word;
bfSize: Longint;
bfReserved1: Word;
bfReserved2: Word;
@ssg
ssg / damn.pas
Created September 6, 2024 20:58
My experiment on doing a binary tree based DB system instead of B-trees
{
Name : DAMN! 1.00a
Purpose : Dynamic Architectured data ManagemeNt
Date : 25th May 94
Coder : SSG
Update Info:
------------
25th May 94 - 02:00 - Starting at start...
}
@ssg
ssg / modlist.pas
Created September 6, 2024 20:56
Module lister for FatalVision and other GenSys source code
{ Module Lister 1.00 - (c) 1994 SSG }
uses Debris,Dos,Objects,XIO,XStream;
type
TModuleHeader = record
Name : string[20];
Coder : string[20];
Date : string[11];
Time : string[5];
@ssg
ssg / notes.pas
Created September 6, 2024 20:53
some random coding notes from 1990's
{
topic = Objects in resources
problem = Realizing object
store is easy but the most diffucult part is to load it...
How will I know the object's type I read from stream...
and how will I call the proper object's load constructor????
}
{
@ssg
ssg / xvoc.pas
Created September 3, 2024 20:33
Some VOC processing code I wrote in the 90's
{
Name : X/VOC 1.00a
Purpose : Sound Blaster interface routines
Date : 29th May 94
Time : 19:18
}
unit XVoc;
interface