I hereby claim:
- I am samsalisbury on github.
- I am samsalisbury (https://keybase.io/samsalisbury) on keybase.
- I have a public key ASB9YPaXQaf3WTgYzmcXIFh2fs6Vo8Lqd-9dS6VYuD9XqQo
To claim this, I am signing this object:
@media (min-width: 700px) { | |
:root { | |
--title-font-size: 6rem !important; | |
--logo-size: 8rem !important; | |
} | |
} | |
@media (max-width: 700px) { | |
:root { | |
--title-font-size: 4rem !important; | |
--logo-size: 6rem !important; |
FROM centos:7 | |
RUN curl -o /etc/yum.repos.d/hashicorp repo http://rpm.releases.hashicorp.com/RHEL/hashicorp.repo | |
RUN mkdir /var/linux-build-info/ | |
RUN touch /var/linux-build-info/newfile.txt | |
COPY do-stuff / | |
CMD /do-stuff |
I hereby claim:
To claim this, I am signing this object:
[ | |
.[] | |
| | |
select( | |
.NumInstances != 0 | |
and ( .SourceID.Location | startswith("github.com/sous") | not ) | |
and ( .SourceID.Location | contains("hack") | not ) | |
and ( .SourceID.Location | contains("demo") | not ) | |
and ( .SourceID.Location | contains("sous") | not ) | |
) |
#!/bin/sh | |
# I keep scripts like this in $HOME/bin and add that dir to my | |
# path, so I can call e.g. `connect some.host.com` from anywhere. | |
[ -z "$1" ] && { | |
echo "usage: $0 <hostname>"; exit 3 | |
} | |
REMOTE_TMUX_SESSION_NAME=Sam |
#!/bin/sh | |
# This script can be executed on a graphite node to resize output from https://github.com/samsalisbury/mesos_stats | |
DIR=/opt/graphite/storage/whisper/mesos_stats | |
RULE="1m:14d 5m:60d 10m:120d 1h:2y" | |
# First set the retention for all, leaving the existing default aggregation (which in our config was avg, xfilesfactor=0.5) | |
find $DIR -name *.wsp | while read f; do whisper-resize.py $f $RULE; done | |
# Now override the aggregations for the following special cases that need summing (using xfilesfactor=0.1 as is common for summing in our config) | |
find $DIR -name *_time_secs.wsp -or -name failed.wsp -or -name lost.wsp -or -name finished.wsp | while read f; do |
package main | |
/* | |
Allows <d>easier</d> inelegant navigation of JSON unmarshalled to interface{} | |
*/ | |
type si struct { | |
value interface{} |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
namespace ExternalApi.Logging | |
{ | |
public static class UserInputAnonymiser | |
{ | |
public static JToken Anonymise(JToken data) | |
{ | |
foreach (var prop in data.Children<JProperty>()) |