Skip to content

Instantly share code, notes, and snippets.

View ddellspe's full-sized avatar
👋

David Dellsperger ddellspe

👋
View GitHub Profile
import argparse
import re
with open("dictionary.txt", 'r') as f:
WORDS = [word.strip().lower() for word in f.readlines() if len(word.strip()) == 6 and "'" not in word]
def check_wordle(input1, input2):
used_letters = []
if input1[0] != input2[0]:
return False
@ddellspe
ddellspe / dependency-check-maven (5.2.2) issue
Created October 2, 2019 18:40
Issue I ran into with the dependency-check-maven plugin and dependencies with classifiers
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:5.2.2:check (default) on project PROJECT_NAME_REDACTED: One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis:
[ERROR] Failure to find org.jbehave:jbehave-core:zip:4.3.5 in REPO_URL_REDACTED was cached in the local repository, resolution will not be reattempted until the update interval of REPO_ID_REDACTED has elapsed or updates are forced
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.owasp:dependency-check-maven:5.2.2:check (default) on project PROJECT_NAME_REDACTED: One or more exceptions occurred during dependency-check analysis
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycl
public function login(){
if(isset($this->params->query['uip_ticket'])){
$uip_ticket = $this->params->query['uip_ticket'];
$hawkid = "ddellspe";
$url = "https://login.uiowa.edu/uip/checkticket.page?service=https://www.engineering.uiowa.edu/officehours/eps2/users/login&uip_ticket=".$uip_ticket;
$rsp = file_get_contents($url);
$rsp = str_replace("\n",'&',$rsp);
parse_str($rsp);
if(!isset($error)){
if($user = $this->User->find('first', array('conditions' => array('hawkid' => $hawkid)))) {
@ddellspe
ddellspe / times.py
Last active December 20, 2015 14:39
Python code for anomaly decoding Fixed to align with proper rules (and expanded)
import os
import sys
import datetime
import md5
def otpdecrypt(string, key):
if len(string) != len(key):
print "invalid"
return "invalid"
message = ""