Skip to content

Instantly share code, notes, and snippets.

View akasakaid's full-sized avatar
😈

Fawwaz Thoerif akasakaid

😈
View GitHub Profile
sudo apt install net-tools -y
ufw allow 8080
curl https://network3.io/ubuntu-node-v2.1.1.tar.gz -o network3.tar.gz
tar -xvf network3.tar.gz
cd ubuntu-node
sudo bash manager.sh up
server_ip=$(hostname -I | awk '{print $1}')
api_output=$(sudo bash manager.sh key)
api_key=$(echo "$api_output" | awk '/System architecture is x86_64 \(64-bit\)/ {found=1; next} found')
echo -e "\nAPI KEY INFO"
@akasakaid
akasakaid / WebshareProxyFormatter.md
Last active October 24, 2024 07:58
Webshare Proxy Formatter

Webshare Proxy Formatter

So this program serves to reformat the proxy from the webshare website (proxy service provider). For this proxy format, it can be used in libraries such as httpx and requests because it has the following structure

type://user:password@host:port

How to use

@akasakaid
akasakaid / django-database-standalone.py
Created August 14, 2024 05:38 — forked from mw3i/django-database-standalone.py
Truly Standalone Django-ORM Wrapper
'''
Proof of Concept:
Django devs built an ORM that seems way more straightforward than many existing tools. This class lets you leverage the django-orm without any project settings or other aspects of a django setup.
There are probably weak points and functionality missing, but it seems like a relatively intuitive proof of concept
'''
import os
import django
from django.conf import settings
A320M-S2H
A320M-S2H-CF
A55M-DGS
A58MD
A78XA-A2T
A7DA 3 series
A88X-PLUS
AB350 Gaming K4
AO533
ASUS MB
import os
import sys
import json
import uuid
import random
import requests
from datetime import datetime
from bot import Gamee
from telethon.sync import TelegramClient # type: ignore
from telethon.tl.types import InputBotAppShortName # type: ignore
import * as readline from 'node:readline/promises'
import { exit, stdin as input, stdout as output,cwd } from 'node:process';
import fs from 'fs';
import { getFullnodeUrl, SuiClient } from '@mysten/sui.js/client';
import { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519';
import { TransactionBlock } from '@mysten/sui.js/transactions';
import { SuiKit } from '@scallop-io/sui-kit';
// import '@scallop-io/sui-kit'
import delay from 'delay'
{
"Xiaomi Poco C61": "SDK 34",
"Xiaomi Poco X5": "SDK 32",
"Xiaomi Redmi 9 Activ": "SDK 29",
"Xiaomi Redmi Note 9": "SDK 29",
"Xiaomi Mi A3": "SDK 28",
"Xiaomi Mi 6 Plus": "SDK 23",
"Xiaomi Redmi 3 Pro": "SDK 22",
"Xiaomi Poco M6 4G": "SDK 34",
"Xiaomi 14 Civi": "SDK 34",
import sys
import os
import json
import hashlib
import hmac
import time
import requests
import random
from urllib.parse import unquote
from phonenumbers import is_valid_number as valid_number, parse as pp
@akasakaid
akasakaid / coutdown.py
Created May 2, 2024 14:55
countdown with python
def countdown(t):
while t:
menit,detik = divmod(t,60)
jam,menit = divmod(menit,60)
jam = str(jam).zfill(2)
menit = str(menit).zfill(2)
detik = str(menit).zfill(2)
print(f'waiting until {jam}:{menit}:{detik} ',flush=True,end='\r')
t -= 1
time.sleep(1)
#!/bin/bash
INSTALLATION_DIR=$(dirname "$(realpath "$0")")
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove -qy $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc