commit 226b89e19143f213f992a118f150dcf7380d39fc Author: def Date: Mon Sep 12 09:11:57 2022 +0200 add diff --git a/kill-switch/kill_switch_off.sh b/kill-switch/kill_switch_off.sh new file mode 100644 index 0000000..896d620 --- /dev/null +++ b/kill-switch/kill_switch_off.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo "y" | sudo ufw enable +sudo ufw default deny incoming +sudo ufw default allow outgoing +sudo ufw enable +notify-send 'Kill-switch OFF' 'Maybe, maybe not, or maybe fuck off' --icon=dialog-information diff --git a/kill-switch/kill_switch_on.sh b/kill-switch/kill_switch_on.sh new file mode 100644 index 0000000..7758ec0 --- /dev/null +++ b/kill-switch/kill_switch_on.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "y" | sudo ufw enable +sudo ufw default deny incoming +sudo ufw default deny outgoing +sudo ufw allow out on tun0 from any to any +sudo ufw enable +notify-send 'Kill-switch ON' 'Maybe, maybe not, or maybe fuck off' --icon=dialog-information diff --git a/push-notifs-translator.py b/push-notifs-translator.py new file mode 100644 index 0000000..63edd63 --- /dev/null +++ b/push-notifs-translator.py @@ -0,0 +1,16 @@ +from translate import Translator +import pynput +from pynput.keyboard import Key, Controller +import pyclip +from notify import notification + +keyboard = Controller() +translator = Translator(to_lang="ru") + +with keyboard.pressed(Key.ctrl): + keyboard.press('c') + keyboard.release('c') + +result = translator.translate(pyclip.paste(text=True)) + +notification('Перевод на русский:', message=result, app_name='Born2copy') diff --git a/update-hosts.sh b/update-hosts.sh new file mode 100755 index 0000000..9054b07 --- /dev/null +++ b/update-hosts.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Linux hosts Updater for the Ultimate Hosts Blacklist +# Repo Url: https://github.com/Ultimate-Hosts-Blacklist/Ultimate.Hosts.Blacklist +# Copyright (c) 2020 Ultimate Hosts Blacklist - @Ultimate-Hosts-Blacklist +# Copyright (c) 2017, 2018, 2019, 2020 Mitchell Krog - @mitchellkrogza +# Copyright (c) 2017, 2018, 2019, 2020 Nissar Chababy - @funilrys + +# Get the latest updated hosts file and put it into place +sudo wget https://hosts.ubuntu101.co.za/hosts -O /etc/hosts +notify-send 'hosts was updated!' 'Maybe, maybe not, or maybe fuck off' --icon=dialog-information