This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Prepend project management ticket id to the start of the commit message | |
# Extract the current branch name | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
# Identify the ticket number from the branch name | |
TICKET_ID=$(echo $BRANCH_NAME | grep -oE '[A-Z]+-[0-9]+' | head -n 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Accept a -force argument to perform the symlink creation regardless of what version is stored in driver_version.ini | |
param ($force) | |
$should_force = $false | |
if ($PSBoundParameters.ContainsKey('force')) { | |
if ($force -eq 1 -or | |
$force -eq 'true') { | |
$should_force = $true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# manfind - A simple tool for searching the man pages on Ubuntu | |
manfind() { man -k . | fzf | awk -F'[ ()]' '{print $3,$1}' | xargs man } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Self-elevate this PowerShell prompt | |
If (-not([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
# Relaunch as an elevated process: | |
Start-Process powershell.exe "-File", ('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs | |
exit | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
Clear-Host | |
$scriptversion = '1.0' | |
Write-Host "WSL libcuda symlink updater version $scriptversion`n`n" | |
## Save current directory ## | |
$startcwd = ((Get-Location).ToString()) | |
## Full path to libcuda ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore all files without extention | |
* | |
!/**/ | |
!*.* |