This file contains hidden or 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 smtplib | |
from email.mime.text import MIMEText | |
from email.mime.multipart import MIMEMultipart | |
smtp_server = input("smtp server") | |
smtp_port = 587 # Usually 587 for TLS, 465 for SSL | |
receiver_email = input("receiver email") | |
sender_email = input("sender email") | |
sender_name = input("sender name") |
This file contains hidden or 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
# Go thru all vercel projects in any of your organizatons and remove the development "target" | |
# from all secrets that have other targets | |
import requests | |
VERCEL_TOKEN = "YOUT_TOKEN" | |
HEADERS = {"Authorization": f"Bearer {VERCEL_TOKEN}"} | |
BASE_API_URL = "https://api.vercel.com" |
This file contains hidden or 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 csv | |
import requests | |
from datetime import datetime | |
def download_and_save_invoice(url, date_str): | |
response = requests.get(url) | |
response.raise_for_status() | |
file_name = f"ride_{date_str}.pdf" |
This file contains hidden or 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/sh | |
# | |
# Simle utility to fake Python's `webbroser` (https://docs.python.org/3/library/webbrowser.html). | |
# Usefull for when no GUI is available. For example inside a Docker container. | |
# | |
# Copy paste this code the terminal: | |
export BROWSER="~/fake-browser.sh:$BROWSER" | |
echo 'echo "Fake browser called with: $@" && touch ~/fake-browser.log && echo "$@" >> ~/fake-browser.log' > ~/fake-browser.sh |
This file contains hidden or 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
COMMUNICATION_SERVICES_CONNECTION_STRING= | |
EMAIL_SENDER= |
This file contains hidden or 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 python3 | |
# Copy minecraft NBT properties from one file into another | |
# Usage: | |
# ./nbt-copy.py <source_file> <destination_file> <property> [properties] | |
# | |
# Requires nbt: | |
# pip install nbt | |
import argparse |
This file contains hidden or 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
// ==UserScript== | |
// @name HP iLo 4 console shortcut | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Adds a quick link to the HTML5 console in HP's iLo UI. Make sure you match the script to your server(s) IPs | |
// @author tofran | |
// @match https://<YPUR_SERVER_IP_HERE>/html/masthead.html | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
const findCacheDir = require('find-cache-dir'); | |
const Cache = require("file-system-cache").default; | |
const cache = Cache({ | |
basePath: findCacheDir({ name: 'storybook' }), | |
ns: 'storybook' | |
}); | |
const cache_data = { | |
success: true, |
This file contains hidden or 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
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA256 | |
I do not have access to my key 😨 80E0 1323 761F 16F4 2DBD 15A4 59BC 6A70 DDCC 3562 . | |
What happened: I was relying on keybase to manage my keys but unfortunately I do not have the password. I thought that having the paper wallet was enough to use keybase - looks like it unlocks the account but not the keys. I may be able to regain access to my password, but not in the near future, since is in my desktop, which I currently have no access. | |
So I present you, to my new keyFA4C 287B CB95 2CE1 5DBB 9D4F 242D 60F3 75F3 12C9 | |
I have also signed a proof @github, you can find it here . Sory for the inconvenience. | |
-----BEGIN PGP SIGNATURE----- | |
iQIcBAEBCAAGBQJa1n0RAAoJECQtYPN18xLJnSwP/R7sS9nkSJpbqUbWosaPhaR4 |
This file contains hidden or 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
// ==UserScript== | |
// @name Album sorter | |
// @namespace tofran.com | |
// @version 0.1 | |
// @description Sort facebook albuns by likes, extremelly buggy, but it works (make sure the album is fully loaded) | |
// @author tofran | |
// @match https://www.facebook.com/*/photos/?tab=album&album_id=* | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
NewerOlder