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
version: "2" | |
services: | |
## | |
# Debian Workspace | |
## | |
# 9zilla: | |
# container_name: 9zilla | |
# hostname: 9zilla |
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
ln -s /var/lib/boot2docker/tools/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose | |
ln -s /var/lib/boot2docker/containers/ /var/containers |
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 django.http import HttpResponseRedirect | |
from django.conf import settings | |
# from django.views.decorators.clickjacking import xframe_options_exempt | |
from re import compile | |
EXEMPT_URLS = [compile(settings.LOGIN_URL.lstrip('/'))] | |
if hasattr(settings, 'LOGIN_EXEMPT_URLS'): | |
EXEMPT_URLS += [compile(expr) for expr in settings.LOGIN_EXEMPT_URLS] | |
class LoginRequiredMiddleware: |
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
map h goBack | |
map l goForward | |
map H previousTab | |
map L nextTab | |
map i LinkHints.activateMode | |
map I LinkHints.activateModeToOpenInNewTab |
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/sh | |
status="$1" | |
ext="$2" | |
if [ '!' = "${1}" ]; then | |
status='\!' | |
elif [ '' = "${1}" ]; then | |
status='' | |
fi |
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
<?php | |
use Behat\Behat\Context\Context; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Mink\WebAssert; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
use WebDriver\Session; |
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 centos:7 | |
MAINTAINER Naoaki Obiki | |
RUN yum update -y | |
RUN yum group install -y 'Development Tools' | |
RUN yum install -y libxml2-devel wget | |
RUN wget "http://jp2.php.net/get/php-7.0.9.tar.gz/from/this/mirror" -P /usr/local/src/ | |
RUN mv /usr/local/src/mirror /usr/local/src/php-7.0.9.tar.gz | |
RUN wget "http://pecl.php.net/get/pthreads-3.1.6.tgz" -P /usr/local/src/ |
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 | |
if [ "upload" == $1 ];then | |
scp `dirname $0`/$2/$3 hostname:/path/to/workspace/$2/$3 | |
elif [ 'download' == $1 ];then | |
scp hostname:/path/to/workspace/$2/$3 `dirname $0`/$2/$3 | |
fi |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# A dummy plugin for Barge to set hostname and network correctly at the very first `vagrant up` | |
module VagrantPlugins | |
module GuestLinux | |
class Plugin < Vagrant.plugin("2") | |
guest_capability("linux", "change_host_name") { Cap::ChangeHostName } | |
guest_capability("linux", "configure_networks") { Cap::ConfigureNetworks } | |
end | |
end |
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
# Compose: | |
# docker-compose -f trello.yml run --rm trello [board|list|card] | |
# API Key: | |
# https://trello.com/1/appKey/generate | |
# Member Token: | |
# [RO] https://trello.com/1/connect?key=YOUR_API_KEY&name=trello-cli&response_type=token | |
# [RW] https://trello.com/1/authorize?key=YOUR_API_KEY&name=trello-cli&expiration=never&response_type=token&scope=read,write | |
version: "2" |
OlderNewer