Skip to content

Instantly share code, notes, and snippets.

View rande's full-sized avatar
🖖
hello!

Thomas rande

🖖
hello!
View GitHub Profile
@rande
rande / assetic.yml
Created May 14, 2012 22:16
assetic assets packages
assetic:
debug: false
use_controller: false
read_from: %kernel.root_dir%/../web
write_to: %kernel.root_dir%/../web
dump_on_warmup: false # do not compile on cache warmup
bundles: [] # disable bundles parsing
filters:
yui_js:
@rande
rande / adblock
Last active December 17, 2017 09:55
# this is custom domain to block
gfwsl.geforce.com
gfe.geforce.com
telemetry.nvidia.com
gfe.nvidia.com
telemetry.gfe.nvidia.com
events.gfe.nvidia.com
events-dc1.gfe.nvidia.com
events-dc2.gfe.nvidia.com
events-dc3.gfe.nvidia.com
@rande
rande / stubRouterContext.js
Created February 4, 2015 21:43
Stub For React Router
/**
* From https://github.com/rackt/react-router/blob/master/docs/guides/testing.md
*
* var stubRouterContext = require('./stubRouterContext');
* var IndividualComponent = require('./IndividualComponent');
* var Subject = stubRouterContext(IndividualComponent, {someProp: 'foo'});
* React.render(<Subject/>, testElement);
*/
var React = require('react');
@rande
rande / closure.go
Last active January 24, 2017 23:11
package main
import (
"fmt"
"encoding/json"
"io/ioutil"
)
type User struct {
Name string `json:"name"`
services: []
before_script:
- curl -sL https://github.com/rande/gitlab-ci-helper/releases/download/master/gitlab-ci-helper-linux-amd64 -o /usr/local/bin/ci-helper && chmod 755 /usr/local/bin/ci-helper
- ci-helper flowdock:status ekino "ekino jobs"
- source /root/.bashrc
stages:
- build
- test
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
require 'capifony_symfony2'
default_run_options[:pty] = true
set :application, "set your application name here"
set :domain, "#{application}.com"
set :app_path, "app"
set :repository, "git@gitlab.mycompany.com:php-sandbox.git"
#!/bin/sh -ex
# reset local junit data
rm -rf junit; mkdir junit
# update puppet submodules
git submodule update --init
# add the ssh agent, so capistrano can use it
eval `ssh-agent`; ssh-add /var/lib/jenkins/.ssh/id_rsa
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.forward_agent = true
config.vm.define "default", primary: true do |web|
web.vm.box = "ubuntu13_04"
web.vm.box_url = "https://dl.dropboxusercontent.com/s/eo85etnrthnrrfn/ubuntu_13_04.box"
@rande
rande / gist:6615971
Last active December 23, 2015 09:39
<?php
namespace Stats\Test;
use Stats\Entry;
interface ComputerInterface
{
/**
* @return string
{
"name": "sonata-project/sandbox",
"description": "Sonata Project's sandbox (with ecommerce bundles)",
"license": "MIT",
"autoload": {
"psr-0": { "": "src/" },
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
},