2015-10-21
- jennifer
- martym
#!/bin/sh | |
# store start date to a variable | |
imeron=`date` | |
echo "Import started: OK" | |
dumpfile="[SQL_PATH]" | |
ddl="set names utf8; " | |
ddl="$ddl set global net_buffer_length=1000000;" |
; Max memory per instance | |
memory_limit = 128M | |
;The maximum size of an uploaded file. | |
upload_max_filesize = 128M | |
;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize | |
post_max_size = 128M |
### Keybase proof | |
I hereby claim: | |
* I am faghani on github. | |
* I am faghani (https://keybase.io/faghani) on keybase. | |
* I have a public key ASD2eIaGa1rq4QWtawf4X7d10MXZQf_WRKk1EMHrqphIsQo | |
To claim this, I am signing this object: |
#!/usr/bin/env python3 | |
"""Backs up and restores data-only volumes to/from host backup directory using | |
rsync. Only backup named volumes, which is arbitrarily set to ones having a name | |
length < 40 characters. | |
1. Create a Docker image containing rsync (named rsync) | |
https://github.com/firecat53/dockerfiles/tree/master/rsync | |
``docker build -t rsync .`` |
# Create a pod containing the PHP-FPM application (my-php-app) | |
# and nginx, each mounting the `shared-files` volume to their | |
# respective /var/www/html directories. | |
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: phpfpm-nginx-example | |
spec: | |
volumes: |
FROM alpine:3.5 | |
ENV NGINX_VERSION 1.11.10 | |
ENV LUAROCKS_VERSION 2.4.2 | |
ENV NGX_DEVEL_KIT_VERSION 0.3.0 | |
ENV LUA_NGINX_MODULE_VERSION 0.10.7 | |
# or tell where to find Lua if using Lua instead: | |
ENV LUA_LIB /usr/lib | |
ENV LUA_INC /usr/include |
package turbolinks | |
import ( | |
"net/http" | |
"github.com/go-martini/martini" | |
"github.com/liuzhe0223/go-turbolinks/turbolinks" | |
"github.com/martini-contrib/sessions" | |
) |
<?php | |
echo "He110 W0r1d!"; |
<?php | |
echo "Hello World!"; |