(still a work-in-progress)
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
| ############################################################################### | |
| # Helpful Docker commands and code snippets | |
| ############################################################################### | |
| ### CONTAINERS ### | |
| docker stop $(docker ps -a -q) #stop ALL containers | |
| docker rm -f $(docker ps -a -q) # remove ALL containers | |
| docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
| # exec into container |
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
| from flask import Flask | |
| from flaskext.sqlalchemy import SQLAlchemy, models_comitted | |
| app = Flask(__name__) | |
| db = SQLAlchemy(app) | |
| class Post(db.Model): | |
| id = db.Column('post_id', db.Integer, primary_key=True) | |
| title = db.Column(db.String(200)) | |
| text = db.Column(db.String) |
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 | |
| # This script is used for create virtual hosts on CentOs. | |
| # Created by alexnogard from http://alexnogard.com | |
| # Improved by mattmezza from http://you.canmakethat.com | |
| # Feel free to modify it | |
| # PARAMETERS | |
| # | |
| # $usr - User | |
| # $dir - directory of web files | |
| # $servn - webserver address without www. |
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
| From b86040a5b96460748af8c3949ffd1ad18a9a6bc2 Mon Sep 17 00:00:00 2001 | |
| From: walkline <walkline.ua@gmail.com> | |
| Date: Sun, 3 Jun 2012 15:29:04 +0300 | |
| Subject: [PATCH] Implemented Arena Spectator. | |
| diff --git a/sql/updates/fc_updates_world/arena_spectator.sql b/sql/updates/fc_updates_world/arena_spectator.sql | |
| new file mode 100644 | |
| index 0000000..280de81 | |
| --- /dev/null |