cd /usr/local/Homebrew/
git checkout 2.3.0
import random | |
import math | |
import matplotlib.pyplot as plt | |
import quantumrandom | |
from global_land_mask import globe | |
import numpy as np | |
import argparse | |
import sys | |
// ==UserScript== | |
// @name Make YouSee Modem (Kaon DG3420TD) Web Interface Username Field Editable | |
// @version 1.0 | |
// @description Removes the readonly attribute from the router username input field, allowing you to log in as other users. Probably works for Orange Livebox, Swisscom and other devices running SoftAtHome firmware. | |
// @author narkopolo | |
// @match *://192.168.1.1/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== |
#!/bin/zsh | |
url_list_file="urls.txt" | |
total_urls=$(wc -l < $url_list_file) | |
webdav_url="https://webdav.somehost.com/directory" | |
webdav_user="[email protected]" | |
webdav_pass="YourPassword" | |
http_cookie_header="Cookie: foo=bar; bar=foo" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Description: Resolve domains from stdin and print the IPs to stdout (with progress bar) | |
# Example: cat domains.txt | ./resolve.sh | sort | uniq -c | sort -nr | |
# Progress bar printing to stderr | |
function progress_bar { | |
progress=$(( (${1} * 100 / ${2} * 100) / 100 )) | |
done=$(( (${progress} * 6) / 10 )) | |
left=$((60 - $done)) | |
# Build progressbar string lengths |
or: "A growing bunch of pseudo-one-liners from when I needed to accomplish something that turned into a shell scripting practice sesh instead because ADHD."
Parallel download jobs + extraction & parsing (pretty fucking fast). Requires: jq
, unfurl
CORES_X2=$(( $(nproc) * 2 )); \
CORES_HALF=$(( $(nproc) / 2 )); \
LINES_PER_BLOCK=100000; \
import subprocess | |
from IPython.display import display, HTML | |
class StatusRunner: | |
def __init__(self, success_message="Command executed successfully, no output.", error_critical=True): | |
self.success_message = success_message | |
self.error_critical = error_critical | |
def __enter__(self): |