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/local/bin/python3 | |
### Chris. Fauerbach. | |
### MIT License. | |
### Most flexible callback method signature if you have | |
### required and commonly expected keyword arguments | |
# fn | |
# callback is a required argument | |
# *args is everything optional | |
# counter is a named argument with a default value |
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/bash | |
pipenv --python 3.7 | |
pipenv install metrobus | |
pipenv shell |
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 string | |
import random | |
from random import randint, choice | |
#pip[env] install faker | |
from faker import Faker | |
fake = Faker() | |
DOMAINS = [ |
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
#include <stdio.h> | |
int main(){ | |
unsigned long reference_number = 60000; | |
unsigned long phone_numbers[65535]; | |
printf( "%lu\n", sizeof(phone_numbers)); | |
phone_numbers[reference_number] = 1; | |
if ( phone_numbers[reference_number]==1){ | |
printf("Match on = %lu\n", reference_number); | |
} |
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
$ echo -n “[email protected]” | shasum -a 256 - |
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
$ echo -n “[email protected]” | shasum -a 224 - |
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
$ echo -n “[email protected]” | shasum -a 1 - b6b0756bb8a354ddcecc1f89d88cb69646b0c18e - |
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
func nameExists(name string) { | |
retval boolean := false | |
database, err = sql.Open("postgres", "postgres://chris@localhost") | |
if err != nil { | |
log.Fatal(err) | |
} | |
r, _ := database.Query("SELECT EMAIL FROM BLACKLIST WHERE EMAIL = $1", name) | |
for r.Next() { | |
var curName string |