Skip to content

Instantly share code, notes, and snippets.

View thomasbellio's full-sized avatar

Thomas Bell thomasbellio

View GitHub Profile
@thomasbellio
thomasbellio / THE-MODIFIED-ANTI-DICK-3-CLAUSE-BSD-2-LICENSE.md
Created February 1, 2026 21:31
The Modified Anti-Dick 3-Clause BSD 2 License

The Modified Anti-Dick 3-Clause BSD 2 License

Copyright

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

@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)