Skip to content

Instantly share code, notes, and snippets.

View tadas-s's full-sized avatar
🍍
( ⚆ _ ⚆ ) ┬───────┬

Tadas Sasnauskas tadas-s

🍍
( ⚆ _ ⚆ ) ┬───────┬
View GitHub Profile
@nemf
nemf / gist:3109649
Created July 14, 2012 06:09
Minimal Kickstart for CentOS 6.3
install
url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/
# if you use proxy
# url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/ --proxy http://proxy-ip:8080/
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw password
firewall --disabled
authconfig --enableshadow --passalgo=sha512
<?php
class DefaultController extends Controller
{
/**
* Dashboard page.
* @Permissions(perm="dashboard_view")
* @Route("/", name="ITEDashboardBundle_index")
* @Template()
* @return array
@pepe84
pepe84 / Bootstrap.php
Created August 26, 2011 10:34 — forked from drslump/Bootstrap.php
PHP Zend: Resources lazy loading
<?php
/**
* Resources lazy loading
*
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
* @version $Id$
*/
@jbpros
jbpros / some_spec.js
Created August 9, 2011 21:00
Stub node modules with jasmine
require('./spec_helper.js');
describe("something.act()", function() {
it("calls the 'root' function of my module", function() {
var mod = spyOnModule('my_module');
something.act();
expect(mod).toHaveBeenCalled();
});
});