This gist contains some useful regular expressions i wrote.
^(?P<year>\d{4})\-(?P<month>0\d|1[0-2])\-(?P<day>0[1-9]|[12]\d|3[01])\s(?P<hour>2[0-3]|[01]\d):(?P<minute>5[0-9]|[0-4]\d):(?P<second>5[0-9]|[0-4]\d)$
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "$$hashKey": "object:1058", | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "datasource", | |
| "uid": "grafana" | |
| }, |
| version: '3' | |
| services: | |
| nginx-proxy: | |
| image: nginxproxy/nginx-proxy | |
| restart: always | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| volumes: | |
| - conf:/etc/nginx/conf.d |
| { | |
| virtualisation.kvmfr = { | |
| enable = true; | |
| shm = { | |
| enable = true; | |
| size = 128; | |
| user = "j-brn"; | |
| group = "libvirtd"; |
| #cloud-config | |
| users: | |
| - name: admin | |
| ssh-authorized_keys: | |
| - <your-key-goes-here> | |
| sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
| groups: | |
| - sudo | |
| - docker | |
| shell: /bin/bash |
| #cloud-config | |
| users: | |
| - name: admin | |
| ssh-authorized_keys: | |
| - <your keys go here> | |
| sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
| groups: | |
| - sudo | |
| - docker | |
| shell: /bin/bash |
| #cloud-config | |
| users: | |
| - name: admin | |
| ssh-authorized_keys: | |
| - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG3eO5g2TPLcE3pzt/6XiGqGjbAeCr41s+5mSR0aZuHt jonas@thinkpad-jb | |
| sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
| groups: | |
| - sudo | |
| - docker | |
| shell: /bin/bash |
| # The bash prompt i use. | |
| # [17:02:54] user@hostname : /tmp/example-repo (master) | |
| # > | |
| # | |
| # created using http://bashrcgenerator.com/ with manualy added git branch display | |
| export PS1="[\[$(tput sgr0)\]\[\033[38;5;2m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\]] \[$(tput sgr0)\]\[\033[38;5;12m\]\u\[$(tput sgr0)\]\[\033[38;5;11m\]@\[$(tput sgr0)\]\[\033[38;5;14m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;8m\]:\[$(tput sgr0)\]\[\033[38;5;15m\] \w \[$(tput sgr0)\]\[\033[38;5;99m\]\$(__git_ps1 '(%s)')\[$(tput sgr0)\]\[\033[38;5;15m\]\n> \[$(tput sgr0)\]" |
| #!/bin/bash | |
| # set the screen brightness on all outputs | |
| ### variables ### | |
| # You can configure the script by editing these vars, it should not be necessary to change anything else | |
| max="2" # max allowed brightness | |
| min="0.2" # min allowed brightness (0 = blackscreen) | |
| prefix="$(echo ${0} | rev | cut -d "/" -f 1 | rev)" # this name is used as prefix for all output in this script | |
| ## end ## |