Skip to content

Instantly share code, notes, and snippets.

View cryptomail's full-sized avatar
🎯
Focusing

Joshua Teitelbaum cryptomail

🎯
Focusing
View GitHub Profile
@cryptomail
cryptomail / connect4.py
Last active September 3, 2023 03:46
play connect 4 with python (I think this works)
class Connect4:
COLOR_BLUE = 1
COLOR_RED = 2
EMPTY = -1
NORTH = 1
SOUTH = 2
EAST = 3
WEST = 4
NORTH_EAST = 5
NORTH_WEST = 6
@cryptomail
cryptomail / test_create_user_and_ticket.py
Last active August 18, 2023 23:55
Using ZenPy to pre-create users and then submit ticket with those users.
# Zenpy accepts an API token
# Or a password
import pdb;
import sys;
#os.environ["ZENPY_FORCE_NETLOC"]
creds = {
'email' : 'email',
'password' : 'password',
#/bin/sh
# Agent Group Extractor
# 05/15/2023
# Joshua Teitelbaum, Zendesk Inc.
# This could employ undocumented features and is subject to change or break and is not officially supported.
#
# 1. Ensure your API is available through password protection
# 2. in the shell, run the following commands:
# export ZENDESK_USER_EMAIL=youradmin@email.address
# export ZENDESK_USER_PASSWORD=youradminsecretpassword
@decalpack={
"a" => 6,
"b" => 3,
"c" => 3,
"d" => 3,
"e" => 3,
"f" => 6,
"g" => 3,
"h" => 3,
"i" => 6,
### Keybase proof
I hereby claim:
* I am cryptomail on github.
* I am cryptomail (https://keybase.io/cryptomail) on keybase.
* I have a public key whose fingerprint is 9121 888C 858B 4201 078C EE94 9902 380A ED01 EDED
To claim this, I am signing this object: