View Dockerfile
FROM python:3.7-slim-buster | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir -p /src | |
WORKDIR /src | |
ENTRYPOINT ["/bin/bash"] |
View docker-compose.yml
version: '3.7' | |
services: | |
web: | |
build: . | |
image: recon-ng | |
container_name: recon-ng | |
ports: | |
- '5000:5000' |
View introspection-query.graphql
query IntrospectionQuery { | |
__schema { | |
queryType { name } | |
mutationType { name } | |
subscriptionType { name } | |
types { | |
...FullType | |
} | |
directives { |
View git-shallower
#!/bin/bash | |
# Basic script to update a git repository without any history or excess data in .git. | |
# Parses the url from .git/config, downloads latest version, and purges everything in .git/ except the config file. | |
# Limitations: | |
# * Only works with the master branch. | |
# * Doesn't account for local virtual environments. | |
# * Doesn't allow for maintaining a stash of changes. | |
if [ -f $FILE ]; then | |
# parse the url from the config file |
View google-voice-purge.js
/* | |
Copy and paste this into the developer console for any view of the legacy Google Voice browser interface. | |
This script will page through and delete all objects in the view using keyboard shortcuts (51 = `#` = move to trash). | |
There is no shortcut for deleting objects permanently from trash. Trash is purged after 30 days according to Google. | |
*/ | |
window.setInterval(function(){ | |
document.getElementsByClassName('jfk-checkbox-checkmark')[0].click(); | |
var e2 = new KeyboardEvent("keydown", {view: window, key: "#",keyIdentifier: "U+0023", code: 'Digit3', shiftKey: true, bubbles: true, cancelable: true}); | |
delete e2.which; |
View autocomplete.html
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Autocomplete Password Test</title> | |
<script> | |
function toggleType() { | |
var el = document.getElementById("pw"); | |
if (el.type =="password") { | |
el.type = "text"; |
View pyscripter_snippets.py
import sys | |
# Provides introspection into the Python Scripter API. | |
apis = ('extender', 'callbacks', 'helpers', 'toolFlag', 'messageIsRequest', 'messageInfo') | |
funcs = (type, dir) | |
if messageIsRequest: | |
for api in apis: | |
print('\n{}:\n{}'.format(api, '='*len(api))) |
View tag-replace.js
// define global variables to pass data between textarea and select elements | |
var currentEl = null; | |
var currentTag = null; | |
// dynamically create a select box to populate with options | |
$("body").append($("<select></select>").attr("id", "template-select").attr("style", "position: absolute; display: none;")) | |
function getCaretPosition(el) { | |
var start, end; | |
if (el.setSelectionRange) { |
View arrow.html
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Arrow</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.arrow-1 { | |
content: ""; |
View .bashrc
# other stuff here | |
# derivative of https://github.com/lojikil/dotfiles/blob/master/.bashrc#L33 | |
# create virtualenv management functions | |
function venv-activate() { | |
# always activate a local venv if available | |
if [ -d "$(pwd)/venv" ] | |
then | |
echo "local virtualenv activated (venv)." | |
# ...but warn if a global venv by the given name exists |
NewerOlder