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 / .bash_profile
Created June 27, 2013 10:31
Mi archivo .bash_profile
export PATH="/usr/local/mysql/bin:$PATH"
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
alias clr='clear'
alias l='ls -lh'
alias ll='ls -lah'
#Configuracion virtualenvwrapper
@SyNeto
SyNeto / prueba_sql
Last active December 20, 2015 19:08
sql migracion
/* SELECT INSERT */
INSERT INTO ecos.articulos_articulo (usuario_id, titulo, contenido, estado, destacado, creado, modificado)
SELECT 1, title, body, 'a', 0, now(), now() FROM ecos_back.posts
/* REPITED ROWS in VALUE */
SELECT name, COUNT(*) c FROM table GROUP BY name HAVING c > 1;
@SyNeto
SyNeto / dhtxx_lcd16x2
Created November 24, 2013 21:36
Prueba libreria sensores DHTxx con display LCD 16*2
// Se incluye la liberia del sensor DHTXX
#include <DHT.h>
// Se incluye la libreria del LCD
#include <LiquidCrystal.h>
// objeto LiquidCrystal, configuracion de pines
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// Configuracion pin y tipo de sensor DHTXX
#define DHTPIN 13 // El pin en el que esta conectado el sensor
@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
https://docs.google.com/gview?url=http://it-ebooks.info/read.php?id%3D3361-1415324224-d9dd6ce43c39767f0feaf646dfa95374&chrome=true
@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
@SyNeto
SyNeto / blabla
Created September 15, 2015 21:55
Link mediaq
https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
@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 / 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 / microgs.css
Last active November 3, 2017 19:48
MicroGS
/* MicroGS */
*,
*:after,
*:before {
margin: 0;
padding: 0;
box-sizing: border-box;
}