- Install anyconnect command line tools
- Save vpn_htw.sh somewhere, like
~/.scripts
- put a new Alias in your .bashrc or .zshrc
alias htw="sudo bash ~/.scripts/vpn_htw.sh"
- Fill out your credentials in the
vpn_htw.sh
where commented - Source your rc file like
source .bashrc
- launch with
htw -c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// put this in your .bash_rc or .zshrc to create a new jupyter notebook at your current location | |
// use: newjp yournotebookname | |
// creates yournotebookname.ipynb | |
newjp() { | |
touch $(pwd)/$1.ipynb | |
echo "{\"cells\": [],\"metadata\": {},\"nbformat\": 4,\"nbformat_minor\": 2}" > $(pwd)/$1.ipynb | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// single pdf | |
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=uncrypted.pdf -c .setpdfwrite -f target.pdf | |
// all pdf in folder | |
mkdir ../uncrypted && find . -type f -name "*.pdf" -exec gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=../uncrypted/{} -c .setpdfwrite -f {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
arg1=$1 | |
# 0) HTW-SSL-Split | |
# 1) HTW-SSL-VPN-Full | |
# 2) HTW-SSL-VPN-Split | |
group=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -r -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b" . > ~/Desktop/emails.txt | |
awk '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}' emails.txt emailsfiltered.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Showsingle(){ | |
boolean next = true; | |
try { | |
Class.forName( DRIVER ); | |
c = DriverManager.getConnection( Connection, user, passwort ); | |
System.out.println( "Opened database successfully" ); | |
stmt = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, | |
ResultSet.CONCUR_UPDATABLE);//Zum Durchiterieren TYPE_SCROLL_INSENSITIVE | |
ResultSet rs = stmt.executeQuery( "SELECT * FROM standort;" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import userinterface.Userinterface; | |
public class Main { | |
public static void main(String[] args) { | |
Userinterface userinterface = new Userinterface(); | |
userinterface.run(); | |
} | |
} |