Skip to content

Instantly share code, notes, and snippets.

#NoEnv
SendMode Event
/*
v := ComObjCreate("SAPI.SpVoice")
global n := 0
*/
DllCall("dwmapi\DwmEnableComposition", "uint", false)
@kizernis
kizernis / hunt.ahk
Last active September 2, 2018 12:22
#NoEnv
SendMode Input
#Persistent
CoordMode Pixel
SetControlDelay -1
global nDeadBodies := 0
#include <windows.h>
#include <commctrl.h>
#include <shlobj.h>
#include "resource.h"
#include "md5.h"
#ifndef _DEBUG
#pragma comment(linker, "/entry:_WinMain /nodefaultlib /subsystem:windows /filealign:512 /stack:65536,65536")
#pragma comment(linker, "/merge:.data=.text /merge:.rdata=.text /section:.text,ewrx /ignore:4078")
#endif
#include <winsock2.h>
#include "resource.h"
#ifndef _DEBUG
#pragma comment(linker, "/entry:_WinMain /nodefaultlib /subsystem:windows /filealign:512 /stack:65536,65536")
#pragma comment(linker, "/merge:.data=.text /merge:.rdata=.text /section:.text,ewrx /ignore:4078")
#endif
#define OPTION_BOTH 1
#define OPTION_MODEM 2
#include <stdio.h>
#if defined(__unix__) || defined(__unix)
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <malloc.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/tcp.h>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body, table, tr, td, input, textarea { font-family: Verdana; font-size: 12px; }
fieldset { padding: 10px; }
a { color: blue; outline: 0; }
.adminlink { color: red; text-decoration: none; }
.adminlink:hover { text-shadow: red 0 0 5px; }
.thumb { position: relative; display: inline-block; }
// ==UserScript==
// @name nex
// @namespace
// @version 1.0
// @description
// @author nex
// @match *://*.diep.io/*
// ==/UserScript==
var snd_beep = new Audio("data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgAI0wWs/ItAAAGDgYtAgAyN+QWaAAihwMWm4G8QQRDiMcCBcH3Cc+CDv/7xA4Tvh9Rz/y8QADBwMWgQAZG/ILNAARQ4GLTcDeIIIhxGOBAuD7hOfBB3/94gcJ3w+o5/5eIAIAAAVwWgQAVQ2ORaIQwEMAJiDg95G4nQL7mQVWI6GwRcfsZAcsKkJvxgxEjzFUgfHoSQ9Qq7KNwqHwuB13MA4a1q/DmBrHgPcmjiGoh//EwC5nGPEmS4RcfkVKOhJf+WOgoxJclFz3kgn//dBA+ya1GhurNn8zb//9NNutNuhz31f////9vt///z+IdAEAAAK4LQIAKobHItEIYCGAExBwe8jcToF9zIKrEdDYIuP2MgOWFSE34wYiR5iqQPj0JIeoVdlG4VD4XA67mAcNa1fhzA1jwHuTRxDUQ//iYBczjHiTJcIuPyKlHQkv/LHQUYkuSi57yQT//uggfZNajQ3Vmz+Zt//+mm3Wm3Q576v////+32///5/EOgAAADVghQAAAAA//uQZAUAB1WI0PZugAAAAAoQwAAAEk3nRd2qAAAAACiDgAAAAAAABCqEEQRLCgwpBGMlJkIz8jKhGvj4k6jzRnqasNKIeoh5gI7BJaC1A1AoNBjJgbyApVS4IDlZgDU5WUAxEKDNmmALHzZp0Fkz1FMTmGFl1FMEyodIavcCAUHDWrKAIA4aa2oCgILEBupZgHvAhEBcZ6joQBxS76AgccrFlczBvKLC0QI2cBoCFvfTDAo7eoOQInqDPBtvrDEZ
import requests
from bs4 import BeautifulSoup
import time
import random
url = 'https://www.avvo.com/search/lawyer_search?utf8=%E2%9C%93&q=Criminal+defense&loc=Bethesda%2C+MD&page={page_num}&sort=client_rating'
user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
start_page = 1
end_page = 67
# Get data from a complex webapp using a headless browser
settings = {}
with open('settings_scrap.txt') as f:
lines = f.read().splitlines()
for line in lines[1:9+1]:
x, y = line.split('=', 1)
settings[x.strip().replace(' ', '')] = y.strip()
settings = {}
with open('settings_csv.txt') as f:
lines = f.read().splitlines()
for line in lines[1:7+1]:
x, y = line.split('=', 1)
settings[x.strip().replace(' ', '')] = y.strip()
settings['firefox'] = 'true' == settings['firefox'].lower()
settings['headless'] = 'true' == settings['headless'].lower()