Skip to content

Instantly share code, notes, and snippets.

View se7enack's full-sized avatar
🏠
Working from home

Stephen Burke se7enack

🏠
Working from home
View GitHub Profile
@se7enack
se7enack / bulk_file_rename.py
Last active December 22, 2024 22:50
rename torrent files
#!/usr/bin/env python3
import os
string = ".720p.WEB.h264-ETHEL"
# Get the current working directory
cwd = os.getcwd()
# Get a list of all the files in the current directory
@se7enack
se7enack / zeroYears.py
Created November 30, 2024 18:16
Doomsday Zero Years
print("\nDoomsday Zero Years")
for x in range(00, 99):
if int(x/4+x)%7 == 0:
print(f"{x:02d}")
print("\n")
import random
import requests
import json
import datetime
rangeStart=1960
rangeEnd=2024
count = 30
for i in range(count):
import requests
access_token_file = "/Users/sburke/.ghp"
repo_name = "test123"
base_url = "https://api.github.com"
def create_repo(access_token, repo_name, repo_descr=None):
url = f"{base_url}/user/repos"
@se7enack
se7enack / crypto.go
Last active November 18, 2024 15:18
package main
import (
"bufio"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"sort"
@se7enack
se7enack / main.go
Last active November 14, 2024 23:24
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
var url = "https://ipv4ip.com/?format=json"
python3 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
@se7enack
se7enack / Keyboard-Interrupt.py
Last active October 20, 2024 18:51
Keyboard Interrupt and threading
#!/usr/bin/env python3
import time
import threading as thr
count = 5
def sleeping():
countdown = count
@se7enack
se7enack / .zshrc
Created October 18, 2024 16:14
test bash scripts in linux rather than mac by adding to bashrc of zshrc and typing 'linux'
alias linux='docker run -ti -w /opt -v .:/opt ubuntu bash'
@se7enack
se7enack / keyboard.py
Created October 10, 2024 00:52
on-screen keyboard
#!/usr/bin/env python3
import time
import random
from pywebio import start_server, config
from pywebio.output import *
from pywebio.session import run_js, local as session_local
from stuff import WORDLIST