SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
- Install Docker
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
| #!/bin/bash | |
| # | |
| # Mush mosh and SSM sessions together. | |
| # | |
| # Run mosh-server on an EC2 instance as part of an AWS Session Manager SSH | |
| # session, and feed the output into mosh-client locally. This is helpful | |
| # if you have an EC2 instance which: | |
| # | |
| # * Is publicly addressable | |
| # * Has a predictable Name tag but a shifting IP |
SSH into AWS ec2/ Digitalocean droplet/ or else other PAAS, linux machine
$sudo apt install docker.io
$sudo usermod -aG docker $USER
I already installed docker
| tap "armosec/kubescape" | |
| tap "danvergara/tools" | |
| tap "env0/terratag" | |
| tap "fluxcd/tap" | |
| tap "github/gh" | |
| tap "go-task/tap" | |
| tap "goodwithtech/r" | |
| tap "hashicorp/tap" | |
| tap "helm/tap" | |
| tap "homebrew/bundle" |
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
sed -i 's/^ZSH_THEME=".*"/ZSH_THEME="spaceship"/' ~/.zshrc| @echo off | |
| :loop | |
| echo testing IP address | |
| ping 123.456.78.90 >nul || ( | |
| echo ping failure - disconnecting | |
| rasdial name_of_your_vpn_connect /disconnect | |
| timeout /t 10 /nobreak | |
| echo reconnecting | |
| rasdial name_of_your_vpn_connect | |
| timeout /t 10 /nobreak |
| #!/usr/bin/perl -w | |
| #Source: https://newspaint.wordpress.com/2014/08/18/filtering-easylist-for-hosts-file-style-adblock/ | |
| use strict; | |
| my %hosts = (); | |
| while ( <> ) { | |
| if ( $_ =~ m/^\|\|([a-z][a-z0-9-_.]+\.([a-z]{2,3}))\^\s*$/ ) { | |
| $hosts{$1} = 1; | |
| } |
| { | |
| "createdBy": "Redirector v3.5.3", | |
| "createdAt": "2023-12-11T08:55:48.601Z", | |
| "redirects": [ | |
| { | |
| "description": "Youtube", | |
| "exampleUrl": "https://www.youtube.com/watch?v=iv8Ci8omkks", | |
| "exampleResult": "https://invidious.g3rhard.cc/watch?v=iv8Ci8omkks", | |
| "error": null, | |
| "includePattern": "www.youtube.com/(watch.*)", |
| #EXTM3U | |
| #PLAYLIST:Playlist Name | |
| #EXTINF:-1,1970 | |
| http://air.radiorecord.ru:805/1970_64 | |
| #EXTINF:-1,1980 | |
| http://air.radiorecord.ru:805/1980_64 | |
| #EXTINF:-1,2step | |
| http://air.radiorecord.ru:805/2step_64 | |
| #EXTINF:-1,ansh | |
| http://air.radiorecord.ru:805/ansh_64 |
| ## Monitor Pi-Hole service | |
| check process pihole-FTL with pidfile /var/run/pihole-FTL.pid | |
| start program = "/etc/init.d/pihole-FTL start" | |
| stop program = "/etc/init.d/pihole-FTL stop" | |
| if changed pid then exec "/bin/bash -c '/usr/local/bin/slack-webhook.rb'" | |
| if 1 restart within 1 cycle then exec "/bin/bash -c '/usr/local/bin/slack-webhook.rb'" | |
| if failed port 53 type tcp with timeout 5 seconds for 2 cycles then restart | |
| ## Check Pi-Hole web interface | |
| check process lighttpd with pidfile /var/run/lighttpd.pid |
There is an increasing count of applications which use Authy for two-factor authentication. However many users who aren't using Authy, have their own authenticator setup up already and do not wish to use two applications for generating passwords.
Since I use 1Password for all of my password storing/generating needs, I was looking for a solution to use Authy passwords on that. I couldn't find any completely working solutions, however I stumbled upon a gist by Brian Hartvigsen. His post had a neat code with it to generate QR codes for you to use on your favorite authenticator.
His method is to extract the secret keys using Authy's Google Chrome app via Developer Tools. If this was not possible, I guess people would be reverse engineering the Android app or something like that. But when I tried that code, nothing appeared on the screen. My guess is that Brian used the