Skip to content

Instantly share code, notes, and snippets.

View JTBrinkmann's full-sized avatar

Jan-T. Brinkmann JTBrinkmann

  • Stralsund, Germany
View GitHub Profile
param (
[string] $inFilePath,
[string] $outFilePath = $false
)
# older PowerPoint versions don't support exporting to MP4 (e.g. 2010)
# use WMV as fallback and if necessary convert via ffmpeg (not part of this script)
if ([Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType]::ppSaveAsMP4) {
$outExt = "mp4"
$outExtType = [Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType]::ppSaveAsMP4
$inputs = ls -R -F *.mp4
$i = 0
for ($input in $inputs) {
Write-Progress -Activity "Converting Videos" -Status "$(++$i / $inputs.Length)% $($input.Name)" -PercentComplete $($i / $inputs.Length)
$output = Join-Path "..\compressed" ($_ | Resolve-Path -Relative)
if (Test-Path $output) {
echo "already exists: $output"
} else {
mkdir ($output | Split-Path)
ffmpeg -hide_banner -i $input -movflags faststart -r 25 -vf scale=-1:720 -tune stillimage $output
@JTBrinkmann
JTBrinkmann / svg-scaler.html
Created January 31, 2020 15:13
small tool to resize SVGs internal coordinates
<!DOCTYPE html>
<style>
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
@JTBrinkmann
JTBrinkmann / clean-android-logger.bat
Created January 31, 2020 15:07
small script to disable log messages with specified tags; gets reset on reboot
adb shell "for tag in libpersona Zygote SELinux; do setprop log.tag.$tag ASSERT; done; for tag in ViewRootImpl InputTransport zygote InputMethodManager MDO Proxy InstantRun OpenGLRenderer Surface libGLESv1 mali_winsys vndksupport AssistStructure TimaKeyStoreProvider ActivityThread InputEventReceiver chatty AbsListView chatty; do setprop log.tag.$tag WARN; done"
@JTBrinkmann
JTBrinkmann / _extras.ps1
Last active April 20, 2019 17:22
configure a new Windows profile
# extra commandline utils
scoop install imagemagick python python2 bat caddy cmder dos2unix ffmpeg jq php sed
# extra GUI apps
scoop install jetbrains-toolbox gitkraken gimp atom sharex vlc autohotkey
# manually install whatever you need (e.g. Android Studio, IntelliJ, PHP-Storm)
jetbrains-toolbox
# install more programs using Chocolatey
@JTBrinkmann
JTBrinkmann / wsl-toast.sh
Last active January 7, 2019 11:55
small bash function to trigger a toast notification under Bash on Windows; e.g. at the end of a long running task
toast() {
powershell.exe -NoProfile -C "if (Get-Module -ListAvailable -Name BurntToast) { toast -t \"$*\" } else { echo 'Please run \`Install-Module -Name BurntToast\` in a Powershell as administrator'; echo \"$*\" }"
}
toast_title_body() {
toast $1\", \"$2
}
longrunning() {
start=`date +%s`
$*

Years after my parents got a divorse, my father found another woman who was a nerd and had hundreds of video games. She collected the CDs from that one gaming magazine Computer BILD Spiele. ("Spiele" = "games") That's how I became aware of the magazine. It regularly came with many small and often one full game (mostly older ones, though). Hence, I regularly got myself the magazine as I didn't have the money for 40€+ retail games

I became obsessed with those magazines. When relatives asked me what they could get me as presents, I was often lost, not knowing what to wish for

(except for that one time, at bandcamp, when ALL I wanted as a Wii) (which ofc I didn't get)

So I often casually suggested that they could get me a current edition of that magazine. As it is cheap, they usually liked that idea

#user-friends .image {
display: none;
}
#user-friends .list .row {
width: 180px !important;
height: 40px;
clear: both;
display: inline-block;
float: none;
.post > tbody {
display: flex;
flex-direction: column-reverse;
}
.post_controls .postbit_buttons > a {
display: inline;
border: none;
background: none;
color: #999;
@JTBrinkmann
JTBrinkmann / must-have-tools_windows.txt
Created July 26, 2016 18:22
Brinkie Pie's List of Must-Have Tools (Windows)
== Brinkie Pie's List of Must-Have Tools (Windows) ==
List is optimized for Win8 and above.
My list for older versions of Windows would have the exact same tools, but also a few more to cover features that are now built-in in Windows 8 and above.
note: since Windows 8, apps cannot make themselves default for certain filetypes anymore. Instead, you have rightclick a file of each desired type and select "open with" to make the app default. For some well configured applications, you can also use Default Programs in the settings.
= Look'n'Feel =
Screen Dimmer:
- f.lux
https://justgetflux.com/