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="your_email@gmail.com" | |
| 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): |
| """ | |
| Investigate CloudFlare outage impact by checking the status of top sites from CrUX. | |
| """ | |
| import asyncio | |
| from pathlib import Path | |
| from typing import Dict, List | |
| from httpx import AsyncClient, TimeoutException, ConnectError, HTTPStatusError, AsyncHTTPTransport | |
| from tqdm.asyncio import tqdm | |
| from google.cloud import bigquery |
| // ==UserScript== | |
| // @name GitHub PR Request Review From Specific User | |
| // @namespace gh-request-review | |
| // @author n0kovo | |
| // @version 1.1 | |
| // @description Add a searchable input to request a GitHub pull request review from any collaborator | |
| // @match https://github.com/*/pull/* | |
| // @grant GM.getValue | |
| // @grant GM.setValue | |
| // @icon https://github.com/favicon.ico |