Skip to content

Instantly share code, notes, and snippets.

View kewldan's full-sized avatar
🏗️
Working 24/7

kewldan kewldan

🏗️
Working 24/7
View GitHub Profile
@kewldan
kewldan / Fibonacci.py
Created October 18, 2024 13:37
Fibonacci numbers functions, such as fib to dec, dec to fib, dec to all possible fibs, explain fib. NON-RECURSIVE ONLY
Fibonacci = str
def fib_by_index(n: int) -> int:
"""
Calculates the n-th Fibonacci number. O(n)
:param n: n-th Fibonacci number.
:return: Fibonacci number VALUE
"""
if n in [0, 1]:
@kewldan
kewldan / squid.conf
Created June 22, 2024 21:50
default squid conf with auth
# WELCOME TO SQUID 6.6
# ----------------------------
#
# This is the documentation for the Squid configuration file.
# This documentation can also be found online at:
# http://www.squid-cache.org/Doc/config/
#
# You may wish to look at the Squid home page and wiki for the
# FAQ and other documentation:
# http://www.squid-cache.org/
@kewldan
kewldan / abuz.js
Last active July 10, 2024 13:22
Homyak Abuz
window.ALLOW = () => {
sessionStorage.__telegram__initParams = JSON.stringify({...JSON.parse(sessionStorage.__telegram__initParams), tgWebAppPlatform: 'android'});
location.reload();
};
window._Click = (count) => {
window._DEBUG && console.log(`Requested count: ${count}`);
const earnPerClick = Number.parseInt(localStorage.__earnPerClick || '1');
window._DEBUG && console.log(`Earn per click: ${earnPerClick}`);
const timestamp = Math.floor(Date.now() / 1000);
@kewldan
kewldan / sources.js
Last active March 29, 2024 18:50
Notcoin abuse
function STOP() {
clearInterval(window.__interval); // Stop the loop
console.log('STOPPED')
}
function __SEND(endpoint, data) {
return new Promise(accept => {
fetch('https://clicker-api.joincommunity.xyz' + endpoint, { //API endpoint
method: 'POST',
body: JSON.stringify(data),
@kewldan
kewldan / config.py
Created September 12, 2023 19:41
Config parser (loader), if config doesn't exists it will copy default_config.ini and require a restart
import configparser
import logging
import os
import shutil
config = {}
if not os.path.exists('config.ini'):
shutil.copyfile('default_config.ini', 'config.ini') # Copy defaults to config.ini
logging.warning(f"Config was created. Restart the program")