Skip to content

Instantly share code, notes, and snippets.

version: '2'
services:
kanboard:
image: kanboard/kanboard:latest
ports:
- "80:80"
- "443:443"
volumes:
- /var/lib/kanboard/data/:/var/www/app/data
- /var/lib/kanboard/plugins/:/var/www/app/plugins
@WilfredLemus
WilfredLemus / docker-compose.yml
Last active March 5, 2020 22:12
Osticket docker
version: '3.4'
services:
mysql_osticket:
container_name: mysql_osticket
restart: unless-stopped
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: osticket
MYSQL_PASSWORD: 123
## ssh passwordless login
A. generate a public key ( this will create id_rsa / id_rsa.pub files in ~/.ssh folder )
ssh-keygen
# ex: prompt to comeplete
Generating public/private rsa key pair.
Enter file in which to save the key (/home/heoyea/.ssh/id_rsa):[Press Enter key]
Enter passphrase (empty for no passphrase): [Press Enter key]
Enter same passphrase again: [Pess Enter key]
@WilfredLemus
WilfredLemus / gitflow-breakdown.md
Created December 16, 2017 22:29 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@WilfredLemus
WilfredLemus / gunicorn_start.bash
Created May 12, 2016 04:56 — forked from postrational/gunicorn_start.bash
Example of how to set up Django on Nginx with Gunicorn and supervisordhttp://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket
USER=hello # the user to run as
GROUP=webapps # the group to run as
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use
DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name
from django.core.exceptions import ImproperlyConfigured
from django.contrib import messages
class SuccessMessageMixin(object):
success_message = None
def get_success_message(self):
if self.success_message:
/**
* Este script de javascript permite trabajar transparentemente solicitudes que requieren
* protección del token CSRF por medio de AJAX JQUERY.
* Esto te permitirá hacer solcitudes a web Services de Django por medio de AJAX Jquery.
* Para utilizarlo basta con integrar el archivo DjangoAjax.js en tu directorio de JS y hacer referencia a él en tus templates
* que requieren del uso de AJAX por POST o algún otro que requiera el token CSRF.
* Este script está basado en la documentación oficial de Django https://docs.djangoproject.com
*/
$(function(){
@WilfredLemus
WilfredLemus / voice.js
Last active August 29, 2015 14:08 — forked from Kolesias123/voice.js
/**
* Módulo: Voice
* Funciones de comandos por voz en HTML 5.
*/
Voice =
{
Speech: null, // webkitSpeechRecognition
Recognizing: false, // ¿Estamos intentando reconocer la voz ahora mismo?
LastCommand: '', // Último comando
@WilfredLemus
WilfredLemus / voice.js
Last active August 29, 2015 14:08 — forked from Kolesias123/voice.js
/**
* Módulo: Voice
* Funciones de comandos por voz en HTML 5.
*/
Voice =
{
Speech: null, // webkitSpeechRecognition
Recognizing: false, // ¿Estamos intentando reconocer la voz ahora mismo?
LastCommand: '', // Último comando