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
#!/usr/bin/env node | |
var path = require('path'), | |
exec = require('child_process').exec, | |
when = require('when'), | |
gm = require('gm'), | |
Gearman = require('node-gearman'), | |
gearman = new Gearman(), | |
options = { | |
thumbDir: path.join(__dirname, 'thumb'), |
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
(function($) { | |
"use strict"; | |
var dictionary = {}; | |
$.Await = (function() { | |
function create(name, options) { | |
if (!(name in dictionary)) { | |
dictionary[name] = new $.Await._dictionary(name, options); | |
} | |
return dictionary[name]; |
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
use strict; | |
use warnings; | |
use Rex::Transaction; | |
use Rex::Apache::Build; | |
use Rex::Apache::Deploy "Symlink"; | |
user "vgmdb"; | |
private_key "/var/lib/jenkins/.ssh/id_rsa"; | |
public_key "/var/lib/jenkins/.ssh/id_rsa.pub"; |
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
if (window.history && window.history.replaceState && window.location.hash == '#_=_') { | |
var loc = window.location; | |
window.history.replaceState({}, document.title, loc.protocol + '//' + loc.host + loc.pathname); | |
} |
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 | |
namespace Acme\Bundle\WebBundle\Security\User; | |
use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface; | |
class UserInterface extends BaseUserInterface | |
{ | |
/** | |
* Email, e.g. [email protected] |
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
#!/usr/bin/env php | |
<?php | |
/* PHPUnit | |
* | |
* Copyright (c) 2001-2012, Sebastian Bergmann <[email protected]>. | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: |
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 Symfony\Component\HttpKernel\Exception\HttpException; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\RequestMatcher; | |
require_once __DIR__.'/../vendor/autoload.php'; | |
$app = new Durian\Application(); |
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
<!DOCTYPE html> | |
<html prefix="og: http://ogp.me/ns#" xmlns:og="http://ogp.me/ns#"> | |
<head> | |
<meta charset="utf-8"> | |
<title> | |
{% if is_login %}Login | |
{% elif is_home %}{{ site.author }} | |
{% elif is_tag %}{{ tag }} | |
{% elif post.type == 'post' %}{{ post.title }} | |
{% elif post.type == 'link' %}{{ link.title }} |
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
variable "access_key" {} | |
variable "secret_key" {} | |
variable "region" { | |
default = "ap-southeast-1" | |
} | |
variable "zone" { | |
default = "ap-southeast-1a" | |
} |
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
#!/usr/bin/python | |
import json | |
import os | |
import shutil | |
import subprocess | |
import re | |
dockerdir = '/var/lib/docker' | |
volumesdir = os.path.join(dockerdir, 'volumes') |
OlderNewer