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
git status; git submodule foreach --recursive git status |
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 | |
# IL-2 FB Dedicated Server installer. | |
# | |
# Run this script with '-h' option to see the usage help: | |
# il2ds-install.sh -h | |
# ------------------------------------------------------------------------------ | |
# Definitions | |
# ------------------------------------------------------------------------------ |
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
import socket | |
import select | |
import sys | |
from threading import Thread | |
sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) | |
sock.connect( ('192.168.1.36', 20001) ) | |
def client_runner(): |
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
Show hidden characters
[ | |
{ | |
"class": "icon_file_type", | |
"content_margin": [0, 0] | |
}, | |
{ | |
"class": "icon_folder", | |
"content_margin": [0, 0] | |
}, | |
{ |
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
# Python interpreter from environment. | |
ENV_PYTHON="/var/virtualenvs/il2ec/bin/python" | |
# Name of nodes to start | |
# here we have a single node | |
CELERYD_NODES="w1" | |
# or we could have three nodes: | |
# CELERYD_NODES="w1 w2 w3" | |
# Full path to the Django project directory. |
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
# Package generated configuration file | |
# See the sshd_config(5) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
AddressFamily any | |
ListenAddress :: | |
ListenAddress 0.0.0.0 | |
Protocol 2 |
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 imp import find_module | |
from importlib import import_module | |
import sys | |
def autodiscover_module(module_name, installed_apps=None): | |
if installed_apps is None: | |
from django.conf import settings | |
installed_apps = settings.INSTALLED_APPS |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import httplib2 | |
import os | |
from apiclient.discovery import build | |
from apiclient.http import MediaFileUpload | |
from oauth2client.client import SignedJwtAssertionCredentials | |
from oauth2client.file import Storage |
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
server { | |
listen 80; | |
server_name localhost; | |
location /api { | |
return 497; # Forbid execution of API calls via plain HTTP | |
} | |
location / { | |
rewrite ^ https://$host:443$request_uri? permanent; |
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
$.backward_timer | |
methods: Object | |
_check_leading_zero: function (number) { ... | |
_is_exhausted: function() { ... | |
_on_tick: function (previous_delay) { ... | |
_render_seconds: function () { ... | |
_seconds_to_dhms: function (seconds) { ... | |
cancel: function () { ... | |
init: function (options) { ... | |
reset: function () { ... |
OlderNewer