start new:
tmux
start new with session name:
tmux new -s myname
import os | |
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
# Quick-start development settings - unsuitable for production | |
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ | |
# SECURITY WARNING: keep the secret key used in production secret! |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: yourapp | |
# Required-Start: nginx | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: The main django process | |
# Description: The gunicorn process that receives HTTP requests | |
# from nginx |
bp = BeautyParlor.objects.exclude(chain_profile = None) | |
file = open('/home/kerastasesalon/reporte.txt', 'w+') | |
for parlor in bp: | |
file.write("{}, {}\n".format(parlor.pk, parlor.comercial_name.encode('utf-8'))) | |
/* MicroGS */ | |
*, | |
*:after, | |
*:before { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} |
select * into outfile '/tmp/users.csv' | |
fields terminated by ',' optionally enclosed by '"' | |
escaped by '\\' | |
lines terminated by '\n' | |
from registros_registro where registrante_id is not null; |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: autosshd | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: autosshd initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ |
https://docs.google.com/gview?url=http://it-ebooks.info/read.php?id%3D3361-1415324224-d9dd6ce43c39767f0feaf646dfa95374&chrome=true |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
set t_Co=256 | |
set ai | |
set ts=4 | |
set sts=4 | |
set et | |
set sw=4 |