Skip to content

Instantly share code, notes, and snippets.

View sulincix's full-sized avatar
🇹🇷

​​ sulincix

🇹🇷
View GitHub Profile
@BjoernSchilberg
BjoernSchilberg / create_wave_file.c
Created December 23, 2023 19:36
How to Write a Wav File in C
// main.c
// https://www.youtube.com/watch?v=8nOi-0kBv2Y
// gcc create_wave_file.c -o create_wave_file -lm
// or clang create_wave_file.c -lm
#include <math.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
@IAMACAR10
IAMACAR10 / player.gd
Last active March 3, 2025 04:28
Godot First Person Character Controller
extends KinematicBody
onready var cam = $Camera
var speed = 5
var moveX = 0
var moveZ = 0
var gravity = 9.81
#!/usr/bin/python3
from pyrogram import Client, filters
import subprocess
import time
import os
bindir=os.getcwd()
# Get hash from here https://my.telegram.org/apps
app = Client("shellbot",api_id=123456,
api_hash="your telegram app hash")
admin_id="1234234"
@sulincix
sulincix / init
Last active November 20, 2022 19:44
/sbin/init
#!/bin/bash
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
#
# Simple init script written bash
# You can edit this file
#

Usb autosuspend disable:

echo -1 > /sys/module/usbcore/parameters/autosuspend

Fix USB cable is bad or device descriptor issue

echo Y | tee /sys/module/usbcore/parameters/old_scheme_first

Wifi power save mode disable