Skip to content

Instantly share code, notes, and snippets.

import os
import subprocess
import sys
def get_size(start_path):
total_size = 0
for dirpath, dirnames, filenames in os.walk(start_path):
for f in filenames:
fp = os.path.join(dirpath, f)
# skip if it is symbolic link
@n2nco
n2nco / twitter.py
Last active June 3, 2023 17:33
Webdrive twitter notifications visually - Reply w text & media files - Uses OCR, LLM text structuring & PyAutoGUI
from PIL import Image, ImageEnhance, ImageFilter
from selenium import webdriver
import time
import json
import pytesseract
from pytesseract import Output
import pyautogui
from Foundation import NSData
from AppKit import NSPasteboardTypePNG, NSPasteboardTypeTIFF, NSPasteboard
import subprocess
@n2nco
n2nco / gist:127667aed48820780ff62017d0171e6b
Last active May 16, 2023 18:08
0x Limit Order - Create a limit order & broadcast it to Arbitrum
import { ethers } from 'ethers';
import fetch from "node-fetch";
import * as utils from "@0x/protocol-utils";
import { providerUtils, BigNumber } from '@0x/utils';
import { ContractWrappers } from '@0x/contract-wrappers';
import * as contractAddresses from "@0x/contract-addresses";
import Web3 from 'web3';
const web3 = new Web3(process.env.RPC_URL);
import dotenv from 'dotenv';
@n2nco
n2nco / gist:eabb6765ffbe895cfa8e2449fce40e2d
Created May 6, 2023 04:50
Instadapp - DSA-Uniswap-Test
const express = require('express');
const cors = require('cors');
const axios = require('axios');
const app = express();
app.use(cors());
app.use(express.json());
console.log( 'running server')
app.get('/api', async (req, res) => {
@n2nco
n2nco / skipAds_bypassCaptcha.py
Created March 6, 2023 18:14
Skip Spotify Ads & Bypass captcha
import pyautogui
from functools import partial
import mss
import webbrowser
import time
screen_size = pyautogui.size()
def clicked_captchas (btn1, btn2, input):
@n2nco
n2nco / index.html
Created September 11, 2022 22:33
Randomized Colorized Letter
<div id="page"></div>
04028789a5eea795c7b61b42ef2825876914cc9d46797520a332ac6c43b61fd4f6d99e29c952f4e2e05f31d1360ca2aae848a111c5c4f963769bd905514bf37898;moskalyk