I hereby claim:
- I am holmboe on github.
- I am holmboe (https://keybase.io/holmboe) on keybase.
- I have a public key whose fingerprint is F67B 24EC 58E9 5563 0DFA 68D3 F5DE 4A8B 2AA6 ACB6
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Usage examples: | |
| # | |
| # test-saltapi | |
| # test-saltapi testPing | |
| # VERBOSITY=9 test-saltapi | |
| # VALID_TARGETS="salt min1 min2" test-saltapi testMinions |
| # -*- coding: utf-8 -*- | |
| # NOTE: A models.py file must exist, even if empty, or the test suite | |
| # will not run! See django/django#7198. | |
| # Usage examples: | |
| # | |
| # manage.py test django_saltapi | |
| # manage.py test django_saltapi.testPing | |
| # manage.py test -v 3 django_saltapi |
| ''' | |
| Make api awesomeness | |
| ''' | |
| # Import Python libs | |
| import inspect | |
| # Import Salt libs | |
| import salt.client | |
| import salt.runner | |
| import salt.wheel |
| #!/usr/bin/env python | |
| ''' | |
| Tool to manage a local copy of formulas (https://github.com/saltstack-formulas). | |
| ''' | |
| import base64 | |
| import contextlib | |
| import logging | |
| import os | |
| import re |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # -*- coding: utf-8; mode: sh -*- | |
| set -o nounset | |
| set -o errexit | |
| #? junkfind -- list Spacemacs junk files | |
| #? Copyright (C) 2017 Henrik Holmboe | |
| #? License CC0 1.0 Universal | |
| #? | |
| #? 2017-04-24: Initial version |
| #!/usr/bin/env bash | |
| # -*- coding: utf-8; mode: sh -*- | |
| set -o nounset | |
| set -o errexit | |
| #? arrangedisplays -- set up displays using xrandr | |
| #? Copyright (C) 2018 Henrik Holmboe | |
| #? License CC0 1.0 Universal | |
| #? |
| #!/usr/bin/env python | |
| # Generate OpenStack flavor permutations | |
| # The flavor name can be generated easily with Bash, but then we wouldn't get | |
| # the corresponding RAM in MB, etc that is required by the `openstack flavor` | |
| # command. | |
| # | |
| # Roughly equivalent: | |
| # echo {1C,2C,4C,8C}-{0.5GB,1GB,2GB,4GB,8GB,16GB,32GB,64GB,128GB}-{5GB,10GB,20GB,40GB} |
| #!/bin/sh | |
| # -*- coding: utf-8; mode: sh -*- | |
| current_time=$(date -d 'now' +%s) | |
| lid_opened=$(date -d "$(journalctl -t systemd-logind -b | grep 'Lid opened' | tail -n1 | awk '{print $1, $2, $3}')" +%s) | |
| worked_hours=$(echo 'scale=2;(' $current_time - $lid_opened ')' / 3600 | bc) | |
| echo 'You have worked:' $worked_hours 'hours' |
An experimental Wildfly SELinux policy