Skip to content

Instantly share code, notes, and snippets.

from requests_html import HTMLSession
import requests
from bs4 import BeautifulSoup as bs # importing BeautifulSoup
import json
from IPython import embed
import time
import unicodedata
import re
def slugify(value):
@Timvrakas
Timvrakas / GlacialFlow.py
Created November 28, 2021 08:00
GlacialFlow
'''Highly Redundant AWS Glacier Multipart Uploader'''
from multiprocessing import Pool
import os
import time
import boto3
import botocore.utils as utils
MEGA_BYTES = 1048576
CHUNK_MB = 32
FILE_PATH = "/mnt/c/Backup/Tim S8 Backup 2017-09-08.rar"
@Timvrakas
Timvrakas / test.txt
Created March 28, 2019 04:11
Keybase
### Keybase proof
I hereby claim:
* I am timvrakas on github.
* I am timvrakas (https://keybase.io/timvrakas) on keybase.
* I have a public key ASCxID4K8zJS5rtdzYsvKaJUovHuKponUa77uM4w-QDBVgo
To claim this, I am signing this object:
~/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-g++ -o .pioenvs/test/firmware.elf -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Os -mthumb -Wl,--gc-sections -Wl,--check-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -mcpu=cortex-m4 -Wl,-Tlib/ASF4/src/device/same51j20a_flash.ld .pioenvs/test/libbf5/ASF4/device/startup_same51.o .pioenvs/test/libbf5/ASF4/device/system_same51.o .pioenvs/test/libbf5/ASF4/hal/src/hal_adc_sync.o .pioenvs/test/libbf5/ASF4/hal/src/hal_atomic.o .pioenvs/test/libbf5/ASF4/hal/src/hal_cache.o .pioenvs/test/libbf5/ASF4/hal/src/hal_delay.o .pioenvs/test/libbf5/ASF4/hal/src/hal_ext_irq.o .pioenvs/test/libbf5/ASF4/hal/src/hal_gpio.o .pioenvs/test/libbf5/ASF4/hal/src/hal_i2c_m_sync.o .pioenvs/test/libbf5/ASF4/hal/src/hal_init.o .pioenvs/test/libbf5/ASF4/hal/src/hal_io.o .pioenvs/test/libbf5/ASF4/hal/src/hal_mci_sync.o .pioenvs/test/libbf5/ASF4/hal/src/hal_sleep.o .pioenvs/test/libbf5/ASF4/hal/src/hal_spi_m_sync.o .pioenvs/test/libbf5/ASF4/hal/sr
@Timvrakas
Timvrakas / Juno.py
Created January 10, 2018 00:37
It gets the Juno PDS
import csv
import os
from tqdm import tqdm
import requests
import shutil
def download_file(url, path):
r = requests.get(url, stream=False)
open(path, 'wb').write(r.content)
@Timvrakas
Timvrakas / virtualbox.rules
Last active August 29, 2015 14:17
A udev rule for VirtualBox USB access under crouton.
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/local/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} 126"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} 126"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/local/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/VBoxCreateUSBNode.sh --remove $major $minor"
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
## Filename: /etc/init/crouton.conf
## crouton chroot - Start session
##
## This will start a (crouton) chroot Desktop Environment session