| Source | Display |
|---|---|
[x] |
[x] |
[x] text |
[x] text |
- [x] |
- [x] |
<ul><li>[x]</li></ul> |
|
:heavy_check_mark: |
✔️ |
:ballot_box_with_check: |
☑️ |
:white_check_mark: |
✅ |
☑ |
☑ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(()=>{var d=document.documentElement,b=document.body,es=b.querySelectorAll("*"),m=20;for(var i=0;i<es.length;++i){var e=es[i];var s=getComputedStyle(e);if(s.position!=='static'&&s.position!=='relative'){var r=e.getBoundingClientRect();if(r.x<=m&&r.y<=m&&r.right>=window.innerWidth - m&&r.bottom>=window.innerHeight - m){e.remove();}}}var s='\n/**/;position:static!important;overflow:auto!important;width:auto!important;height:auto!important;';d.setAttribute('style',(d.getAttribute('style')||'')+ s);b.setAttribute('style',(b.getAttribute('style')||'')+ s);})();void(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function escapeCSV(value: string): string { | |
| if (/^[-+._=\/a-z0-9]*$/i.test(value)) { | |
| return value; | |
| } | |
| return `"${value.replace(/"/g, '""')}"`; | |
| } | |
| export function buildCSV(data: string[][]): string { | |
| const buf: string[] = ['\ufeff']; // BOM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # derived from https://stackoverflow.com/a/67161907/277767 | |
| # Changes to the StackOverflow version: | |
| # * delete temporary files that contain vaults! | |
| # * prompt for passwords instead of passing them as program argument | |
| # * more precise vault replacement | |
| # * a bit nicer error messages that points at the line where re-keying failed | |
| # * decryption if no password is provided |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| set -eo pipefail | |
| RED=$(echo -e '\033[0;1;31m') | |
| NORMAL=$(echo -e '\033[0m') | |
| if [[ $# -lt 1 ]]; then | |
| echo "usage: $0 <logfile> [jq-options...]">&2 | |
| exit 1 | |
| fi | |
| logfile=$1 | |
| shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Version 2: | |
| # This version preserves space, including indentation. | |
| # | |
| # Also if you have lists like this: | |
| # | |
| # foo ....... bla bla bla | |
| # bar baz ... bla bla bla bla | |
| # | |
| # It will re-formated it to e.g. this: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Create a new bookmark and set it's URL to this: | |
| javascript:(function(xs)%7Bfor(var%20i%3D0%3Bi%3Cxs.length%3B%2B%2Bi)%7Bif(xs%5Bi%5D.currentSrc)%7Breturn%20window.open(xs%5Bi%5D.currentSrc)%3B%7D%7D%7D)(document.querySelectorAll('audio%2Cvideo'))%3B | |
| When media is playing using HTML5 audio/video you can click this bookmark to open a new tab/window with the media. Then to download it use the context menu action "Save As..." (right mouse button -> Save As...). | |
| If you use Chrome/Safari/recent Opera (WebKit/Blink) you can do better(!) and immediately download the file using this bookmarklet instead: | |
| javascript:(function(xs)%7Bfor(var%20i%3D0%3Bi%3Cxs.length%3B%2B%2Bi)%7Bif(xs%5Bi%5D.currentSrc)%7Bvar%20a%3Ddocument.createElement('a')%3Ba.target%3D'_blank'%3Ba.download%3D''%3Ba.href%3Dxs%5Bi%5D.currentSrc%3Ba.click()%3Breturn%3B%7D%7D%7D)(document.querySelectorAll('audio%2Cvideo'))%3B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import Image | |
| import numpy as np | |
| import cv2 | |
| def pil2cv(image: Image) -> np.ndarray: | |
| mode = image.mode | |
| new_image: np.ndarray | |
| if mode == '1': | |
| new_image = np.array(image, dtype=np.uint8) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from typing import Generator | |
| import sys | |
| import mailbox | |
| import argparse | |
| import hashlib | |
| def hash_body(hasher, msg: mailbox.Message) -> None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // bookmarklet: | |
| // javascript:(function()%7Bconst%20blob%3Dnew%20Blob(%5BJSON.stringify(localStorage)%5D%2C%7Btype%3A'application%2Fjson'%7D)%3Bconst%20link%3Ddocument.createElement('a')%3Bconst%20url%3DURL.createObjectURL(blob)%3Blink.href%3Durl%3Blink.download%3D'local_storage.json'%3Blink.style.display%3D'none'%3Bdocument.body.appendChild(link)%3Blink.click()%3BsetTimeout(()%3D%3E%7BURL.revokeObjectURL(url)%3Bdocument.body.removeChild(link)%3B%7D%2C250)%3B%7D)()%3B | |
| function exportLocalStorage(){ | |
| const blob = new Blob([JSON.stringify(localStorage)],{type:'application/json'}); | |
| const link = document.createElement('a'); | |
| const url = URL.createObjectURL(blob); | |
| link.href = url; | |
| link.download = 'local_storage.json'; | |
| link.style.display='none'; | |
| document.body.appendChild(link); |
NewerOlder