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
@neomatrixcode
neomatrixcode / .colores_ansi
Created August 3, 2018 19:00 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@neomatrixcode
neomatrixcode / migrator.sh
Created May 30, 2018 06:34 — forked from vigneshwaranr/migrator.sh
Script to convert SQLITE dumps into PostgreSQL compatible dumps
#! /bin/sh
usage_error () {
echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>'
echo
echo 'Example:'
echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps'
echo
echo 'Tested on:'
echo 'Python 2.7.3'
@neomatrixcode
neomatrixcode / SVD error.ipynb
Created June 1, 2017 14:48 — forked from oxinabox/SVD error.ipynb
TensorFlow SVD vs LAPACK SVD
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neomatrixcode
neomatrixcode / index.html
Created May 24, 2017 03:10 — forked from CodeMyUI/index.html
Windows Fluent Design Calendar
<main class="calendar-contain">
<section class="title-bar">
<button class="title-bar__burger">
<span class="burger__lines">Toggle Menu</span>
</button>
<span class="title-bar__year">
Calendar > May 2017
</span>
<span class="title-bar__month">
@neomatrixcode
neomatrixcode / nmap-cmdline
Created May 16, 2017 23:07 — forked from Neo23x0/nmap-cmdline
Nmap Scan Params for CVE-2017-0143 MS17-010 Scanning
# Scan for CVE-2017-0143 MS17-010
# The vulnerability used by WannaCry Ransomware
#
# 1. Use @calderpwn's script
# http://seclists.org/nmap-dev/2017/q2/79
#
# 2. Save it to Nmap NSE script directory
# Linux - /usr/share/nmap/scripts/ or /usr/local/share/nmap/scripts/
# OSX - /opt/local/share/nmap/scripts/
#
@neomatrixcode
neomatrixcode / alias.sh
Created August 9, 2016 03:59 — forked from ernestohs/alias.sh
how lazy am i
alias push='git push origin $(git rev-parse --abbrev-ref HEAD)'
alias pull='git pull origin $(git rev-parse --abbrev-ref HEAD)'
alias s="git status -s"
alias c="git commit -m "
alias a='git add . && git status -s'
alias l='git log'
alias undo='git checkout --'
alias reset='git reset --soft HEAD~1'
alias clean='git clean -dnx'
alias branch='git checkout -b'
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
@neomatrixcode
neomatrixcode / Makefile
Created August 3, 2016 18:43 — forked from wolfiestyle/Makefile
basic makefile for D language
# basic makefile for D language - made by darkstalker
DCC = dmd
DFLAGS = -w
LIBS =
SRC = $(wildcard *.d)
OBJ = $(SRC:.d=.o)
OUT = $(shell basename `pwd`)
.PHONY: all debug release profile clean
@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 ""
@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)))