Skip to content

Instantly share code, notes, and snippets.

View sulincix's full-sized avatar
🇹🇷

​​ sulincix

🇹🇷
View GitHub Profile
@sulincix
sulincix / wine-install-etap19.sh
Created October 7, 2021 06:28
Install wine to etap19
#!/bin/bash
# Aşağıdaki betiği indirin ve root ile çalıştırın
cd /tmp
dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
apt-key add winehq.key
echo "deb https://dl.winehq.org/wine-builds/debian/ buster main" > /etc/apt/sources.list.d/wine.list
apt update
apt install --install-recommends winehq-stable
#!/bin/bash
# This script revoke usrmerge.
# You must save your unsaved files before run.
# System or applications may crash during process.
# You must reboot after script finished.
# This script is experimental.
set +e
apt-get install busybox-static -yq || exit 1
cp /bin/busybox /busybox
[[ -d /var/lib/dpkg/info/ ]] || exit 1
@sulincix
sulincix / get-latest-stage3.sh
Last active July 1, 2021 04:52
Get latest gentoo stage 3 tarball url
#!/bin/bash
curl https://www.gentoo.org/downloads/ | sed "s/.*href=\"//g" | sed "s/\".*//g" | grep "tar\." | grep -v "systemd" | grep -v "nomultilib" | grep -v "musl" | grep "amd64-" | grep -v "hardened" | sort -V | head -n 1
@sulincix
sulincix / Makefile
Last active June 12, 2021 17:52
Minimal linux live iso creator
#!/usr/bin/make -f
#
# 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.
#
KERNEL_VERSION=5.11.6
BUSYBOX_VERSION=1.33.0
#!/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"
#!/bin/bash
#Simple ssh based vpn written pure bash (tested on devuan server and sulin client)
#Usage: sshvpn ip-addres [--init]
#If you dont wanna enable root login, You can run manually way init fuction.
set -ex
ip="$1"
# Remote tunnel device config
if echo "$@" | grep -- "--init" ; then
#You must enable this settings in /etc/ssh/sshd_config file:
#PermitTunnel yes
@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