Skip to content

Instantly share code, notes, and snippets.

@27Bslash6
27Bslash6 / gcrgc.sh
Last active September 6, 2020 07:55 — forked from ahmetb/gcrgc.sh
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@27Bslash6
27Bslash6 / circleci_update_build_numbers.sh
Last active April 16, 2018 00:21
Update Dockerfiles from template on CircleCI build
#!/usr/bin/env bash
set -exo pipefail
# If the build url isn't set, we're building locally so
if [[ -z "${CIRCLE_BUILD_URL}" ]]
then
# Don't attempt to update the repository
echo "Local build, skipping repository update..."
exit 0
fi

Keybase proof

I hereby claim:

  • I am 27Bslash6 on github.
  • I am 27bslash6 (https://keybase.io/27bslash6) on keybase.
  • I have a public key whose fingerprint is 5515 3128 CA7E B56C C963 4998 CF16 755D 7690 FD51

To claim this, I am signing this object:

@27Bslash6
27Bslash6 / .gitignore
Created August 13, 2016 05:29 — forked from ashsmith/.gitignore
Magento .gitignore
app/etc/local.xml
downloader/.cache
downloader/cache.cfg
downloader/connect.cfg
includes/src
var/cache
var/connect
var/session
var/locks
var/package
@27Bslash6
27Bslash6 / phantom-docker-daemon.sh
Last active August 29, 2015 14:23
How does the docker daemon respond if it's not running?
# Ubuntu 14.10
uname -a
## Linux box 3.16.0-41-lowlatency #55-Ubuntu SMP PREEMPT Sun Jun 14 18:59:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
## Ubuntu 14.10 \n \l
# Latest Docker development version
docker -v
## Docker version 1.7.0-dev, build 6a7a757
@27Bslash6
27Bslash6 / keybase.md
Created March 17, 2015 23:41
keybase.md

Keybase proof

I hereby claim:

  • I am funkygibbing on github.
  • I am funkygibbon (https://keybase.io/funkygibbon) on keybase.
  • I have a public key whose fingerprint is ED9A 4692 9D85 8608 14FC 67C5 D3A3 8256 4B1D EE54

To claim this, I am signing this object:

//https://github.com/carhartl/jquery-cookie
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function c(a){if(e.raw)return a;try{return decodeURIComponent(a.replace(b," "))}catch(c){}}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),a=c(a);try{return e.json?JSON.parse(a):a}catch(b){}}var b=/\+/g,e=a.cookie=function(b,f,g){if(void 0!==f){if(g=a.extend({},e.defaults,g),"number"==typeof g.expires){var h=g.expires,i=g.expires=new Date;i.setDate(i.getDate()+h)}return f=e.json?JSON.stringify(f):String(f),document.cookie=[e.raw?b:encodeURIComponent(b),"=",e.raw?f:encodeURIComponent(f),g.expires?"; expires="+g.expires.toUTCString():"",g.path?"; path="+g.path:"",g.domain?"; domain="+g.domain:"",g.secure?"; secure":""].join("")}for(var j=b?void 0:{},k=document.cookie?document.cookie.split("; "):[],l=0,m=k.length;m>l;l++){var n=k[l].split("="),o=c(n.shift()),p=n.join("=");if(b&&b===o){j=d(p);break}b||void 0===(p=d(p))||(j[o]=p)}re