https://github.com/felixse/FluentTerminal
https://github.com/JanDeDobbeleer/oh-my-posh
If you get an permission error in PS:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
[api]: New apis / changes to apis | |
[test]: Update test/* files | |
[dist]: Changes to submodules, version bumps, updates to package.json | |
[minor]: Small changes | |
[doc]: Updates to documentation | |
[ux]: Updates to UX | |
[fix]: Bug fixes | |
[feat]: new Feature | |
[bin]: Update binary scripts associated with the project | |
[merge]: Resolved git merge from upstream or otherwise |
https://github.com/felixse/FluentTerminal
https://github.com/JanDeDobbeleer/oh-my-posh
If you get an permission error in PS:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
// execute the following line in <yourjenkins>/script script console | |
// and then you can generate for every user tokens <yourjenkins>/user/<username>/configure | |
jenkins.security.ApiTokenProperty.ADMIN_CAN_GENERATE_NEW_TOKENS = true |
# the hash describes the commit you want to go back | |
git reset --soft <hash> | |
git commit -m "<message>" | |
git push |
// this file has to look something like this... | |
import {NgModule,} from '@angular/core'; | |
import { MyComponent } from './my.component'; | |
import { FilterPipe } from './filter.pipe'; | |
@NgModule({ | |
declarations: [ | |
MyComponent |
#!/usr/bin/env bash | |
# credits: https://github.com/containous/traefik/issues/635#issuecomment-400423859 | |
# usage: revokeCert.sh {yourDomainToRevoke} | |
# the JSON path changed a bit compared with Traefik v1 | |
set -e | |
ACME_FILE=/traefik/path/traefik/acme.json # change | |
jq -r ".default.Certificates | .[] | select(.domain.main == \"$1\").key" < $ACME_FILE | base64 --decode > /tmp/a.key |
# theming configuration | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-Theme Paradox | |
# thanks to https://dev.to/ofhouse/add-a-bash-like-autocomplete-to-your-powershell-4257 | |
# improved tabbing for autocompletion | |
# Shows navigable menu of all options when hitting Tab | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete |
takeown /F "C:\Windows.old" /A /R /D Y | |
icacls "C:\Windows.old" /T /grant administrators:F | |
rmdir /s /q "C:\Windows.old" |