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 binascii import hexlify | |
from ecdsa import SigningKey, NIST256p | |
# Generate the private key and the corresponding public key | |
sk = SigningKey.generate(curve=NIST256p) | |
vk = sk.get_verifying_key() | |
# Write the keys to disk in hex format | |
with open('signing_key.txt', 'wb') as f: | |
f.write(hexlify(sk.to_string())) |
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 brave.core.key.model import EVECredential | |
def delete(delete=False): | |
""" Deletes every key from before the leak from the database.""" | |
query = EveCredential.objects(key__lt=3283828) | |
count = query.count() | |
keys = query.scalar('key') | |
keys = '\n'.join(keys) |
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/env python | |
from binascii import unhexlify | |
from brave.api.client import API | |
from ecdsa import SigningKey, VerifyingKey, NIST256p | |
from flask import Flask, redirect, request, url_for | |
from hashlib import sha256 | |
app = Flask(__name__) | |
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 evesrp.killmail import CRESTMail | |
class SubmittedCRESTZKillmail(CRESTMail): | |
"""Accepts and validates CREST killmail links, but submits them to | |
ZKillboard and substitutes the zKB link in as the canonical link | |
""" | |
def __init__(self, url, **kwargs): | |
# Let CRESTMail validate the CREST link |
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 evesrp.killmail import ZKillmail | |
import gdata.spreadsheets.client | |
from decimal import Decimal | |
# patch the spreadsheet's client to use the public feeds | |
gdata.spreadsheets.client.PRIVATE_WORKSHEETS_URL = \ | |
gdata.spreadsheets.client.WORKSHEETS_URL | |
gdata.spreadsheets.client.WORKSHEETS_URL = ('https://spreadsheets.google.com/' | |
'feeds/worksheets/%s/public/full') |
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
#!/bin/bash | |
#Get the date command | |
#DATE_CMD_LOC=`which date` | |
DATE_CMD_LOC=/bin/date | |
#Build the date command strings | |
START_DATE_CMD="$DATE_CMD_LOC -v+$1d +%Y-%m-%d\ 00:00:01\ -0500" | |
END_DATE_CMD="$DATE_CMD_LOC -v+$1d +%Y-%m-%d\ 23:59:59\ -0500" | |
#echo $START_DATE_CMD | |
#echo $END_DATE_CMD |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by libimobiledevice configure 1.0.3, which was | |
generated by GNU Autoconf 2.65. Invocation command line was | |
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libimobiledevice/1.0.3 --without-swig | |
## --------- ## | |
## Platform. ## |
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
/* | |
In computer science, algorithmic complexity is represented by something called | |
Big-Oh notation. Writing O(1) means a function will take the same amount of | |
time no matter how large the input is, ie: it is constant. O(n) means it will | |
take linear time, for example if you double the amount of input, the time taken | |
to perform that function will also double. Other common complexities are O(n^2), | |
O(log(n)), and O(n log(n)). Note, in most cases the logarithm is log base 2. | |
The following functions basically split a list of numbers in the following way: | |
{0, 1, 2, 3, 4, 5, 6, 7} |
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
#include <string> | |
using namespace std; | |
// So here I'll define a struct that will go in the linked list | |
typedef struct person{ | |
string name; | |
int age; | |
}; |
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
#include <stdio.h> | |
#include <stdbool.h> | |
int addDigitsHex(int num); | |
void recursiveFizzBuzz(int start, int end); | |
int main (int argc, char const *argv[]) { | |
recursiveFizzBuzz(1, 100); | |
return 0; | |
} |
OlderNewer