Skip to content

Instantly share code, notes, and snippets.

@ggreen88
ggreen88 / Set-ProfileForDocker.ps1
Created November 10, 2021 15:46 — forked from sixeyed/Set-ProfileForDocker.ps1
PowerShell aliases for working with Docker on Windows - save to $profile
#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 }
@ggreen88
ggreen88 / README.md
Last active September 15, 2019 19:58
systemd docker-compose

Copy files to /etc/systemd/system Run following commands:

  • systemctl start docker-compose@myservice
  • systemctl enable docker-cleanup.timer
@ggreen88
ggreen88 / weightgurus.py
Created July 25, 2019 18:25 — forked from MarkWalters-dev/weightgurus.py
Access data collected by your Greater Goods Weight Gurus scale
#!/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
@ggreen88
ggreen88 / Export-Chocolatey.ps1
Created December 16, 2018 19:43 — forked from alimbada/Export-Chocolatey.ps1
Export installed Chocolatey packages as packages.config - thanks to Matty666
#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>"
@ggreen88
ggreen88 / Docker Compose Systemd Tutorial.md
Last active March 29, 2021 18:36 — forked from mosquito/README.md
Add docker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@ggreen88
ggreen88 / raspberry-pi-ble-sniffer.md
Created September 22, 2017 18:03 — forked from jkeefe/raspberry-pi-ble-sniffer.md
Notes on using Adafruit's "Bluefruit" BLE sniffer with a Raspberry Pi

BLUETOOTH SNIFFER

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 */