Uses bubblewrap under the hood. Targeting NixOS, but can be modified to be run on other distributions
chmod +x run-wrap.fish
./run-wrap.fish <exe>Uses bubblewrap under the hood. Targeting NixOS, but can be modified to be run on other distributions
chmod +x run-wrap.fish
./run-wrap.fish <exe>| #!/usr/bin/env bash | |
| set -euo pipefail | |
| readonly DOMAIN='ENTER YOUR DOMAIN' | |
| readonly DAY_SEC=86400 | |
| expiry="$(echo | \ | |
| openssl s_client -servername "$DOMAIN" -connect "$DOMAIN:443" 2>/dev/null | \ | |
| openssl x509 -noout -enddate | \ |
| # home-manager module | |
| {lib, pkgs, ...}: let | |
| user = "you"; | |
| toTOML = name: data: (pkgs.formats.toml {}).generate name data; | |
| # all paths should be without trailing slashes | |
| simpleSource = path: tags: { | |
| source = path; # todo (v0.9): rename to sources and make list | |
| tag = tags; # todo (v0.9): rename to tags |
| [uBO 1.42.0] | |
| ! Title: Unobtrusive DeepL | |
| ! Homepage: https://gist.github.com/istudyatuni/96f0cc687e89b44208bed33c633564f7 | |
| ! Direct link: https://gist.githubusercontent.com/istudyatuni/96f0cc687e89b44208bed33c633564f7/raw/unobtrusive-deepl-ublock-filters.txt | |
| www.deepl.com##header | |
| www.deepl.com##footer | |
| www.deepl.com##.SidePanel | |
| www.deepl.com##[class^=homeExperience_logoCloud__] | |
| www.deepl.com##[class^=homeExperience_homeExperience__] |
| const response = await fetch('/url') | |
| const blob = await response.blob() | |
| const a = document.createElement('a') | |
| a.setAttribute('download', 'your-file.extension') | |
| a.href = URL.createObjectURL(blob) | |
| a.click() |
| import os | |
| import requests | |
| import time | |
| sid = '' | |
| url = f'https://boxberry.ru/api/v1/tracking/order/get?searchId={sid}' | |
| headers = { | |
| 'user-agent': 'Mozilla/5.0' | |
| } |
| let module | |
| import('/path/to/module.js').then(m => module = m) |
| let timerID = 0 | |
| let ws = new WebSocket(url) | |
| ws.onopen = () => { | |
| // some code | |
| keepAlive() | |
| } | |
| ws.onclose = () => { | |
| // some code | |
| cancelKeepAlive() | |
| } |
| <!-- крестик --> | |
| <svg aria-hidden="true" class="svg-icon" width="18" height="18" viewBox="0 0 18 18"><path d="M15 4.41L13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41z"></path></svg> | |
| <!-- or multiplication sign--> | |
| <span>×</span> |