Skip to content

Instantly share code, notes, and snippets.

View neomatrixcode's full-sized avatar
🏠
Working from home

Josué Acevedo (Neomatrix) neomatrixcode

🏠
Working from home
View GitHub Profile

/etc/rc.d/rc.mysqld-instancia1

#!/bin/sh

# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql

# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1

/etc/rc.d/rc.mysqld-instancia1

#!/bin/sh

# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql

# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# Requested gist of code to produce:
# https://www.scribd.com/doc/271871142/Julia-Type-Hierarchy
#
# I just redirected the output to a dot file, then executed:
# dot -Tpdf julia.dot -o julia.pdf
function print_type_tree(t, parent=Any, seen=Set{DataType}())
# Avoid redundant edges.
t ∈ seen && return
push!(seen, t)
#!/bin/bash
###########################################################
#
# OpenCV 3.1.0 - instalação
# http://opencv.org/
#
###########################################################
#----------------------------------------------------------
var E = (function() {
var _f1 = function(v) {
var vocal_siguiente = {
"a": "e",
"e": "i",
"i": "o",
"o": "u",
"u": "a"
};
if (vocal_siguiente[v] === undefined) {
@neomatrixcode
neomatrixcode / actualizar fork github
Last active October 18, 2015 04:37
uso: ./ac.sh pablogonzalezpe codeneomatrix metasploit-framework
#!/bin/bash
#usuariooriginal= $1
#miusuario= $2
#proyecto= $3
git clone https://github.com/$username/$proyecto.git
cd $proyecto
git remote add upstream https://github.com/$original/$proyecto.git
git fetch upstream
/*
XHR.get_csv({
"url": "http://127.0.0.1:8080/csv/nombres.csv",
"en_caso_de_exito": function(resultado) { console.log(resultado); },
"en_caso_de_error": function(resultado) { console.log(resultado); }
});
XHR.head_csv({
"url": "http://127.0.0.1:8080/csv/nombres.cs",
@neomatrixcode
neomatrixcode / codeRanking.py
Created November 29, 2015 17:26 — forked from anonymous/codeRanking.py
Codemotion Ranking 2015
# -*- coding: utf-8 -*-
import codecs
import sys
UTF8Writer = codecs.getwriter('utf8')
sys.stdout = UTF8Writer(sys.stdout)
import requests
ratings = []
@neomatrixcode
neomatrixcode / Beaker Share
Created December 7, 2015 07:10 — forked from anonymous/Beaker Share
Beaker Share
{"beaker":"2","evaluators":[{"name":"Html","plugin":"Html","view":{"cm":{"mode":"htmlmixed"}},"shellID":null},{"name":"Latex","plugin":"Latex","view":{"cm":{"mode":"stex"}},"shellID":null},{"name":"IPython","plugin":"IPython","imports":"","supplementalClassPath":"","view":{"cm":{"mode":"python"}},"shellID":"BEC14821482642AC8E43C866958E93C1","setup":"%matplotlib inline\nimport numpy\nimport matplotlib\nfrom matplotlib import pylab, mlab, pyplot\nnp = numpy\nplt = pyplot\nfrom IPython.display import display\nfrom IPython.core.pylabtools import figsize, getfigs\nfrom pylab import *\nfrom numpy import *\n"},{"name":"JavaScript","plugin":"JavaScript","jsSetting2":"","jsSetting1":"","view":{"cm":{"mode":"javascript","background":"#FFE0F0"}},"shellID":null},{"name":"R","plugin":"R","view":{"cm":{"mode":"r"}},"shellID":"ea4f2bb4-36fc-4535-8461-c0aace63f348"}],"cells":[{"id":"section001","type":"section","level":1,"title":"Hello Notebook","collapsed":false,"evaluatorReader":false},{"id":"code2uVtKX","type":"code","eva