Skip to content

Instantly share code, notes, and snippets.

View sulincix's full-sized avatar
🇹🇷

​​ sulincix

🇹🇷
View GitHub Profile
@sulincix
sulincix / 31.txt
Last active April 26, 2025 13:31
31 türleri
dertlendinmi kafa dağıtma 31i
sıkılınca sıkıldım 31i
mutlu olunca keyif 31i
nedensiz çekilen 31
azınca çekilen 31
canın istemiyo olsa bile çekilen 31
günaydın 31i
iyi geceler 31i
gece uyandım 31i
hasta olunca çekilen 31
@sulincix
sulincix / apple-blocker.js
Created March 12, 2025 10:03
Apple Blocker for Websites
// Apple garbage blocker
function isApple() {
return /iPhone/i.test(navigator.userAgent)
|| /Macintosh/i.test(navigator.userAgent)
|| /Mac OS X/i.test(navigator.userAgent)
|| /iPad/i.test(navigator.userAgent);
}
if(isApple()){
document.body.innerHTML = "<h1 style='background: black; color:white;'>Apple Devices Are Not Allowed!</h1>"
@sulincix
sulincix / offline-update.sh
Last active February 5, 2025 13:35
debian offline update
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=1
export TERM=linux
if [ $$ -ne 1 ] ; then
set -e
apt update
apt install kexec-tools -yq
apt full-upgrade -yq --download-only
sync
@sulincix
sulincix / parse.py
Last active February 14, 2025 14:40
Unsafe Username Lists
import subprocess
import json
users = []
with open("spammer.txt", "r") as f:
users += f.read().split("\n")
process = subprocess.Popen(
["journalctl", "-f"],
stdout=subprocess.PIPE,
@sulincix
sulincix / parse,sh
Created December 21, 2024 19:06
posix shell ini parser without command
#!/bin/sh
parse(){
section="$1"
value="$2"
found="false"
while read line ; do
case $line in
[*)
if [ "$line" == "[$section]" ] ; then
found="true"
@sulincix
sulincix / jq-lite.sh
Last active December 21, 2024 01:42
json formater in posix shell and just sed command
#!/bin/sh
i=0
sed \
"
s/^ *//g
s/^\t*//g
s/,/,\n/g
s/{/\n&\n/g
s/}/\n&/g
s/\[/&\n/g
@sulincix
sulincix / glade_loader.py
Created December 2, 2024 12:56
Automatically define all glade objects by id
import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
import xml.etree.ElementTree as ET
def glade_loader(ctx, glade):
builder = Gtk.Builder()
builder.add_from_file(glade)
@sulincix
sulincix / fslist.c
Created December 1, 2024 00:33
List All Available filesystems in C
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char** list_filesystems(size_t* len){
char buffer[1024];
FILE* fs = fopen("/proc/filesystems","r");
if(fs == NULL){
perror("Failed to open file");
}
@sulincix
sulincix / flathub-api.md
Last active January 4, 2025 16:32
flathub api v2

Flathub v2 API Documentation

Base URL: https://flathub.org/api/v2

Endpoints

Developers

  • GET /developer
    Returns a list of developers.
@sulincix
sulincix / update.sh
Created September 25, 2024 13:55
Debian update firmware
#!/bin/bash
if [[ $UID -ne 0 ]] ; then
echo "You must be root!"
exit 1
fi
apt update
apt install git make rdfind -yq
if [[ ! -d firmware ]] ; then
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git firmware --depth=1
fi