Skip to content

Instantly share code, notes, and snippets.

View jpluimers's full-sized avatar

Jeroen Wiert Pluimers jpluimers

  • wiert.me
  • Amsterdam, The Netherlands
View GitHub Profile
function Get-RdpLogonEvent
{
[CmdletBinding()]
param(
[Int32] $Last = 10
)
$RdpInteractiveLogons = Get-WinEvent -FilterHashtable @{
LogName='Security'
ProviderName='Microsoft-Windows-Security-Auditing'
@jpluimers
jpluimers / gist:e7bf559bd5ab72495abd4f17dc873777
Created August 29, 2023 06:06 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@jpluimers
jpluimers / Normalize_Audio.sh
Created August 29, 2023 06:05 — forked from paius1/Normalize_Audio.sh
Normalize audio in a file using ffmpeg-filter compand
#!/usr/bin/env bash
# Normalize audio stream in video file so explosions don't cover up dialogue
#
# For PcManFm custom actions using ffmpeg and yad
#
# Many thanks to Rupert Plumridge www.prupert.co.uk for the code to create a progress bar
# &
# https://gist.github.com/leesei
# for bash uri parser
# &
@jpluimers
jpluimers / openssh-for-windows-proxyjump-guide.md
Created July 26, 2023 10:24 — forked from yiays/openssh-for-windows-proxyjump-guide.md
How to setup OpenSSH for Windows for ProxyJumping

ProxyJumping

Introduction

ProxyJumping is a method used to get access to a terminal in a private network via SSH.

First, you SSH into a JumpGate (a SSH server exposed to the internet), and then use that JumpGate to pass through a SSH connection to a machine on the JumpGate's local network. By the end of this guide, you should be able to seamlessly connect to a remote private host through a JumpGate with one parameter in a ssh command.

Security should always be paramount when establishing connections like this because the password of a JumpGate can and will be brute-forced by bots on the internet constantly.

Compatiblilty notes

The provided client-side commands are intended for PowerShell. Open PowerShell by right-clicking on the start menu button and selecting Windows Powershell.

@jpluimers
jpluimers / rsync.xml
Created July 24, 2023 14:32 — forked from ddebin/rsync.xml
ESXi service description for rsync in daemon mode.
<ConfigRoot>
<service>
<id>rsync</id>
<rule id="0000">
<direction>outbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>873</port>
</rule>
<rule id="0001">
@jpluimers
jpluimers / bc4trialreset.cmd
Created June 15, 2023 09:50 — forked from zsoumya/bc4trialreset.cmd
Beyond Compare 4 Trial Reset
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f
@jpluimers
jpluimers / pfsense_cert_to_keystore.sh
Created February 23, 2023 10:11 — forked from noelmartinon/pfsense_cert_to_keystore.sh
Simple script to copy certificates from pfSense's certificate manager (which in my case were being updated with Let's Encrypt) to a Java keystore (in my case the one being used by Ubiquiti's Unifi Controller).
#!/bin/sh
set -eu
XMLLINT=/usr/local/bin/xmllint
BASE64_DECODE='/usr/local/bin/python2 -m base64 -d'
OPENSSL="/usr/bin/openssl"
KEYTOOL="/usr/local/bin/keytool"
PFSENSE_CONF=/cf/conf/config.xml
@jpluimers
jpluimers / Borland.Common.Targets
Created February 9, 2023 16:52 — forked from anonymous/Borland.Common.Targets
Delphi 2007 Borland.*.Targets files that should be in C:\Windows\Microsoft.NET\Framework\v2.0.50727 and C:\Windows\Microsoft.NET\Framework64\v2.0.50727
<!--
===============================================================================================
Borland.Common.Targets
WARNING
DO NOT MODIFY unless you have made a backup of these files. Modifying
this file unless you have knowledge about MSBuild you could cause problems
when loading or building projects in the IDE or building from the
@jpluimers
jpluimers / sourceforge.to.github.impor.markdown
Created December 27, 2022 11:29 — forked from rubo77/sourceforge.to.github.impor.markdown
import a sourceforge project (with full history) to github

In order to clone the timeeffect application from sourceforge to github I performed the following steps.

rsync -av rsync://a.cvs.sourceforge.net/cvsroot/timeeffect/\* cvs
svn export --username=guest http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
cp ./cvs2svn-trunk/cvs2git-example.options ./cvs2git.options
vim cvs2git.options # edit run_options.set_project
cvs2svn-trunk/cvs2git --options=cvs2git.options --fallback-encoding utf-8
#create at https://github.com/rubo77/timeeffect.git
git clone git@github.com:rubo77/timeeffect.git timeeffect-github
@jpluimers
jpluimers / vm-rename.sh
Last active December 15, 2022 18:08 — forked from Gremgoll/vm-rename
Script to rename a virtual machine in ESXi 6
#!/bin/sh
#
# shell script to rename a virtual machine in ESXi
#set -x
if [ $# -ne 4 ]; then
echo "Usage: $0 VOLNAME DIRNAME OLDNAME NEWNAME
where VOLNAME is the volume name, e.g. datastore1,
DIRNAME is the the name of the directory of the virtual machine,