Skip to content

Instantly share code, notes, and snippets.

View shredding's full-sized avatar

chp shredding

  • Berlin
View GitHub Profile
import { abacus, ethers } from "hardhat";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { Contract } from "ethers";
import { utils as aUtils } from "@abacus-network/utils";
import { expect } from "chai";
const chainADomain = 1000;
const chainBDomain = 2000;
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;
import {Router} from "@abacus-network/app/contracts/Router.sol";
contract Playground is Router {
constructor(address abacusConnectionManager_) {
__AbacusConnectionClient_initialize(abacusConnectionManager_);
}
@shredding
shredding / run.py
Last active May 16, 2021 11:14
Get notified when there are new slots availale at the IMPFZENTREN in BERLIN
import os
from datetime import datetime
from time import sleep
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException, ElementClickInterceptedException
"""
Installation requirements:
from stellar_sdk import TransactionBuilder, Server, Network
import requests
server = Server(horizon_url='https://horizon.stellar.org')
builder = TransactionBuilder(server.load_account(<ADD YOUR PUBLIC_KEY>), Network.PUBLIC_NETWORK_PASSPHRASE)
tx_xdr = builder.append_manage_buy_offer_op(
selling_code='USD',
selling_issuer='GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX',
buying_code='TSLA',
@api_view(["POST"])
@permission_classes([HasAPIKey])
def event(request, email, event: str):
params = request.data if isinstance(request.data, dict) else {}
notify_user_by_email(email, params['message'])
from stellar_sdk import TransactionBuilder, Server, Network
import requests
STELLAR_TOML = 'https://api.dstoq.com/.well-known/stellar.toml'
PUBLIC_KEY = 'your-public-key'
APPROVAL_SERVER = 'https://api.dstoq.com/core/sign/tx'
server = Server(horizon_url='https://horizon.stellar.org')
builder = TransactionBuilder(server.load_account(PUBLIC_KEY), Network.PUBLIC_NETWORK_PASSPHRASE)

Keybase proof

I hereby claim:

To claim this, I am signing this object:

const ripple = require('ripple-keypairs')
const elitistPart = 'chp'
while (true) {
const seed = ripple.generateSeed()
const keypair = ripple.deriveKeypair(seed)
const address = ripple.deriveAddress(keypair.publicKey)
if (address.startsWith('r' + elitistPart)) {
class Lead(models.Model):
# basic lead gen stuff goes here
class Step(Default):
lead = models.ForeignKey(Lead)
active = models.BooleanField(default=False)
comment = models.TextField(blank=True)
def save(self, force_insert=False, force_update=False, using=None, update_fields=None):
from threading import Thread
import time
def foo():
while True:
time.sleep(1)
print('foo')
thread = Thread(target=foo)
thread.start()