Skip to content

Instantly share code, notes, and snippets.

View BertMueller18's full-sized avatar

Bert Mueller BertMueller18

  • Leipzig, Germany
View GitHub Profile
VPNCMD="sudo /usr/local/vpnserver/vpncmd localhost:443 /SERVER /CMD"
# Create virtual hub
${VPNCMD} HubCreate ${HubName} /PASSWD:admin
# Create local bridge(connect to physical device)
${VPNCMD} BridgeCreate ${HubName} /DEVICE:${phy_dev_name:-eth0}
# Create local bridge(create tap interface)
@yuuichi-fujioka
yuuichi-fujioka / vpnbridge.sh
Created May 28, 2014 00:17
Softether VPN Bridge
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnbridge/vpnbridge
LOCK=/var/lock/subsys/vpnbridge
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
$psISE.CurrentPowerShellTab.AddOnsMenu.SubMenus.Add(
"Connect to Exchange",
{
$s = New-PSSession -ConfigurationName Microsoft.Exchange `
-ConnectionUri http://your_server_fqdn_name/PowerShell/ `
-Authentication Kerberos
Import-PSSession $s
},
"Control+Alt+G"
@regit
regit / ssh-analysis-kibana
Last active August 7, 2019 21:27
SSH analysis dashboard
{
"title": "SSH analysis",
"services": {
"query": {
"list": {
"0": {
"query": "message:\"Invalid user\" AND sshd",
"alias": "Failed login",
"color": "#BF1B00",
"id": 0,
$caseInsensitive = @'
//node[
translate(@Name, "FIRST", "first") = 'first'
]
'@
Select-Xml -XPath $caseInsensitive -Path .\Test.xml |
ForEach-Object { $_.Node.Name }
$almostRegex = @'
$Common = @{
Path = 'SomeTables.xhtml'
Namespace = @{
d = 'http://www.w3.org/1999/xhtml'
}
}
Select-Xml -XPath '//d:table[d:tr[@class]]' @Common |
ForEach-Object { $_.Node } | Format-Table -AutoSize
@grugq
grugq / gist:03167bed45e774551155
Last active February 1, 2026 19:31
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.

@cathode
cathode / smb4.conf
Created September 2, 2014 17:28
Samba 4.1 configuration
# /usr/local/etc/smb4.conf
# Samba 4.1 Configuration file
[global]
# Basic settings
workgroup = IMPERIALMFG
realm = IMPERIALMFG.LOCAL
server string = Network Storage Server
server role = member server
@thomasjbradley
thomasjbradley / github-pages-bookmarklet.js
Last active February 23, 2017 11:11
GitHub Pages Switcher Bookmarklet
/**
* Detects the GitHub URL and redirects:
* - From Repo to Pages
* - or from Pages to Repo
*/
javascript:(function () {
var url = document.location.href,
username,
repo,

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs