Skip to content

Instantly share code, notes, and snippets.

View SyNeto's full-sized avatar

Ernesto Jiménez Villaseñor SyNeto

  • Bedu
  • CDMX, México
View GitHub Profile
@SyNeto
SyNeto / settings.py
Last active November 7, 2016 16:37
Example settings
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!
@SyNeto
SyNeto / guinicorn_app_start
Last active November 6, 2016 00:34 — forked from leplatrem/yourapp
gunicorn virtualenv init.d script (could be simpler with upstart)
#! /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')))
@SyNeto
SyNeto / microgs.css
Last active November 3, 2017 19:48
MicroGS
/* MicroGS */
*,
*:after,
*:before {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@SyNeto
SyNeto / csv.sql
Created October 8, 2015 23:17
Script CSV Database MYSQL
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;
@SyNeto
SyNeto / _etc_init.d_autosshd
Created October 4, 2015 17:07 — forked from suma/_etc_init.d_autosshd
Autossh init script(Ubuntu) for reverse ssh tunneling
#! /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.
@SyNeto
SyNeto / blabla
Created September 15, 2015 21:55
Link mediaq
https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
@SyNeto
SyNeto / tmux-cheatsheet.markdown
Last active August 29, 2015 14:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
https://docs.google.com/gview?url=http://it-ebooks.info/read.php?id%3D3361-1415324224-d9dd6ce43c39767f0feaf646dfa95374&chrome=true
@SyNeto
SyNeto / vimrc
Last active August 29, 2015 14:01
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