Skip to content

Instantly share code, notes, and snippets.

View ryukinix's full-sized avatar
☢️
IN RESEARCH

Manoel V. Machado ryukinix

☢️
IN RESEARCH
View GitHub Profile
@ryukinix
ryukinix / filter-username-repo-gits.sh
Created August 28, 2015 22:55
Copy-paste solution to get all the usernames/repository an current path
#!/usr/bin/env bash
#
# Bash Script
#
# Copyright © Manoel Vilela
#
#
find . -iname .git -exec bash -c \
"cat '{}/config' | \
@ryukinix
ryukinix / git-config-template.sh
Created August 1, 2015 04:43
A template for fast configuration of git on your Environment Linux
#!/bin/bash
#
# Created by Manoel Vilela
#
ssh_setup() {
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
ssh -T git@github.com
}
@ryukinix
ryukinix / levenshtein-algorithm.py
Last active September 10, 2015 05:36
Levenhstein algorithm implementation
#!/usr/bin/env python
#
# Python Script
#
# Copyleft © Manoel Vilela
#
#
# complexity time: O(n x m)
@ryukinix
ryukinix / anbient_score.py
Created December 29, 2015 08:37
Lista de animes de www.anbient.net organizados por score
#!/usr/bin/env bash
#
# Bash Script
#
# Copyright © Manoel Vilela
#
#
from requests import get
from bs4 import BeautifulSoup
@ryukinix
ryukinix / ping_pong.py
Created April 10, 2016 23:36
Coroutines em Python
#!/usr/bin/env python
# coding=utf-8
# Python Script
#
# Copyright © Manoel Vilela
#
#
from queue import Queue
import asyncio
@ryukinix
ryukinix / num_matcher.py
Created April 15, 2016 10:48
Regex example of python n-digit number with n fixed
import re
import random
def num_matcher(num, _len=6):
pattern = re.compile(r"^[0-9]{{{_len}}}".format_map(locals()))
return bool(pattern.match(num))
value = random.randint(0, 1000000)
print(value)
print(num_matcher(str(value)))
@ryukinix
ryukinix / mp32ogg
Created May 20, 2016 01:47
mp3 to ogg using ffmpeg
#!/bin/bash
for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f/%mp3/ogg}"; done
@ryukinix
ryukinix / supervisor-job.ini
Last active July 8, 2016 02:02
A supervisor service template
[program:your-program-label]
command=interpreter file.extension
directory=/the/path/of/program
user=root
autostart=true
autorestart=true
redirect_stderr=true
numprocs=1
numprocs_start=1
stdout_logfile=/tmp/your-program-label.log
@ryukinix
ryukinix / git-pull-all.sh
Created July 8, 2016 04:56
Search for all git repositories on a <path> and do git pull
find . -name .git -type d -execdir git pull ';'
@ryukinix
ryukinix / language-requirements.md
Last active April 4, 2017 11:38
Language-Requirements.md

Language Requirements TC

Esse é documento de orientação para a implementação de novas linguagens no repositório nexusedge/ai-nlp-tc

PreProcessing

Durante o pré-processamento é feito, na seguinte ordem, os seguintes procedimentos: