Skip to content

Instantly share code, notes, and snippets.

@eglookz
eglookz / start-server.man
Created April 28, 2021 10:45 — forked from csomh/start-server.man
mod_wsgi-express start-server -h
Usage: mod_wsgi-express start-server script [options]
Options:
--application-type TYPE
The type of WSGI application entry point that was
provided. Defaults to 'script', indicating the
traditional mod_wsgi style WSGI script file specified
by a filesystem path. Alternatively one can supply
'module', indicating that the provided entry point is
a Python module which should be imported using the
@eglookz
eglookz / .gitlab.ci.yml
Created April 6, 2019 06:03 — forked from yannhowe/.gitlab.ci.yml
.gitlab.ci.yml for SSH with private key.
# Image neeeds to have ssh-client
image: docker:git
services:
- docker:dind
stages:
- staging
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
@eglookz
eglookz / docker-compose.yml
Created September 13, 2018 07:08
docker-compoe.yml for create Nginx+Mysql+Wordpress+FTP Docker stack
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
network_mode: host
environment:
@eglookz
eglookz / gist:21724d25ed378843fd992abaea18a035
Created June 16, 2018 05:14
Putty with pretty ncurses output
Set up a session in PuTTY
In PuTTY Configuration for that session, make the following changes
Terminal > Use background color to erase screen
Terminal > Keyboard > The Function keys and keypad: Linux
Window > Lines of scrollback: 20000
Window > Display scrollbar: deselect
Window > Translation > Received data assumed to be in which character set: UTF-8
Window > Translation > Adjust how PuTTY displays line drawing characters: Unicode mode
@eglookz
eglookz / kvm.clone.guest.md
Created May 29, 2017 13:22 — forked from rendoaw/kvm.clone.guest.md
Clone KVM Guest
@eglookz
eglookz / initial_percona_tokudb.sh
Created May 11, 2017 14:11 — forked from duan-li/initial_percona_tokudb.sh
Ubuntu 14.04 LTS Percona server and TokuDB setup
#!/bin/bash
# ref-main: https://www.percona.com/doc/percona-server/5.5/installation/apt_repo.html
# ref-main: https://www.percona.com/doc/percona-server/5.6/tokudb/tokudb_installation.html
# ref: https://www.digitalocean.com/community/tutorials/how-to-install-a-fresh-percona-server-or-replace-mysql
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
echo "Type your percona server root pasword:"