View main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View i3p9-filters.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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 |
View app.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=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']) |
View battery-info.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Battery Info | |
# @raycast.mode inline | |
# @raycast.refreshTime 1s | |
# @raycast.packageName Battery Info | |
# |
View createRandFiles.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View CompressionTimer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
View foo.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 )); |
View newreddit.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
._1OVBBWLtHoSPfGCRaPzpTf._3nSp9cdBpqL13CqjdMr2L_ { width: unset } | |
._1BFbVxT49QnrAN3fqGZ1z8._1tvThPWQpORoc2taKebHxs { display: none } |
View download-raycast-script-from-clipboard.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View tesla.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import teslapy | |
import requests | |
from twilio.rest import Client | |
def parse(): | |
parser = argparse.ArgumentParser(description='Tesla Charge Reminder via Twilio') | |
requredParser =parser.add_argument_group('Required arguments') | |
requredParser.add_argument('-e', '--email', help='Email for authentication.',required=True) |
NewerOlder