Discover gists
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
#encoding = utf-8 | |
import re | |
import base64 | |
from hashlib import md5 | |
headMap = [21, 4, 9, 26, 16, 20, 27, 30] | |
middleMap = [212, 45, 80, 68, 195, 163, 163, 203, 157, 220, 254, 91, 204, 79, 104, 6] | |
tailMap = [18, 11, 3, 2, 1, 7, 6, 25] | |
def sign(data): |
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/python | |
"""Script to fetch email from outlook.""" | |
import win32com.client | |
def extract(count): | |
"""Get emails from outlook.""" | |
items = [] | |
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI") | |
inbox = outlook.GetDefaultFolder(6) # "6" refers to the inbox |
This gist collects changes to the official docker build of tabbyAPI and some additional files used to create a derived build suitable for RunPod.
- The Royal Lab's tabbyAPI GitHub
- Docker Hub repo with custom RunPod images
- tabbyAPI RunPod template for CUDA 12.1, derived from nvidia/cuda:12.1.0-runtime-ubuntu22.04
- tabbyAPI RunPod template for CUDA 12.2, derived from nvidia/cuda:12.2.2-runtime-ubuntu22.04
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
! model | |
pc101 Generic 101-key PC | |
pc102 Generic 102-key (Intl) PC | |
pc104 Generic 104-key PC | |
pc105 Generic 105-key (Intl) PC | |
dell101 Dell 101-key PC | |
latitude Dell Latitude series laptop | |
dellm65 Dell Precision M65 | |
everex Everex STEPnote | |
flexpro Keytronic FlexPro |
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
@tool | |
class_name EditorIconTexture | |
extends AtlasTexture | |
var icon :String: | |
set(val): | |
icon = val | |
_update_icon.call_deferred() | |
func _init(): |
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
from requests.api import request | |
from Crypto.Cipher import PKCS1_OAEP, PKCS1_v1_5 | |
from Crypto.Cipher import AES | |
from Crypto.PublicKey import RSA | |
from Crypto.Util.Padding import pad | |
from Crypto.Util.number import bytes_to_long | |
import base64 | |
import requests | |
import string | |
import random |
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
Maintainers: | |
opna2608: furnace, furnace, furnace, furnace |
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
// XORCipher - Super simple encryption using XOR and Base64 | |
// | |
// Depends on [Underscore](http://underscorejs.org/). | |
// | |
// As a warning, this is **not** a secure encryption algorythm. It uses a very | |
// simplistic keystore and will be easy to crack. | |
// | |
// The Base64 algorythm is a modification of the one used in phpjs.org | |
// * http://phpjs.org/functions/base64_encode/ | |
// * http://phpjs.org/functions/base64_decode/ |
NewerOlder