I hereby claim:
- I am squizzi on github.
- I am squizzi (https://keybase.io/squizzi) on keybase.
- I have a public key ASD0kS49KU_989cxxqdYwhle5rc4NEpFgcLuUsxlJiR8rAo
To claim this, I am signing this object:
#!/usr/bin/env python | |
# Copyright (C) 2017, Kyle Squizzato <[email protected]> | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import os | |
from subprocess import Popen | |
""" | |
Notify users via notify-send in gnome-shell, if sending an error use is_error=True | |
Edit service_title with the desired title notify-send will use when sending msg | |
""" | |
def notify_msg(msg, service_title="Your service here", is_error=False): | |
# Determine which level we should write to |
/* Monospace fonts across case comments and case fields */ | |
.caseTab .tertiaryPalette, | |
.individualPalette .caseBlock .tertiaryPalette, | |
.layoutEdit .individualPalette .caseBlock .tertiaryPalette { | |
background-color: #36a0fe; | |
border-color: #015ba7; | |
} | |
.caseTab .primaryPalette, | |
.individualPalette .caseBlock .primaryPalette { | |
background-color: #1797c0; |
#!/bin/bash | |
## capture-host-performance | |
## Maintainer: Kyle Squizzato - [email protected] | |
## Simple tool to capture performance statistics around a daemon log match. | |
## Only supports distros using journalctl at this time. | |
## Fill in each of the variables in the SETUP section then invoke the script | |
## and wait for the issue to occur, the script will stop on it's own when |
## Diagnostic data capture for Docker services and their associated tasks | |
## Run where client bundle is loaded or on a swarm manager | |
## Use something like: | |
## docker service ps $each | grep -v 'ID' | awk '{print $1 " " $6}' | egrep -i 'failed|running' | awk '{print $1}'; | |
## to grep out specific states within TASK_ID | |
## --- | |
# Create a directory to store this data in | |
DIRECTORY="$(pwd)/docker-service-info/" | |
mkdir -p $DIRECTORY |
# Replace the calendar icon with the correct date daily | |
string=$(date +%d) | |
if [ ${#string} -le 2 ]; then | |
string=$(printf %02d $string) | |
fi | |
sed -i "s/calendar-blue-[0-9][0-9]*/calendar-blue-$string/" ~/.local/share/applications/chrome-ejjicmeblgpmajnghnpcppodonldlgfn-Profile_2.desktop |
#!/bin/bash | |
## capture-host-performance | |
## docker logs edition | |
## Maintainer: Kyle Squizzato - [email protected] | |
## Simple tool to capture performance statistics around a docker logs match. | |
## Invoke the script and wait for the issue to occur, the script will stop | |
## on it's own when $match is seen in the $container_name log file. |
var request = require('request'); | |
var base_url = "http://api:8080/"; | |
describe("When testing 'api/pet'", function(){ | |
it("should respond with the URL of a cat GIF", function(done) { | |
request(base_url + 'api/pet', function(error, response, body){ | |
expect(body).toMatch(/\{"imageId":\d+,"url":"http(s?):/); | |
done(); | |
}); | |
}); |
#!/bin/sh | |
# Available on hub: docker pull squizzi/populate-dtr:latest | |
# Script to quickly and easily populate a DTR test environment with some images and tags | |
# Usage/help text | |
usage_text () { | |
echo -e "Usage: docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock squizzi/populate-dtr -H <hostname>:<port> -u <username> -p <password>" | |
exit 1 | |
} |