Skip to content

Instantly share code, notes, and snippets.

Avatar

Ed Fricker beastawakens

  • Software Communications
  • UK
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am beastawakens on github.
  • I am beastawakens (https://keybase.io/beastawakens) on keybase.
  • I have a public key ASAWu4ZWWaGDXAYvTg3xARKHOJPqhALVWhk6pjpNIsyJDQo

To claim this, I am signing this object:

View qorum.convox.yml
resources:
database:
type: postgres
options:
version: 11
redis:
type: redis
services:
app:
build: .
@beastawakens
beastawakens / funretro_export.js
Created Mar 8, 2018 — forked from andrejj/funretro_export.js
fun retro export script
View funretro_export.js
// paste it in the dev console
s=""; $('.column-header > h2').each(function(){s += '\n\n'+this.innerText+'\n'; $(this).closest('.message-list').find('.message-body > .text').each(function(){s += ' - '+this.innerText+'\n';}) }); console.log(s)
@beastawakens
beastawakens / updateKafkaReplication.sh
Last active Mar 28, 2017
Simple script to update replicating brokers per topic for a Kafka cluster
View updateKafkaReplication.sh
#!/bin/bash
# usage like ./updateKafkaReplication.sh test-replica-update 0,1,2
TOPIC_NAME=$1
REPLICAS=$2
echo "****************************************"
echo "describe $TOPIC_NAME"
bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic $TOPIC_NAME
@beastawakens
beastawakens / example-docker-compose.yml
Created Mar 15, 2017
Getting Convox apps working with local .dev domains
View example-docker-compose.yml
version: "2"
services:
web:
build:
context: .
# Found the previous convox init using the 'convox/rails' image doesn't work due to the built-in nginx adding another layer of complexity. The new init using buildpacks is better.
command: bin/rails server -p $$PORT -e $$RAILS_ENV -b 0.0.0.0
environment:
- PORT=4001
# skip out other unimportant env vars
View GTM_for_Acquire.js
<script>
var intercomSettings = {
app_id: "{{Intercom app ID}}"
};
(function() {var w = window;var ic = w.Intercom;if (typeof ic === "function") {ic('reattach_activator');ic('update', intercomSettings);} else {var d = document;var i = function() {i.c(arguments)};i.q = [];i.c = function(args) {i.q.push(args)};w.Intercom = i;var s = d.createElement('script');s.type = 'text/javascript';s.async = true;
s.src = 'https://widget.intercom.io/widget/{{Intercom app ID}}';
var x = d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);}})();
</script>
@beastawakens
beastawakens / gtm-intercom.js
Created Jan 22, 2016
Adding Google Tag Manager variables to intercomSettings
View gtm-intercom.js
<script>
// app ID
var intercomSettings = {
app_id: "{{IC - Dynamic app ID}}"
};
// Verifies and cleans all GTM variables
function pushGTMVariablesToIntercom(gtmKey, gtmValue) {
if("{{User - Account - Type}}" != "Guest"){
if(gtmValue != null && gtmValue != "" && gtmValue != "undefined") {