Skip to content

Instantly share code, notes, and snippets.

View jovib's full-sized avatar
🤘
Awesome!!

Joel Villalobos jovib

🤘
Awesome!!
View GitHub Profile
" Set compatibility to Vim only.
set nocompatible
set nolist
set rnu
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" Turn on syntax highlighting.
syntax on
colorscheme onedark
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
".vscode": true,
"hooks": true,
"node_modules": true,
@jovib
jovib / Set_static_IP.bat
Last active April 20, 2017 14:59
QuickPrep for VMware View for no DHCP server
rem Author: Joel Villalobos
rem @jovib_
IF %computername%==VM-1 Netsh int ip set address name="Local Area Connection 2" source=static addr=192.168.2.80 255.255.255.0 192.168.90.100
IF %computername%==VM-1 Netsh int ip set dns name="Local Area Connection 2" source=static addr=192.168.90.5
IF %computername%==VM-1 Netsh int ip add dns name="Local Area Connection 2" addr=192.168.90.2
@jovib
jovib / Load_Excel_Sheets.vbs
Last active April 20, 2017 14:51
Carga valores de SQL en diferentes hojas de excel.
Sub update()
Application.ScreenUpdating = False
Prompt = "Por favor tenga paciencia, este programa tomará algunos minutos..."
Title = "Actualizar"
Style = vbOKCancel
Respond = MsgBox(Prompt, Style, Title)
If Respond = vbCancel Then Exit Sub
''Mostrador es el nombre la hoja de excel, A1 la celda
@jovib
jovib / check_services_status.bat
Created March 3, 2017 14:26
Check if Windows service is running via batch file and start it, if it is not running.
for /F "tokens=3 delims=: " %%H in ('sc query "<service_name>" ^| findstr " ESTATE"') do (
if /I "%%H" NEQ "RUNNING" (
net start "<service_name>"
) else (
echo All stable.
)
)
@jovib
jovib / gist:3cb305a1a35dc150003d
Last active October 15, 2015 17:06 — forked from ghafran/gist:20e339c4bf9e2bfc3652
install webrtc2sip on ubuntu
#!/bin/bash
#http://linux.autostatic.com/installing-webrtc2sip-on-ubuntu-1204#install_packages
sudo -i
# install
apt-get update
apt-get install -y python-software-properties
add-apt-repository ppa:autostatic/doubango
@jovib
jovib / nginx.conf
Last active August 29, 2015 14:00
Simple Laravel Nginx Configuration
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@jovib
jovib / DB.sql
Created April 10, 2014 15:15 — forked from msurguy/DB.sql
dropdown dynamic in laravel
CREATE TABLE `makers` (
`id` int(10) unsigned NOT NULL,
`name` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
@jovib
jovib / vsftpd.conf
Created October 18, 2013 15:05
Simple configuration for vsftpd
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
@jovib
jovib / install-Python-REHL5
Last active December 16, 2015 12:39
deployment Python 2.7.4 on Rethat 5
$ wget http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz
$ tar -zxvf Python-2.7.4.tgz
$ cd Python-2.7.4
$ ./configure --prefix=$HOME/local/Python-2.7
$ make
$ make install
$ cd ~
$ echo "export PATH=\"$HOME/local/bin:\$PATH\"" >> .bashrc