Skip to content

Instantly share code, notes, and snippets.

View rkmax's full-sized avatar

Julian Reyes Escrigas rkmax

View GitHub Profile
@rkmax
rkmax / output.log
Last active August 29, 2015 14:16 — forked from creationix/output.log
tim@touchsmart:~/Code$ nvm use v0.11.2-generators
Now using node v0.11.2-generators
tim@touchsmart:~/Code$ node --harmony testgen.js
<Buffer 76 61 72 20 66 73 20 3d 20 72 65 71 75 69 72 65 28 27 66 73 27 29 3b 0a 66 75 6e 63 74 69 6f 6e 20 72 65 61 64 46 69 6c 65 28 70 61 74 68 2c 20 65 6e 63 ...>
Sleeping for 2000ms...
Done

Gearman can be installed on Windows through cygwin.

Install Cygwin packages

Install cygwin packages (through setup.exe):

  • gcc
  • make
  • libuuid1-devel
  • libiconv
var React = require('react'),
mui = require('material-ui')
;
var RadioButtonGroup = React.createClass({
propTypes: {
name: React.PropTypes.string,
onChange: React.PropTypes.func,
options: React.PropTypes.array
},
@rkmax
rkmax / 99-disable-lan-on-wire.sh
Created November 20, 2014 12:59
Deshabilita el wifi del equipo si se conecta el cable de red y lo vuelve a activar al desconectarse
#!/bin/bash
# copy this script to /etc/NetworkManager/dispatcher.d/99-disable-lan-on-wire.sh
# own by root and set permissions to 700
# eth0, eth1, etc.
LAN_IFACE="enp3s0"
if [[ "${1}" = "${LAN_IFACE}" ]]; then
case "${2}" in
@rkmax
rkmax / enable-remote.sh
Created November 18, 2014 23:50
Setup a virtual screen for connect from VNC viewer (example VNC VIwer Android)
#!/bin/bash
WIDTH=1280
HEIGHT=800
x11_cmd=x11vnc
if [[ ! -z $(pgrep ${x11_cmd}) ]]; then
pkill ${x11_cmd}
fi
@rkmax
rkmax / google-clean-link.js
Last active August 29, 2015 14:09
Elimina el paso por google al usar el buscador
@rkmax
rkmax / ocp.php
Last active August 29, 2015 14:08 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs
;(function () {
"use strict";
function controllerName(prefix) {
var name = prefix.replace('.', '');
return name[0].toUpperCase() + name.substr(1) + 'Controller';
}
function BaseController(scope) {
var that = this;
#!//usr/bin/env bash
verify_git_tag() {
git show-ref --tags --quiet --verify -- "refs/tags/$1"
}
refresh_git_repo() {
git clean -f
git fetch origin --quiet > /dev/null 2>&1
}
#!/usr/bin/env bash
HTTP_USER=www-data
sudo setfacl -R -m $USER:rwx -m "${HTTP_USER}:rwx" $*
sudo setfacl -dR -m $USER:rwx -m "${HTTP_USER}:rwx" $*