Skip to content

Instantly share code, notes, and snippets.

View thomasbellio's full-sized avatar

Thomas Bell thomasbellio

View GitHub Profile
@thomasbellio
thomasbellio / kubespray-scale-output.txt
Created December 12, 2017 12:12
Output from scale of kubespray
PLAY [localhost] **********************************************************************************************************************************************************************************
TASK [download : Register docker images info] *****************************************************************************************************************************************************
Monday 11 December 2017 16:39:50 -0500 (0:00:00.081) 0:00:00.081 *******
TASK [download : container_download | Create dest directory for saved/loaded container images] ****************************************************************************************************
Monday 11 December 2017 16:39:51 -0500 (0:00:00.037) 0:00:00.119 *******
TASK [download : container_download | create local directory for saved/loaded container images] ***************************************************************************************************
Monday 11 December 2017 16:39:51 -0500 (0:00:00.041) 0:00:00.160 ***
@thomasbellio
thomasbellio / gist:a4bee2646c70d79b0cc0
Last active August 29, 2015 14:18
Sci Linux Defaults iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
<?hh namespace Repositories\Generics;
class BaseRepository<T>
{
private $model;
public function __construct(T $model)
{
@thomasbellio
thomasbellio / BaseRepository.php
Last active August 29, 2015 14:07
How the hack (doesn't) handles generic classes
<?hh namespace Repositories\Generics;
class BaseRepository<T>
{
/**
* Saves the model
* @param T $model
* @return bool true if the model was saved
*/
public function save(T $model)