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
mysql: | |
image: mysql:latest | |
ports: | |
- "13306:3306" | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
volumes: | |
- /srv/docker/mysql:/var/lib/mysql | |
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/sh | |
# /etc/init.d/docker-cassandra | |
# | |
case "$1" in | |
start) | |
echo "Starting docker cassandra..." | |
docker start cassandra_cassandra_1 | |
;; | |
stop) |
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 ubuntu:latest | |
MAINTAINER John Andersen <johnandersenpdx@gmail.com> | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
# Install apache, PHP, and supplimentary programs. curl and lynx-cur are for debugging the container. | |
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 php5-mysql php5-gd php-pear php-apc php5-curl curl lynx-cur | |
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 os | |
import sys | |
import random | |
import string | |
def id_generator(size=6, chars=string.ascii_uppercase + string.digits): | |
return ''.join(random.choice(chars) for _ in range(size)) | |
def objdump(file_name, function="main"): | |
tmp = id_generator() |
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
// Creates an object from a form | |
$.fn.toObject = function() | |
{ | |
var o = {}; | |
var a = this.serializeArray(); | |
$.each(a, function() { | |
if (o[this.name] !== undefined) { | |
if (!o[this.name].push) { | |
o[this.name] = [o[this.name]]; | |
} |
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 sys | |
import threading | |
import paramiko | |
__connections__ = {} | |
__hosts__ = {} | |
EXAMPLE_HOSTS = [ | |
{ |
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
#include <fcntl.h> | |
#include <limits.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/fanotify.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <stdio.h> |
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
""" | |
sanitize is a colletion of database functions to | |
abtract file storage and other actions | |
""" | |
import sys | |
import uuid | |
from fs.opener import fsopendir | |
# Custom modules | |
import extra.config as 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
""" | |
Makes docker listen on lan | |
tcp://192.168.1.32:2375 | |
http://192.168.1.32:2375 | |
""" | |
import json | |
import copy | |
import fcntl | |
import socket | |
import string |
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
# VERSION: 0.1 | |
# DESCRIPTION: X11 and Openssh server in a container | |
# AUTHOR: John Andersen <johnandersenpdx@gmail.com> | |
# COMMENTS: | |
# This file builds a container which can be accessed via ssh | |
# with username=user password=user. Usefull as a base image | |
# for a conatiner which whishes to install gui software | |
# USAGE: | |
# # Download x11 Dockerfile | |
# wget https://gist.githubusercontent.com/pdxjohnny/0ae3d5b2eba388829c03/raw/b12c5e5e89ad80400f73c38ce464a672378572d0/Dockerfile |