Skip to content

Instantly share code, notes, and snippets.

View kristianpaul's full-sized avatar

Cristian Paul Peñaranda Rojas kristianpaul

View GitHub Profile
paul@ip-172-31-21-54:~/atinout-0.9.1$ make
gcc -o atinout -W -Wall -Wextra -Werror -DVERSION=\"0.9.1\" -g atinout.c
atinout.c: In function ‘is_final_result’:
atinout.c:141:6: error: this statement may fall through [-Werror=implicit-fallthrough=]
if (strcmp(&response[1], "K\r\n") == 0) {
^
atinout.c:145:2: note: here
default:
^~~~~~~
cc1: all warnings being treated as errors
elasticsearch:
image: 'elasticsearch:2.3'
ports:
- '9200:9200'
- '9300:9300'
kibana:
image: 'kibana:4.5'
links:
- elasticsearch
ports:
machine 'mario' do
recipe 'apt'
recipe 'haproxy'
recipe 'consul'
tag 'itsa_loadbalancer'
end
num_webservers = 1
machine_batch do
@kristianpaul
kristianpaul / spi.py
Created February 18, 2016 15:22 — forked from jordens/spi.py
# -*- coding: utf-8 -*-
#
# Copyright 2013-2015 Robert Jordens <jordens@gmail.com>
#
# This file is part of pdq2.
#
# pdq2 is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
paul@micro:~/Work/mm/gps/upstream/milkymist/software$ ack-grep -a CSR_FREQUENCY
libhal/time.c
35: CSR_TIMER0_COMPARE = CSR_FREQUENCY;
66: ts->usec = counter/(CSR_FREQUENCY/1000000);
74: if(counter < (CSR_FREQUENCY/2))
include/hw/sysctl.h
51:#define CSR_FREQUENCY MMPTR(0xe0001074)
gdbstub/gdbstub.c
paul@micro:~$ time python payload.py
push payload to icarus
2db907f9cb4eb938ded904f4832c43310380e3aeb54364057e7fec5157bfc5330000000000000000000000008000000000000000a58e091ac342724e7c3dc346
wait result:(should be: 063c5e01)
063c5e01
real 0m38.164s
user 0m0.040s
sys 0m0.000s
paul@micro:~$ python payload.py
push payload to icarus
2db907f9cb4eb938ded904f4832c43310380e3aeb54364057e7fec5157bfc5330000000000000000000000008000000000000000a58e091ac342724e7c3dc346
wait result:(should be: 063c5e01)
063c5e01
8'h0E : begin
ch0_epoch_enable <= !(wb_cyc_i and wb_we_i) & wb_stb_i;
if !(wb_cyc_i and wb_we_i) ch0_epoch_load <= wb_dat_i[10:0];
end
[paul@micro ~]$ sudo rpm -i util-linux-ng-2.18-4.7.fc14.src.rpm
[sudo] password for paul:
advertencia:usuario mockbuild no existe - utilizando root
advertencia:grupo mockbuild no existe - utilizando root
advertencia:usuario mockbuild no existe - utilizando root
advertencia:grupo mockbuild no existe - utilizando root
advertencia:usuario mockbuild no existe - utilizando root
advertencia:grupo mockbuild no existe - utilizando root
advertencia:usuario mockbuild no existe - utilizando root
advertencia:grupo mockbuild no existe - utilizando root
A simple application to test some of the RTEMS/FreeBSD networking code.
**************************
* NOTES *
**************************
BE SURE TO LOCALIZE networkconfig.h. FAILURE TO DO SO MAY PROVOKE YOUR
NETWORK ADMINISTRATOR TO THE POINT WHERE VICIOUS ATTACKS WILL BE MADE
UPON YOU.