Skip to content

Instantly share code, notes, and snippets.

View dav-s's full-sized avatar

Davis Robertson dav-s

View GitHub Profile
@dav-s
dav-s / notCmdv2.cpp
Last active August 29, 2015 13:56
notCmdPhoenix or notCmdv2. This is a successor to my former cmd-like-exe: notCmd.exe.
#include <iostream>
#include <stdlib.h>
#include <direct.h>
using namespace std;
int main()
{
string comm = "";
while(true){
@dav-s
dav-s / dank.bat
Created November 3, 2014 15:34
Dank-Easy CMD for Windows
@echo OFF
cd %UserProfile%\Documents\
:loop
set /p cmd=%CD%^>
%cmd%
goto loop
@dav-s
dav-s / voter.py
Last active August 29, 2015 14:09
Vote away plebs
#This is for python 2.7... haven't tested in 3
import httplib
burl = "surveygizmo.com"
conn = httplib.HTTPConnection(burl)
while True:
conn.request("GET", "/s3/polljs/1884690-MNWLMHGHU97FS5A35VC581ZMTGGPZE/")
getreq = conn.getresponse()
gresp = getreq.read()
@dav-s
dav-s / run.py
Last active February 13, 2018 05:41
pd
import httplib
import time
p = "8438346"
b = "0"
a = "38392389,"
o = ""
va = "0"
cookie = "0"
url = "http%3A//usatodayhss.com/2014/poll-which-high-school-in-the-greater-houston-area-has-the-most-spirit-this-week-7"
### Keybase proof
I hereby claim:
* I am EpicDavi on github.
* I am daviskr (https://keybase.io/daviskr) on keybase.
* I have a public key whose fingerprint is EF6F DAA2 9007 734C 7624 7517 672E CCC2 45B6 577E
To claim this, I am signing this object:
@dav-s
dav-s / envars.bat
Created March 18, 2015 16:22
Envars
rundll32 sysdm.cpl,EditEnvironmentVariables
@dav-s
dav-s / MinesweeperPlayer.java
Created April 23, 2015 02:41
A small little minesweeper implementation in Java.
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
/**
* Created by Davis Robertson on 4/22/15
*
* @author Davis Robertson
*/
public class MinesweeperPlayer {
@dav-s
dav-s / dankvote.py
Last active September 19, 2015 20:53
import httplib
import time
burl = "www.surveygizmo.com"
conn = httplib.HTTPConnection(burl)
while True:
conn.request("GET", "/s3/polljs/2337483-DJB6S4HDQM9NATJC8E99C482B82PRZ?cookie=null")
getreq = conn.getresponse()
gresp = getreq.read()
@dav-s
dav-s / memevote.py
Last active September 21, 2015 03:32
import httplib
import time
memes = 0
burl = "www.surveygizmo.com"
conn = httplib.HTTPConnection(burl)
while True:
try:
# Davis Robertson
import random
# 0 Spades
# 1 Clubs
# 2 Hearts
# 3 Diamonds
# Used if cards need to be represented as strings