Inspired by this blog post but found the scipt didn't work quite right because it used single quotes (') instead of double inside the JSON body. The tweaked scripts look like this:
#!/bin/sh
username=admin| This smart home is controlled by Home Assistant. | |
| An overview of the lights in this home | |
| {%- for state in states.light %} | |
| {%- set light_name = state.name %} | |
| {%- set light_state = state.state %} | |
| - {{ light_name }} is {{ light_state }} | |
| {%- endfor %} |
| # Original: https://gist.github.com/allenporter/e70d9eb090c7dbdd593cf526e07b4abe | |
| # Found in comments: | |
| # https://gist.github.com/allenporter/e70d9eb090c7dbdd593cf526e07b4abe?permalink_comment_id=4796049#gistcomment-4796049 | |
| blueprint: | |
| name: Daily Conversation agent Agenda Notification | |
| description: | |
| Conversation agent generates a personalized notification based on the | |
| upcoming calendar agenda, location, and weather information in your language. | |
| domain: automation | |
| input: |
Inspired by this blog post but found the scipt didn't work quite right because it used single quotes (') instead of double inside the JSON body. The tweaked scripts look like this:
#!/bin/sh
username=admin| $Path = ($env:ProgramFiles + "\Git\mingw64\ssl\certs\ca-bundle.crt") | |
| # Make a backup | |
| Copy-Item $Path ($Path + ".old") -Force | |
| $certs = Get-Childitem cert:\LocalMachine\root -Recurse | |
| foreach ($cert in $certs) { | |
| Add-Content $Path "-----BEGIN CERTIFICATE-----" | |
| Add-Content $Path -Value ([convert]::tobase64string((get-item $cert.PSPath).RawData)) -Encoding Ascii | |
| Add-Content $Path "-----END CERTIFICATE-----" |
XXXX with the proper subdomain as provided by the Gallery
location /templates/ {
proxy_pass http://XXXX.bcvp0rtal.com/templates/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $proxy_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /common-assets/ {
Rough instructions on insatlling the VMware Horizon Client on Ubuntu
cd to the directory the .bundle file downloaded tochmod +x VMware-Horizon-Client-*sudo ./VMware-Horizon-Client-*vmware-view| #!/bin/bash | |
| #Write Output to Syslog for consumption by logging server | |
| exec 1> >(logger -s -t $(basename $0)) 2>&1 | |
| #Update everything via the wp-cli tool (http://wp-cli.org/) | |
| /usr/local/sbin/wp cli update --yes #Update the tool its self first | |
| /usr/local/sbin/wp core upgrade --path='/var/www/html' --quiet | |
| /usr/local/sbin/wp core update-db --path='/var/www/html' --quiet | |
| /usr/local/sbin/wp core update-db --network --path='/var/www/html' --quiet |
| # This assumes that the script is being run from (or in the context of) a folder that contains all the original markdown files and that you've used a .md suffix | |
| # Because my originals are kept in Sharepoint this only regenerates the files if the original markdown file has changed. This fixes versioning in Sharepoint | |
| $originals = Get-ChildItem . -Filter *.md | |
| foreach ($original in $originals){ | |
| $pdf_original = [System.IO.Path]::GetFileNameWithoutExtension($original) + ".pdf" | |
| if ((!(Test-Path ..\$pdf_original)) -or (((Get-ItemProperty -Path $original -Name LastWriteTime).lastwritetime.DateTime) -ge ((Get-ItemProperty -Path ..\$pdf_original -Name LastWriteTime).lastwritetime.DateTime))) { | |
| pandoc -V geometry:paperwidth=8.5in -V geometry:paperheight=11in -V geometry:margin=1in -s -S "$original" -o "..\$pdf_original" | |
| } | |
| } | |
| foreach ($original in $originals){ |
Remove all group members Get-ADGroupMember "TESTGROUP" | ForEach-Object {Remove-ADGroupMember "TESTGROUP" $_ -Confirm:$false}
Add similar groups to one group get-adgroup -filter {name -like "group*end"} | ForEach-Object {Add-ADGroupMember -Identity "TESTGROUP" -Members $_}
Disable computer account based on name Get-ADComputer COMPUTERNAME | Disable-ADAccount
| #!/bin/bash | |
| #@author Jamison Kissh | |
| #Schedule the job to run via a cron job | |
| #edit line below to include password after -p | |
| mysqldump -u root -p --all-databases | gzip > ./database`date +%F_%T`.sql.gz | |
| #Remove backups older than five days | |
| find ./database* -mtime +5 -exec rm {} \; |