Ubuntu 18.04 UFW settings, based on [1] Step 1
ens3.. primary physical ETH interface10.243.0.0/16.. ZT network
| /* | |
| Twitch chat browsersource CSS for OBS | |
| Just set the URL as https://www.twitch.tv/popout/%%TWITCHCHANNEL%%/chat | |
| And paste this entire file into the CSS box | |
| Original by twitch.tv/starvingpoet modified by github.com/Bluscream | |
| Readjusted for new (2019/2020) Twitch by github.com/mjbogusz | |
| General Settings | |
| */ | |
| body { |
| (* | |
| Applescript to toggle between two sound outputs by Line number, | |
| as they appear in the Sound Control Panel. Based on code by | |
| Arthur Hammer http://apple.stackexchange.com/a/209434/85275 | |
| via https://apple.stackexchange.com/questions/217148/using-apple-script-to-manage-sound-output-selection | |
| Модификация для русской MacOS | |
| переменные output отсчитываются с единицы в окне | |
| *) |
| // For use: | |
| // 1) npm i telegraf got | |
| // 2) replace TELEGRAM_BOT_TOKEN / YOUTUBE_TOKEN_API / YOUTUBE_VIDEO_ID / GROUP | |
| const { Telegraf } = require('telegraf'); | |
| const got = require('got'); | |
| const URL = 'https://www.googleapis.com/youtube/v3/videos?id=YOUTUBE_VIDEO_ID&key=YOUTUBE_TOKEN_API&part=statistics'; | |
| const GROUP = -0; // telegram group ip, start with -, yes | |
| const TOKEN = 'TELEGRAM_BOT_TOKEN'; |
| print([method for method in dir(OBJECT) if callable(getattr(OBJECT, method))]) |
| // flush timeout(s) for all code under test. | |
| $timeout.flush(); | |
| // this will throw an exception if there are any pending timeouts. | |
| $timeout.verifyNoPendingTasks(); |
| jasmine.clock().install(); | |
| var baseTime = new Date(2013, 9, 23); | |
| jasmine.clock().mockDate(baseTime); | |
| jasmine.clock().tick(50) | |
| expect(new Date().getTime()).toEqual(baseTime.getTime() + 50); | |
| afterEach(function () { | |
| jasmine.clock().uninstall(); | |
| }); |