Copy files to /etc/systemd/system Run following commands:
- systemctl start docker-compose@myservice
- systemctl enable docker-cleanup.timer
#docker rm $(docker ps -a -q) | |
function Remove-StoppedContainers { | |
foreach ($id in & docker ps -a -q) { | |
& docker rm $id } | |
} | |
#docker rmi $(docker images -f "dangling=true" -q) | |
function Remove-DanglingImages { | |
foreach ($id in & docker images -q -f 'dangling=true') { | |
& docker rmi $id } |
Copy files to /etc/systemd/system Run following commands:
#!/usr/bin/env python3 | |
# So I asked Greater Goods if they would point me in the direction of their API. So I could get data | |
# from their WiFi scale without the limitations of their Weight Gurus app. They said they don't give | |
# that out. So my options are to return the scale to Amazon because it is useless to me without an | |
# API or I figure it out myself. Anyway, I figured it out so you don't have to return your scale. | |
# This isn't an API but from here you can atleast access the data. | |
# If you don't already have the scale you can find it on Amazon | |
# UPC 875011003964 |
#Put this in Export-Chocolatey.ps1 file and run it: | |
#Export-Chocolatey.ps1 > packages.config | |
#You can install the packages using | |
#choco install packages.config -y | |
Write-Output "<?xml version=`"1.0`" encoding=`"utf-8`"?>" | |
Write-Output "<packages>" | |
choco list -lo -r -y | % { " <package id=`"$($_.SubString(0, $_.IndexOf("|")))`" version=`"$($_.SubString($_.IndexOf("|") + 1))`" />" } | |
Write-Output "</packages>" |
Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
Working to sniff Bluetooth Low Energy with the adafruit sniffer
For more information, see this blog post
Going the python route, as described here
before installing pySerial, did ...
// ==UserScript== | |
// @name Clicktime Script | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Sets timecard to previous week, if Wednesday or before. | |
// @author Garrett Green | |
// @match https://app.clicktime.com/App/WeekEntry/ | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/js-url/2.3.0/url.js |
// ==UserScript== | |
// @name Bullhorn Hours Entry | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description Makes it so the hours entry box scrolls down with the dates. This way both date and entry are visable at same time. | |
// @author Garrett Green | |
// @match https://*.bbo.bullhornstaffing.com/employee/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js// ==/UserScript== | |
/* jshint -W097 */ |