Skip to content

Instantly share code, notes, and snippets.

View i3p9's full-sized avatar
🐢
speed

Fahim i3p9

🐢
speed
View GitHub Profile
This file has been truncated, but you can view the full file.
https://roosterteeth.com/watch/stay-zen-2021-36
https://roosterteeth.com/watch/stay-zen-2021-stayzen01202021
https://roosterteeth.com/watch/stay-zen-2021-02032021
https://roosterteeth.com/watch/stay-zen-2021-02102021
https://roosterteeth.com/watch/stay-zen-2021-02242021
https://roosterteeth.com/watch/stay-zen-2021-03042021
https://roosterteeth.com/watch/stay-zen-2021-03102021
https://roosterteeth.com/watch/stay-zen-2021-03172021
https://roosterteeth.com/watch/stay-zen-2021-04072021
https://roosterteeth.com/watch/stay-zen-2021-04222021
@i3p9
i3p9 / main.py
Last active December 7, 2022 22:38
imdb
import sys
from bs4 import BeautifulSoup
import requests
import re
from dateutil.parser import parse
"""
what it does?
- parses all movies and their data in a list-page
- paginates to last page automatically while keeping track of their cookie and keys
@i3p9
i3p9 / i3p9-filters.txt
Created May 11, 2022 08:08
My uBlock Custom Filters
! 2021-12-01 https://www.reddit.com
www.reddit.com##.premium-banner
! 2021-12-05 https://forum.xda-developers.com
forum.xda-developers.com##.uix_sidebarNav
! 2021-12-07 https://trakt.tv
||trakt.tv/assets/ab69ec/bg-d59649d3b306288c91e8cba72140a81fb63e2721d6b7da7c5032e338215e92aa.jpg$image
! 2022-02-17 https://letterboxd.com
@i3p9
i3p9 / app.py
Created May 6, 2022 21:19
Flask: Get up and running with GET/POST
=import json
from flask import Flask
from flask import request
from responses import get_cat_fact, get_activity
app = Flask(__name__)
# EXAMPLE REQUEST: GET 127.0.0.1:5000/
@app.route('/getname', methods=['GET'])
@i3p9
i3p9 / battery-info.sh
Last active March 13, 2022 11:24
Raycast Script to get Battery percentage, time remaining to deplete/charge up, charging wattage, cycle etc.
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Battery Info
# @raycast.mode inline
# @raycast.refreshTime 1s
# @raycast.packageName Battery Info
#
#!/usr/bin/env bash
MIN=700000 #700KB
MAX=15000000 #15MB Probably
lol() {
for n in {0..100}
do
#f=`mktemp XXXXX` #if you want true random filenames
f="000"$n
@i3p9
i3p9 / CompressionTimer.py
Created November 17, 2021 19:30
Python Compression Timer in SS
import zipfile, time
def DeflateZip(locfile,loczipDef):
start = time.time()
zipDef = zipfile.ZipFile(loczipDef, "w", zipfile.ZIP_DEFLATED)
zipDef.write (locfile)
zipDef.close()
print(f'Deflate: {time.time() - start}')
def Bzip2Zip(locfile,loczipBz):
@i3p9
i3p9 / foo.sh
Last active October 27, 2021 23:00
generate range and array in bash, pass it as a argument in python as list
#!/usr/bin/env bash
ran=$RANDOM
#rng=$(( $RANDOM % 1000 ));
#Better method to get the range:
rng=$(jot -r 1 10000 10001) #One numner between 10000 and 10001
LIST=""
for i in $(seq 1 $rng);
do
num=$(( $RANDOM % 100 ));
@i3p9
i3p9 / newreddit.css
Created October 3, 2021 18:06
RES Hide Sidebar Snippet for Reddit
._1OVBBWLtHoSPfGCRaPzpTf._3nSp9cdBpqL13CqjdMr2L_ { width: unset }
._1BFbVxT49QnrAN3fqGZ1z8._1tvThPWQpORoc2taKebHxs { display: none }
#!/usr/bin/env bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Download Raycast Script
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ⬇️
# @raycast.packageName downloads script from clipboard