Skip to content

Instantly share code, notes, and snippets.

@josjac
josjac / virtual-box-load-extension.sh
Created October 31, 2017 15:28
Para corregir el error de virtualbox en osx high sierra
#!/bin/bash
unload() {
if [ `ps -ef | grep -c VirtualBox$` -ne 0 ]
then
echo "VirtualBox still seems to be running. Please investigate!!"
exit 1;
elif [ `ps -ef | grep -c [V]ir` -gt 0 ]
then
echo "Stopping running processes before unloading Kernel Extensions"
@josjac
josjac / gulpfile.js
Last active October 20, 2017 16:25
Rollup gulp conifg
var rollup = require('rollup');
var uglify = require('rollup-plugin-uglify');
var eslint = require('rollup-plugin-eslint');
function rollupTask(entry, dest) {
var plugins = [
eslint({
exclude: [
'src/static/styles/**',
@josjac
josjac / runappc
Created November 17, 2016 16:19
Run simulators appcelerator
#!/bin/bash
android_2="Motorola Droid Razr - 2.3.7 - API 10 - 540x960"
android_4_1="Google Nexus S - 4.1.1 - API 16 - 480x800"
android_4="Motorola Moto X - 4.2.2 - API 17 - 720x1280"
android_5="Google Nexus 4 - 5.1.0 - API 22 - 768x1280"
android_6="Custom Phone - 6.0.0 - API 23 - 768x1280"
android_tablet_6="Custom Tablet - 6.0.0 - API 23 - 2560x1600"
iphone_7='09EFC7E0-8295-46C2-94A2-1A99A90F7164'
iphone_6='F37953BD-1F7D-433C-A803-560B0036C8C3'
@josjac
josjac / .aspell.es.pws
Created July 13, 2016 14:35
Aspell configuration
personal_ws-1.1 es 0
APP
AFP
Apps
apps
blog
BLOG
Blog
email
Email
@josjac
josjac / gist:635f8060b0d15021a649
Last active August 29, 2015 14:07 — forked from doctyper/gist:1411283
ipfw emular conexión lenta en local OSX
# enable
sudo ipfw pipe 1 config bw 50KBytes/s delay 100ms
sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 2 pipe 1 dst-port 80
# disable
sudo ipfw delete 1
sudo ipfw delete 2
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@josjac
josjac / mail.html
Created September 24, 2013 22:12
mailchimp template example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- This is a simple example template that you can edit to create your own custom templates -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- Facebook sharing information tags -->
<meta property="og:title" content="*|MC:SUBJECT|*" />
<title>*|MC:SUBJECT|*</title>
<style type="text/css">
@josjac
josjac / fabric.py
Created August 15, 2013 00:13 — forked from adeleinr/fabric.py
"""
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Author: Adelein Rodriguez, adeleinr@gmail.com
Note: This is an adaptation from a fabric script presented here:
http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p.html
Summary: This script:
@josjac
josjac / vm-commands.bat
Last active November 14, 2022 23:17
VirtualBox commands. Agregar al path de windows la ruta a los exes de virtualbox, ejemplo: "C:\Program Files\Oracle\VirtualBox"
# Primero agregar al path la carpeta de instalacion de virtual box
# por defecto deberia estar ubicada en : C:\Program Files\Oracle\VirtualBox
# configurar red de la maquina virtual como puente.
# iniciar vm
VBoxManage.exe startvm <vm> --type guid|headless|sdl
# apagar
VBoxManage.exe controlvm <vm> poweroff
# listado de estado