Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| (function () { | |
| var param = 'fbclid'; | |
| if (location.search.indexOf(param + '=') !== -1) { | |
| var replace = ''; | |
| try { | |
| var url = new URL(location); | |
| url.searchParams.delete(param); | |
| replace = url.href; | |
| } catch (ex) { | |
| var regExp = new RegExp('[?&]' + param + '=.*$'); |
As per https://www.htpcguides.com/force-torrent-traffic-vpn-split-tunnel-debian-8-ubuntu-16-04/, but with few upgrades.
Everything in one script: https://github.com/GAS85/pia/blob/master/split_tunnel_VPN.sh
| export function flatMap<T, U>(array: T[], callbackfn: (value: T, index: number, array: T[]) => U[]): U[] { | |
| return Array.prototype.concat(...array.map(callbackfn)); | |
| } |
| // npm install twit | |
| const Twit = require("twit"); | |
| // Fill this in | |
| const T = new Twit({ | |
| consumer_key: "???", | |
| consumer_secret: "???", | |
| access_token: "???", | |
| access_token_secret: "???" | |
| }); |
| #standardsql | |
| WITH a AS ( | |
| SELECT * FROM UNNEST([1,2,3,4]) AS n | |
| ), b AS ( | |
| SELECT * FROM UNNEST([4,5,6,7]) AS n) | |
| SELECT * FROM a |
| #!/usr/bin/env python3 | |
| import os | |
| import logging | |
| import psycopg2 as pg | |
| from decimal import Decimal | |
| from functools import wraps | |
| from psycopg2.pool import ThreadedConnectionPool |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <protocol name="global_input_v1"> | |
| <copyright> | |
| Copyright (C) 2017 Val Packett ([email protected]) | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| #!/bin/bash | |
| # | |
| # open-in-firefox.sh - open URL from Termux command line in Firefox Android browser | |
| # | |
| # Works with file:// URLs too, unlike with termux-open{-url}. | |
| # | |
| exec am start --user 0 -a android.intent.action.VIEW -n org.mozilla.firefox/.App -d "$1" >/dev/null |
| function fieldSorterOptimized(fields) { | |
| var dir = [], i, l = fields.length; | |
| fields = fields.map(function(o, i) { | |
| if (o[0] === "-") { | |
| dir[i] = -1; | |
| o = o.substring(1); | |
| } else { | |
| dir[i] = 1; | |
| } | |
| return o; |