Skip to content

Instantly share code, notes, and snippets.

View DarkionAvey's full-sized avatar

Darkion Avey DarkionAvey

  • Groningen
View GitHub Profile
# from https://www.itechtics.com/2-ways-find-saved-wifi-passwords-windows-10/
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize
@DarkionAvey
DarkionAvey / FFmpeg timelapse script
Created January 31, 2021 20:00
A script for creating a timelapse video
//Unpack video to frames (r 1 is one frame per second)
ffmpeg -i input1.avi -r 1 frames/image-%6d.jpeg
//repack at 25fps
ffmpeg -i image-%6d.jpeg -r 25  -q:v 2 output1.mp4
//Speed up video by 2x "0.5"
ffmpeg -i output1.mp4 -filter:v "setpts=0.5*PTS" output.mp4
@DarkionAvey
DarkionAvey / ios_spinner_avd.xml
Last active April 28, 2023 12:26
iOS-like spinner as an animated vector drawable for Android without the need of custom classes, or worse, gifs. Use support library to get it to work on older devices. To change color, simply change fillColor but not the alpha. You have to register a callback to make it repeat, because android doesn't allow animationset to repeat
<animated-vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<aapt:attr name="android:drawable">
<vector
android:name="vector"
android:width="20dp"
android:height="20dp"
android:viewportWidth="60"
android:viewportHeight="60">
<path