Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Kolb BlkPingu

  • DLR
  • Berlin
View GitHub Profile
@BlkPingu
BlkPingu / cisco_htw.sh
Last active May 14, 2020
Connect to HTW Berlin VPN via cisco CLI
View cisco_htw.sh
#!/bin/bash
arg1=$1
# 0) HTW-SSL-Split
# 1) HTW-SSL-VPN-Full
# 2) HTW-SSL-VPN-Split
group=2
View mail filters
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
@BlkPingu
BlkPingu / ResultSet.java
Last active Jan 8, 2019
jdbc result set iterator
View ResultSet.java
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;" );
@BlkPingu
BlkPingu / Main.java
Last active Oct 17, 2018
Basic Java Command Line User Interface (CUI)
View Main.java
import userinterface.Userinterface;
public class Main {
public static void main(String[] args) {
Userinterface userinterface = new Userinterface();
userinterface.run();
}
}
You can’t perform that action at this time.