Skip to content

Instantly share code, notes, and snippets.

View ssg's full-sized avatar
💾
restoring

Sedat Kapanoğlu ssg

💾
restoring
View GitHub Profile
@ssg
ssg / linkedin-ubo-filter.txt
Created November 5, 2023 11:17
Custom uBlock Origin filter for LinkedIn news feed
www.linkedin.com##:xpath(//span[contains(text(), 'Promoted') or contains(text(), 'Suggested') or contains(text(), 'Recommended for you')]/ancestor::div[@class='relative'])
@ssg
ssg / ondir.pas
Created August 25, 2011 20:10
Homebrew floppy changeline detection routines
{ On-line directory v1.00b }
uses debris,XStr,disk,dos,crt;
procedure abort;
begin
writeln(#13#10+'SSG Operation complete');
halt;
end;
var
@ssg
ssg / baston.txt
Last active August 31, 2023 22:28
Altın Disket 94 yarışmasında DOS kategorisi birincisi seçilen Baston isimli dosya yöneticisine yazdığım kullanım kılavuzu
@ssg
ssg / firefox_edge_smooth_scroll.md
Created January 10, 2023 23:06
Edge-like Firefox smooth-scroll settings for mouse wheel

set these in about:config

setting value
general.smoothScroll true
general.smoothScroll.msdPhysics.enabled false
general.smoothScroll.mouseWheel true
general.smoothScroll.mouseWheel.durationMaxMS 400
general.smoothScroll.mouseWheel.durationMinMS 400
general.smoothScroll.pages.durationMaxMS 500
@ssg
ssg / prog.sh
Last active August 31, 2023 21:46
APT style progress bar
#!/bin/bash
# progress bar function
prog() {
local w=80 p=$1; shift
# create a string of spaces, then change them to dots
printf -v dots "%*s" "$(( $p*$w/100 ))" ""; dots=${dots// /\#};
# print those dots on a fixed-width space plus the percentage etc.
printf "\r\e[K|%-*s| %3d %% %s" "$w" "$dots" "$p" "$*";
}
# test loop
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System.Text.RegularExpressions;
namespace RegexVsToCharArray;
[MemoryDiagnoser]
public class MemoryBenchmarker
{
static readonly string[] names = { "Plague Tale", "Callisto Protocol", "God Of War", "Street Fighter 6", "Elden Ring" };

openpgp4fpr:0eca4e59f87479ecc514d5e017c60c1c1381453d

@ssg
ssg / Microsoft.PowerShell_profile.ps1
Last active November 17, 2022 04:42
Git/Mercurial PowerShell prompt.
# ssg's powershell profile - latest version is at https://gist.github.com/ssg/5195412
# only feature is to show hg/git current branch on the prompt
$vcTypes = @(
@{
Name = "hg"
Directory = ".hg"
BranchScript = { Get-Content ".hg\branch" }
},
@ssg
ssg / tdsn.pas
Created August 24, 2010 01:06
Turkish DemoScene News reader
{ - arteffect tdsn reader - (c) 1997 SSG/arteffect - 28th Sep 97 - 15:54 - }
uses
XStream,XColl,XBuf,XMouse,Objects,qText,XStr,Dos;
type
PArticle = ^TArticle;
TArticle = record
@ssg
ssg / esbbs.pas
Created August 24, 2010 00:44
ES BBS Intro
{ ES BBS Intro - 1995 }
{ Binary can be get at http://www.pouet.net/prod.php?which=55705 }
{$M $800,0,655360}
{$N-,E-,F+}
uses Strings,XBuf,XMode;
const