Skip to content

Instantly share code, notes, and snippets.

View kashimAstro's full-sized avatar
🔒
busy

Dario Longobardi kashimAstro

🔒
busy
View GitHub Profile
@kashimAstro
kashimAstro / main.cpp
Last active February 22, 2019 13:08
Simple Motion blur by (Keijiro Takahashi) rewritten in c++
/*
Rewritten Code by Keijiro Takahashi
source:
https://github.com/keijiro/sketches2016/blob/master/Moblur/Moblur.pde
*/
#include "ofMain.h"
@kashimAstro
kashimAstro / main.cpp
Last active June 27, 2019 18:33
HC_SR04 ofxgpio (untested)
#include "ofMain.h"
#include "ofAppNoWindow.h"
#include "ofxGPIO.h"
class HC_SR04{
public:
HC_SR04();
~HC_SR04();
long micros() {
@kashimAstro
kashimAstro / force-sshpass.cpp
Last active March 3, 2021 13:28
c++ brute force ssh multithreading with sshpass
/*
Author: Dario Longobardi
Test ssh brute force multithreading
*/
#include <iostream>
#include <unistd.h>
#include <thread>
#include <vector>
@kashimAstro
kashimAstro / README.md
Last active May 5, 2021 17:47
H3 / Mali GPU driver and openframeworks armv7 ES / ES2

#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.

tested on: orangepi one banana pi M2

dependencies:

apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \ 
           x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
 build-essential automake pkg-config libtool ca-certificates git cmake subversion
@kashimAstro
kashimAstro / i2cRaspberryGPIO.h
Last active June 2, 2022 12:06
i2c Multiple Byte read and write c++
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
class i2cReadWrite {
public:
int file_i2c;
unsigned char buffer[60];
int length=2;
@kashimAstro
kashimAstro / UART3_enable.md
Last active November 16, 2022 12:09
sunxi H3 enable UART3

#simple step for enable UART3 H3 allwinner sunxi
download suite sunxi:
git clone https://github.com/linux-sunxi/sunxi-tools
compile:
make
convert /boot/script.bin in .fex ascii file for editing:
./bin2fex /boot/script.bin ~script.fex