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
# alias to command with params | |
Function checkprom {Invoke-WebRequest -Uri http://10.33.18.192:8800/ | Select-Object -Expand Content} | |
Set-Alias -Name check -Value checkprom |
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
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
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
Import-Module -Name Terminal-Icons | |
Import-Module oh-my-posh | |
oh-my-posh --init --shell pwsh --config ~/ohmyposhv3-anehs.json | Invoke-Expression | |
# Aliases | |
Function touch ([string]$filename) { | |
$null > $filename | |
} |
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
#SingleInstance Force | |
#SC029:: | |
MMPrimDPI := 1.0 ;DPI Scale of the primary monitor (divided by 100). | |
MMSecDPI := 1.0 ;DPI Scale of the secondary monitor (divided by 100). | |
SysGet, MMCount, MonitorCount | |
SysGet, MMPrimary, MonitorPrimary | |
SysGet, MMPrimLRTB, Monitor, MMPrimary | |
WinGetPos, MMWinGetX, MMWinGetY, MMWinGetWidth, MMWinGetHeight, A | |
MMWinGetXMiddle := MMWinGetX + (MMWinGetWidth / 2) |
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
# Step 0, manually: | |
# * Install new Edge | |
# * Install new Terminal from windows store | |
# "colorScheme": "One Half Dark" | |
# "fontFace": "Fira Code" | |
# * Add OneDrive work account | |
# * Add OneDrive personal account to get keepass database | |
# Get scoop | |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser |
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
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initialising new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; | |
} |
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
(Get-FileHash .\file.zip -Algorithm sha256).Hash -eq 'XXXXXX' |
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 AutoHotkey v2- | |
#SingleInstance force | |
;#Warn All, Off | |
; Type some characters that are not easily available on your keyboard. | |
:?*:,oe::ø | |
:?*:,OE::Ø | |
; Mutes an MS Teams meeting by sending ctrl-shift-m to it. Needs to be focused to work. | |
Scrolllock:: |
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
Sub datalabels() | |
For Each myChart In ActiveSheet.ChartObjects | |
For Each mySrs In myChart.chart.SeriesCollection | |
With mySrs | |
If Not .HasDataLabels Then | |
.ApplyDataLabels | |
End If | |
.datalabels.ShowSeriesName = 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
#!/bin/bash | |
IF=$1 | |
if [ -z "$IF" ]; then | |
IF=`ls -1 /sys/class/net/ | head -1` | |
fi | |
RXPREV=-1 | |
TXPREV=-1 | |
echo "Listening $IF..." | |
while [ 1 == 1 ] ; do | |
RX=`cat /sys/class/net/${IF}/statistics/rx_bytes` |
NewerOlder