This script is a simple script to redirect you from your site to other locations. It's a very basic short-link generator.
| --- | |
| - hosts: localhost | |
| vars: | |
| - dnsname: your.dns.name | |
| - tmppath: "./tmp/" | |
| - crtpath: "{{ tmppath }}{{ dnsname }}.crt" | |
| - pempath: "{{ tmppath }}{{ dnsname }}.pem" | |
| - csrpath: "{{ tmppath }}{{ dnsname }}.csr" | |
| - pfxpath: "{{ tmppath }}{{ dnsname }}.pfx" | |
| - private_key_password: "password" |
- Cachet is from https://github.com/cachethq/cachet.
- The docker file is based on https://github.com/cachethq/docker.
- The ansible is based on a blog here: https://www.ansible.com/blog/how-i-switched-from-docker-compose-to-pure-ansible (thanks to @mohclips)
- The HTTPS on nginx is based on this gist: https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
- Some of the nginx config is based on this too: https://gist.github.com/JonTheNiceGuy/aaecbfa50605ddd3399b74b933ba7760
This is not a "best-practice" example of doing any of these tasks. The nginx stuff could probably do with being moved into roles, and I could probably move the variables into a file handling that... however, as a POC, it works.
The following scripts are tools I use on a regular basis to run simple activities on the K5 platform. They can fairly easily be modified to work with OpenStack (and, probably in many cases, will work without modifications).
These are all written by me in my spare time, and are released under the WTFPL.
| #!/bin/bash | |
| while ! ping -c 1 8.8.8.8 2>/dev/null >/dev/null ; do | |
| echo Waiting for network... | |
| done | |
| ssh -X bloggsf@localhost -i ~/.ssh/gmm.id_rsa /opt/google/musicmanager/google-musicmanager |
| - name: Create Users on W2012 Server | |
| raw: if (dsquery user -samid "{{item.key}}") {"Not Required"} else { New-ADUser -SamAccountName "{{item.key}}" -UserPrincipalName "{{item.key}}@{{windows_domain}}" -Name "{{item.value.name}}" -DisplayName "{{item.value.name}}" -GivenName "{{item.value.name.split(" ")[1]}}" -Surname "{{item.value.name.split(" ")[-1]}}" -ChangePasswordAtLogon $true -Enabled $true -AccountPassword (ConvertTo-SecureString "{{default_password}}" -AsPlainText -Force) } | |
| - name: Create Users on W2008 Server with Domain Admin | |
| raw: if (dsquery user -samid "{{item.key}}") {"Not Required"} else {dsadd user "CN={{item.key}},CN=Users,{{search_base}}" -samid "{{item.key}}" -upn "{{item.key}}@{{windows_domain}}" -display "{{item.value.name|default("Undefined")}} {{item.value.role|default("")}}" -fn "{{item.value.name.split(" ")[1]|default("Undefined")}}" -ln "{{item.value.name.split(" ")[-1]|default("Undefined")}}" -mustchpwd yes -pwd "{{default_password}}" -memberof "CN=Domain Admins,CN=Users,{{s |
I've been a somewhat casual user of TT-RSS for several years, since Google Reader shut down (basically), but I only noticed this week that there had been no updates.
Turns out that there have been no packaged updates for a while... Two years in fact. Turns out that this forum post provided a script for performing updates, but it only pulled a couple of lines of config.
This updated script fixes that (with the config file 26).
| --- | |
| compute_images: | |
| REDACTED: | |
| name: "REDACTED" | |
| compute_types: | |
| REDACTED: | |
| name: "REDACTED" | |
| az: |
I have been playing with using the https://Home-Assistant.io system at home to play with Home Automation.
One thing I've found is that the Raspberry Pi is perfect for quite a few of the monitoring things that I wanted it to do (see also https://github.com/JonTheNiceGuy/home-assistant-configs for more details of what I'm doing there!).
I'm using the http://OwnTracks.org application to talk to an MQTT server, but I could also do with it knowing where I am in the house, so I looked around for some details on iBeacons.
iBeacon is an Apple standard, but it's very easy to configure on Linux systems. I took some pointers from this article and wrote up this script. When I later went to deploy this on another system, I also needed a pointer from [this PDF](https://cdn-learn.adafruit.com/downloads/pdf/pibeacon-ib