Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View quasarj's full-sized avatar
💭
SEND HALP

Quasar Jarosz quasarj

💭
SEND HALP
View GitHub Profile
{
"basics": {
"name": "Quasar Jarosz",
"label": "Software Engineer",
"picture": "",
"email": "quasar@ja.rosz.org",
"phone": "(501) 425-5144",
"website": "http://quasarj.com",
"summary": "I am a technology enthusiast with experience in many areas of software and web development. I have a deep understanding and interest in technology, open standards, OOP and other programming paradigms. I'm a fast learner and enjoy exploring new languages, tools, and frameworks. I have worked in a number of different industries including telecommunications, courts and healthcare.",
"location": {
import csv # Used for reading from CSV files
import requests # Used for submitting to the webserver for grading
def process_row(row):
"""You must implement this function!"""
print(row)
return row
@quasarj
quasarj / reddit_reply.py
Created April 19, 2018 01:47
reddit reply bot
import praw
SUBREDDIT_NAME = 'requestabot'
KEYWORD_RESPONSE_MAP = {
'hunter2': 'All I see is *******',
'lizard': 'There is a lizard in here!',
}
USERNAME = ''
PASSWORD = ''
@quasarj
quasarj / keybase.md
Created October 5, 2016 21:40
keybase.md

Keybase proof

I hereby claim:

  • I am quasarj on github.
  • I am quasar (https://keybase.io/quasar) on keybase.
  • I have a public key ASD5PSG1ZepJhj3VEO7co2UJFXY1v5-BXmzehdmkDUUW8go

To claim this, I am signing this object:

line_no,character
1,E
2,x
3,c
4,e
5,l
6,l
7,e
8,n
9,t
A doctor, an architect, and a computer scientist were arguing
about whose profession was the oldest. In the course of their
arguments, they got all the way back to the Garden of Eden, whereupon
the doctor said, "The medical profession is clearly the oldest, because
Eve was made from Adam's rib, as the story goes, and that was a simply
incredible surgical feat."
The architect did not agree. He said, "But if you look at the
Garden itself, in the beginning there was chaos and void, and out of
that, the Garden and the world were created. So God must have been an
architect."
environs = {
'fc32c808-7a57-4e86-b9fd-e001ccfa6554': {'name': 'OAS-1',
'ip': '10.72.107.7',
'port': '22',
'user': 'josh'},
'acc758e3-2e14-4848-b767-fedaa4c9bfb7': {'name': 'OAS-1',
'ip': '10.72.107.7',
'port': '22',
'user': 'josh'},
'26ba4804-ed21-4099-81fd-6a7ac77c0bbb': {'name': 'OAS-1',
@quasarj
quasarj / cProfile-results.txt
Created October 29, 2015 02:21
dict vs list test, for generating IDs
13995651 function calls (13995631 primitive calls) in 31.438 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
5 0.000 0.000 0.000 0.000 <frozen importlib._bootstrap>:1000(__init__)
2 0.000 0.000 0.000 0.000 <frozen importlib._bootstrap>:1019(init_module_attrs)
2 0.000 0.000 0.000 0.000 <frozen importlib._bootstrap>:1099(create)
2/1 0.000 0.000 0.004 0.004 <frozen importlib._bootstrap>:1122(_exec)
3 0.000 0.000 0.002 0.001 <frozen importlib._bootstrap>:1156(_load_backward_compatible)
@quasarj
quasarj / python_2.7.9_suds_unverified.patch
Last active February 28, 2018 18:50
Patch to allow SUDS to work with invalid (or self-signed) SSL certs, on python 2.7.9+
--- /usr/lib/python2.7/site-packages/suds/transport/http.py 2015-06-09 17:40:15.000000000 -0500
+++ http.py 2015-06-09 17:42:05.953929465 -0500
@@ -19,6 +19,7 @@
"""
import urllib2 as u2
+import ssl
import base64
import socket
from suds.transport import *
def axe_quotes(line):
if '"' not in line:
return line
brackets = 0
out = ""
for c in line:
if c == '<':
brackets += 1
elif c == '>':