Skip to content

Instantly share code, notes, and snippets.

Arne Küderle AKuederle

Block or report user

Report or block AKuederle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AKuederle / ahk_audio_changer.ahk
Last active Aug 29, 2015
Simple autohotkey script to select one of two audio devices under Windows. Bit clumsy, but it does its job. Inspiration from:
View ahk_audio_changer.ahk
#+*F6:: ; assign hotkey (windows+Shift+F6)
Run, mmsys.cpl
ControlSend,SysListView321,{Down 1} ; By changing the number behind Down the audiodevice can be selcted
ControlClick,&Set Default
Run, mmsys.cpl
AKuederle / get_path.ps1
Last active Aug 29, 2015
Get and refresh the currently avaible path inside a PowerShell session (usefull, when troubleshooting or installing things from the shell)
View get_path.ps1
# prints the current path avaible in the PowerShell
function path
$curr = Get-Location
cd env:
(ls path).value.split(“;”)
cd $curr
AKuederle / read-clipboard.ps1
Last active Aug 29, 2015
Functions to manipulate the clipboard from the PowerShell
View read-clipboard.ps1
function read-clipboard
PowerShell -NoProfile -STA -Command {
Add-Type -Assembly PresentationCore
AKuederle /
Last active Aug 29, 2015
Find the name of all folders, which have a .git repo inside. Can be used to find the name sof all Git "Projects" on the machine
find ~ -type d -name .git | xargs -n 1 dirname | xargs -n 1 basename
AKuederle / textwidth.tex
Created Feb 11, 2015
Print the current textwidth inside your latex document
View textwidth.tex
AKuederle /
Created Feb 11, 2015
simple Python function to find the index of an array, which corrosponding value is nearest to a given float
def find_nearest(array, value):
return (np.abs(array - value)).argmin()
AKuederle /
Created Feb 22, 2015
Lock the screen after 10 min of not using the PC when using xfce as a desktop enviroment. It has to be placed in .xinitrc.
xautolock -time 10 -notify 30 -notifier "notify-send 'Locking screen in 30 s' --icon=appointment" -locker xflock4
AKuederle / gist:507f4d9a2fa00037ca69
Created Jun 28, 2015
Overwrite of powershell promt which works with gitposh and provides last argument and last command varibales
View gist:507f4d9a2fa00037ca69
function global:prompt {
$global:l = "$($(Get-History)[-1])"
$temp = "$($(Get-History)[-1])" -split " "
$global:lc = $temp[0]
$global:lp = $temp[1..($temp.length-1)]
# Reset color, which can be messed up by Enable-GitColors
$Host.UI.RawUI.ForegroundColor = $GitPromptSettings.DefaultForegroundColor
Write-Host($(Split-Path $pwd -Leaf)) -nonewline -foregroundcolor Blue
View pandas_xlim_issue.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
AKuederle / i3lock_solaris
Created Apr 26, 2016
i3lock-color command with solaris dark colors
View i3lock_solaris
"i3lock -i ~/Pictures/Backgrounds/main_background.png -e -f --insidevercolor=268bd2bf --insidewrongcolor=dc322fbf --insidecolor=073642bf --ringvercolor=268bd2ff --ringwrongcolor=dc322fff --ringcolor=073642ff --textcolor=839496ff --separatorcolor=073642ff --keyhlcolor=2aa198ff --bshlcolor=cb4b16ff -r"
You can’t perform that action at this time.