Skip to content

Instantly share code, notes, and snippets.

Avatar

Athos Ribeiro athos-ribeiro

View GitHub Profile
@athos-ribeiro
athos-ribeiro / test_pip_repos.py
Created Aug 26, 2020
Testing cachito Nexus Python repositories
View test_pip_repos.py
from cachito.workers import nexus
from cachito.workers.pkg_managers import pip
import requests
pypi_repo = "test-pip-hosted-1"
raw_repo = "test-raw-hosted-1"
username = "test-user"
raw_archive_path = "./cachito-master.tar.gz"
dest_dir = "cachito-master"
View rotate_in
#!/bin/sh
while [ true ] ; do
sleep $1;
for i in {1..5} ; do
espeak "rotate";
done
done
View courses_info.csv
course_code course_name
113034 CALCULO 1
113042 CALCULO 2
199176 DES IND ASSISTIDO COMPUTADOR
203882 DESENHO DE SOFTWARE
206601 DESENV AVAN DE SOFTWARE
198005 ENGENHARIA E AMBIENTE
193321 ENGENHARIA ECONÔMICA
102512 ESTÁGIO SUPERVISIONADO
193704 ESTRUT DE DADOS E ALGORITMOS
@athos-ribeiro
athos-ribeiro / test.c
Created Jan 30, 2014
showing linkage error
View test.c
#include <stdio.h>
#include "this_does_not_exist.h"
int main() {
printf("hello world\n");
funcao_inexistente();
return 0;
}
View analizo_clang_feed.pl
use warnings;
use strict;
my $var;
open($var, "<", "clang_pattern");
while(<$var>) {
if($_ =~ m/<tr><td class="SUMM_DESC">([A-Za-z\s\.]+)<\/td><td class="Q">([\d]+)<\/td>/) {
print "okie\n";
print "$1 \n";
You can’t perform that action at this time.