resource: [GitHub Pages](https://imagebin.ca/)
add alias imgbin to ~/.bashrc
imgbin() { curl -F file="@${1}" 'https://imagebin.ca/upload.php'; }example
resource: [GitHub Pages](https://imagebin.ca/)
add alias imgbin to ~/.bashrc
imgbin() { curl -F file="@${1}" 'https://imagebin.ca/upload.php'; }example
create raw binary git patch file for untracked files only (exclude: zip archives/files/ directory/*.patch files)
$ { for next in $( git ls-files --others --exclude-standard --exclude=*.zip --exclude=files/* -x '*.patch') ; do git --no-pager diff -p --ignore-space-change --ignore-cr-at-eol --raw --binary -b -w --no-index /dev/null $next; done; } > untracked.patchshow information about changes that will be applied
| import { pipeline } from 'node:stream/promises' | |
| import { Writable } from 'node:stream' | |
| import fs from "fs"; | |
| import StreamObject from "stream-json/streamers/StreamObject.js"; | |
| return new Promise(async (resolve) => | |
| await pipeline( | |
| fs.createReadStream(this.cacheFileFullPath(filename)), | |
| StreamArray.withParser(), | |
| new Writable({ |
| class WorkerWrapper extends EventEmitter { | |
| #worker; | |
| #ee = new EventEmitter(); | |
| constructor(worker) { | |
| super(); | |
| this.#worker = worker; | |
| console.log(`worker.js `, worker); |
| rsync --ignore-existing -a --progress -W -v -r --include="*/" --include="*.jpg" --exclude="*" /home/fignelim/tools/Fignel-tools/export-elements/out/ /home/fignelim/tools/feature_test/out/ | |
| #get all images count in dir | |
| find ./feature_test/out/ -type f -name '*.jpg' | wc -l | |
| diff -qr Fignel-tools/export-elements/out/ feature_test/out/ |
| // run this function in dev console | |
| function downloadBlob(blob, name = 'file.txt') { | |
| // Convert your blob into a Blob URL (a special url that points to an object in the browser's memory) | |
| const blobUrl = URL.createObjectURL(blob); | |
| // Create a link element | |
| const link = document.createElement("a"); | |
| // Set link's href to point to the Blob URL | |
| link.href = blobUrl; |
| #!/usr/bin/env python3 | |
| # Compares two images and calculate pixel difference between images and SSIM (Similarity) Score in percents. | |
| # Images should have same dimentions, | |
| # BUT | |
| # if dimentions of the second image is bigger than first, script will try to find first image on second by template and crop second. | |
| import sys | |
| import os.path |
fuzz target.com wordpress site:
./fuzz.wp.sh https://target.com
| version: "3" | |
| services: | |
| delegated: | |
| image: santaklouse/delegated:latest | |
| command: "-P1080 SERVER=socks SSLTUNNEL=127.0.0.1:4444" | |
| ports: | |
| - "1080:1080" | |
| restart: always | |
| i2p: | |
| image: santaklouse/i2p:latest |