Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / gist:5b810cd43204afe7de95
Last active August 29, 2015 14:04
todo debian red
apt-get update
INSTALAR SSH
aptitude install openssh-server opeenssh-client
CONFIGURAR SSH
gedit /etc/ssh/sshd_config
COMANDO CONTROL SSH
/etc/init.d/ssh restart
@jansanchez
jansanchez / gist:23a2708c27ddb0b0d89e
Last active August 29, 2015 14:04
Server: Configurando Zonas

Editamos las zonas

sudo vim /etc/bind/named.conf.local

Configuracion Local

@jansanchez
jansanchez / gist:0e5040ae64852496c440
Last active August 29, 2015 14:04
Cliente: nslookup

En la maquina cliente

nslookup 10.30.112.220
Server: 192.168.43.1
Address: 192.168.43.1#53
@jansanchez
jansanchez / gist:81f1d59057d01e73de89
Last active August 29, 2015 14:04
Server: /etc/resolv.conf

Verificar que se encuentre el prefijo DNS dentro del siguiente archivo

sudo vim /etc/nsswitch.conf

Ingresamos a /etc/resolv.conf

sudo vim /etc/resolv.conf
@jansanchez
jansanchez / gist:4584b2b1ce627a078db4
Last active August 29, 2015 14:04
Server: /etc/bind/named.conf.options

INSTALAR DNS (BIND9)

aptitude install bind9 bind9-doc dnsutils

CONFIGURAR DNS (BIND9)

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@jansanchez
jansanchez / gist:ba6acbe2f34c9537a586
Created May 5, 2014 16:54
conky standard configuration
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
@jansanchez
jansanchez / gist:9707a56759770acc021e
Last active August 29, 2015 14:00
Estandares de codigo para Jade y Stylus

Jade

  • minúsculas.
  • inglés.
  • guión bajo para clases de más de 1 palabra.
  • solo los IDs, serán camelCase y no minúsculas.
  • los estandares para los nombres de los IDs: http://goo.gl/YrBLlP
  • las variables serán en minúsculas, su composición es igual a la de las clases.
  • los mixins serán en camelCase.
  • no abreviar las palabras excepto(fb, tw, gplus), no importa si la clase se hace muy larga.
@jansanchez
jansanchez / gist:10315048
Last active September 6, 2016 16:23
samba and fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# /home was on /dev/sda3 during installation
@jansanchez
jansanchez / gist:10146556
Last active October 5, 2018 14:26
How to Install Vagrant in Debian Linux 64 bits

How to Install Vagrant in Debian Linux 64 bits

First, we install Virtualbox

sudo apt-get install virtualbox

Then, we install Vagrant