Creates a docker registry for storing built images.
This file contains 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 | |
if ! ping -c 1 google.com -W 10 > /dev/null 2>&1; then | |
interface=$(ifconfig -a |grep -E "(enp([a-z0-9]+)|eth([0-9]+))" | grep -v "veth" | awk '{print $1}' | sed -r "s/://g") | |
echo " >> Bringing up the ethernet interface $interface" | |
killall dhclient -9 > /dev/null 2>&1 | |
dhclient $interface | |
echo " >> Setting up DNS" |
This file contains 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
import tornado.ioloop | |
import tornado.web | |
import json | |
import os | |
class MainHandler(tornado.web.RequestHandler): | |
config = {} | |
def initialize(self, config): | |
self.config = config |
This file contains 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 declare(strict_types = 1); | |
namespace App\Core\Form\Type; | |
use App\Core\Service\Content\TextUtils; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\Extension\Core\Type\{TextType, LanguageType, SubmitType, CheckboxType}; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; |
This file contains 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 declare(strict_types = 1); | |
namespace App\Core\DependencyInjection\Extension; | |
use App\Core\Service\Serializer; | |
/** | |
* Extends the class with awareness of Serializer service | |
* | |
* Created for free for the anarchist movement around the world. |
This file contains 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
class TilesViewManager { | |
/** | |
* @param {array} tiles | |
* @param {number} maxTiles | |
* @param {number} maxInRow | |
* @param {number} maxDoubleElements | |
*/ | |
constructor (tiles, maxTiles, maxInRow, maxDoubleElements) { | |
this.tiles = tiles |
This file contains 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 | |
printf " >> Pulling all base images\n" | |
for image_name in $$(cat ./containers/*/Dockerfile | grep -E "FROM (.*)" | sed -e 's/FROM //g'); do \ | |
echo " >> Pulling $$image_name"; \ | |
sudo docker pull "$${image_name}"; \ | |
done | |
printf " >> Pulling images from docker-compose\n" | |
sudo docker-compose pull |
This file contains 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
from tornado import web | |
import tornado | |
import tornado.httpclient | |
import tornado.httputil | |
import logging | |
from .BaseController import BaseHandler | |
logger = logging.getLogger('tornado_proxy') |
This file contains 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
import tornado.web | |
# | |
# Created for Anarchist movement | |
# | |
# http://iwa-ait.org | |
# http://zsp.net.pl | |
# |
This file contains 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 | |
if [[ ! -f /var/lib/mysql/ibdata1 ]]; then | |
cd /usr/local/mysql/ | |
mysql_install_db --user=mysql --ldata=/var/lib/mysql | |
fi | |
echo " >> Starting MySQL from /var/lib/mysql" | |
exec mysqld --datadir=/var/lib/mysql |