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)
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) {
/*
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
@neomatrixcode
neomatrixcode / greedy_banner.jl
Last active January 19, 2016 03:22 — forked from Ismael-VC/greedy_banner.jl
Greedy Julia banner. add `alias julia='julia -q'` to your shell config file and https://git.io/vzlHo to your .juliarc.jl!
function banner(io::IO = STDOUT)
GIT_VERSION_INFO = Base.GIT_VERSION_INFO
TAGGED_RELEASE_BANNER = Base.TAGGED_RELEASE_BANNER
have_color = Base.have_color
if GIT_VERSION_INFO.tagged_commit
commit_string = TAGGED_RELEASE_BANNER
elseif GIT_VERSION_INFO.commit == ""
commit_string = ""
else
days = Int(floor((ccall(:jl_clock_now, Float64, ()) - GIT_VERSION_INFO.fork_master_timestamp) / (60 * 60 * 24)))
@neomatrixcode
neomatrixcode / julia.en.po
Last active April 30, 2016 04:33 — forked from Ismael-VC/julia.en.po
Julia i18n.
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
msgid "true"
msgstr ""