-
copy where you want eg. ~/bin/colorize.sh
(cd ~/bin/ && wget https://gist.githubusercontent.com/esion/1c68692d4a03f9effd64/raw/dba30293223144e386cc3cf7ccbebac3aa7d8c32/colorize.sh)
This file contains hidden or 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
du -h --max-depth=1 / |
This file contains hidden or 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
netstat -pln |
This file contains hidden or 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
var app = angular.module("app", []); | |
app.directive("a", function() { | |
return { | |
restrict: "A", | |
controller: function() { | |
this.Foo = function(msg) { | |
console.log("foo" + msg); | |
}; | |
} |
This file contains hidden or 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 | |
sfContext::getInstance()->getConfiguration()->loadHelpers(); |
This file contains hidden or 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\DemoBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Doctrine\Bundle\DoctrineBundle\Registry; | |
use Symfony\Component\OptionsResolver\Options; | |
use Doctrine\Common\Util\Inflector; | |
use Symfony\Component\Form\Exception\FormException; |
This file contains hidden or 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 Reflected; | |
use A as Base; | |
/** | |
* Proxy class exemple | |
* | |
* @author depely |
This file contains hidden or 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 | |
# gnome shell | |
# http://askubuntu.com/questions/73030/can-i-get-unity-style-super1-9-keyboard-shortcuts-for-launching-apps-in-gnome | |
sudo apt-get install gnome-shell wmctrl xbindkeys | |
cat """ | |
#Terminal | |
"wmctrl -xa Terminal || terminal" |
This file contains hidden or 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
/* | |
* It would be great if you fork & upgrade | |
* created by; Zolmeister | |
* edited by: Isinlor | |
* - added clone | |
* - upgrade of aim - for cloned robot | |
* - upgrade of aim - counting missed attack and adaptation | |
* - upgrade of dodge - move according to the hp | |
* edited by: type your nickname | |
* - what you changed - description |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |