This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script inspired by and derived from Proximo (https://github.com/pirateradio/proximo-stacklet) | |
# Usage ./qgoverride rails s | |
if [ "${QUOTAGUARDSTATIC_URL}" == "" ]; then | |
echo "No QUOTAGUARDSTATIC_URL env variable found. Have you installed QuotaGuard Static?" | |
echo "If using Heroku:" | |
echo " heroku addons:add QuotaGuardstatic:test" | |
echo "If using another platform sign-up at quotaguard.com and follow documentation to manually set variable" | |
exit 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
"github.com/mattn/go-xmpp" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## | |
## Usage update_production service [image] | |
## | |
## Arguments: | |
## service: carnival-sidekiq. '-production' will be added automatically | |
## image: redis:latest. Can be empty, in this case image = service:latest | |
## | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:jessie | |
# Install prerequisites | |
RUN apt-get update | |
RUN apt-get install -y git ruby imagemagick | |
# Install bundler | |
RUN gem install bundler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM base/archlinux | |
# Install prerequisites | |
RUN pacman -S git ruby imagemagick --noconfirm | |
# Install bundler | |
RUN gem install bundler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
# Install prerequisites | |
RUN apt-get update | |
RUN locale-gen en_US.UTF-8 | |
RUN apt-get install -y build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev git imagemagick | |
# Install ruby | |
ADD http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz ruby-2.1.2.tar.gz | |
RUN tar -xzvf ruby-2.1.2.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (BOOL)addInSQLStorageWithName:(NSString *)dbFileName error:(NSError **)error { | |
if (!defaultCoordinator) { | |
if (error) { | |
NSDictionary *errorInfo = @{ | |
NSLocalizedDescriptionKey: NSLocalizedString(@"Default coordinator is not registered.", nil) | |
}; | |
*error = [NSError errorWithDomain:NSCocoaErrorDomain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CarnivalMobile.Message = DS.Model.extend({ | |
title: DS.attr('string'), | |
notifications: DS.hasMany('notification') | |
}); | |
CarnivalMobile.MessageSerializer = DS.ActiveModelSerializer.extend(DS.EmbeddedRecordsMixin, { | |
attrs: { | |
notifications: { embedded: 'always' } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface InvocationLogger : NSObject | |
@property (strong, nonatomic) id interceptedTarget; | |
@end |