gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
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 |
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
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 |
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
## 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] |
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
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
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 | |
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 |
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 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: |
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
/** | |
* 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(){ |
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
/** | |
* 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 |
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
/** | |
* 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 |
NewerOlder