This file contains 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
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
// README at: https://github.com/devcontainers/templates/tree/main/src/rust | |
{ | |
"name": "Rust", | |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
"image": "mcr.microsoft.com/devcontainers/rust:latest", | |
"customizations": { | |
"vscode": { | |
"settings": { | |
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)|todo!", |
This file contains 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 | |
set -e | |
# Examples of call: | |
# git-clone-bare-for-worktrees [email protected]:name/repo.git | |
# => Clones to a /repo directory | |
# | |
# git-clone-bare-for-worktrees [email protected]:name/repo.git my-repo | |
# => Clones to a /my-repo directory |
This file contains 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
$Dictionary = @{ | |
"key1" = "value1"; | |
"key2" = "value2"; | |
} | |
$sourceFilename = "template.txt" | |
$destinationFilename = "output.txt" | |
$delimStart = "<" | |
$delimEnd = ">" | |
$templateContent = Get-Content $sourceFilename |
This file contains 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 PSReadLine | |
Import-Module Posh-Git | |
oh-my-posh init pwsh --config '$env:UserProfile\jandedobbeleer.omp.json' | Invoke-Expression | |
# AWS CLI | |
Register-ArgumentCompleter -Native -CommandName aws -ScriptBlock { | |
param($commandName, $wordToComplete, $cursorPosition) | |
$env:COMP_LINE = $wordToComplete | |
if ($env:COMP_LINE.Length -lt $cursorPosition) { |
This file contains 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
[merge] | |
tool = kdiff3 | |
[mergetool "kdiff3"] | |
path = C:/Program Files/KDiff3/kdiff3.exe | |
trustExitCode = false | |
[diff] | |
guitool = kdiff3 | |
[difftool "kdiff3"] | |
path = C:/Program Files/KDiff3/kdiff3.exe | |
trustExitCode = false |
This file contains 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
{ | |
"blocks": [{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [{ | |
"type": "session", | |
"style": "diamond", | |
"foreground": "#ffffff", | |
"background": "#c386f1", | |
"leading_diamond": "", |
This file contains 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
# There is no facility to replace passwords in RDCMan once they are stored. The only way is to create a new custom credential. | |
# If you open your *.rdg file in a text editor, locate the stored <password>, you can then decrypt it using this script. | |
# This script can also encrypt a plain text password in rdg format which can be used to overwrite an existing one in the xml. | |
Add-Type -AssemblyName System.Security; | |
Function EncryptPassword { | |
[CmdletBinding()] | |
param([String]$PlainText = $null) | |
# convert to RDCMan format: (null terminated chars) |
This file contains 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
adddate() { | |
while IFS= read -r line; do | |
printf "%s %s\n" "[$(date +"%F %H:%M:%S")]" "$line" | |
done | |
} | |
$1 | adddate |
This file contains 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 | |
> allowed_ranges | |
#Bamboo Triggers | |
echo '18.205.93.0/25' >> allowed_ranges | |
echo '18.234.32.128/25' >> allowed_ranges | |
echo '13.52.5.0/25' >> allowed_ranges | |
#Atlassian IP Addresses | |
curl -s https://ip-ranges.atlassian.com/ | jq -r '.items[] | .cidr' >> allowed_ranges | |
echo Allowed Ranges file generated |
This file contains 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
#Add to /etc/postgresql/10/main/conf.d/logging.conf and reload config | |
log_statement = 'none' | |
log_duration = off | |
log_min_duration_statement = 10000 | |
log_lock_waits = on |
NewerOlder