Skip to content

Instantly share code, notes, and snippets.

View hgomez's full-sized avatar

Henri Gomez hgomez

View GitHub Profile
@adam-buckley
adam-buckley / bouncing_dot.c
Created October 23, 2017 10:56
Onion Omega2 - I2C OLED Bouncing Dot using C
/**
* A small demo of a dot bouncing inside a 128x64 OLED screen, using the Onion Omega 2. Note this isn't using the
* OLED expansion, but a cheapo screen I bought from China, using the SSD1306 (as far as I could tell) driver.
* This was only a personal exercise to see how easy it is to setup, it might be handly to someone else learning!
*
* To compile:
* - install gcc and make (See: https://docs.onion.io/omega2-docs/c-compiler-on-omega.html)
* - install git (Follow this: https://docs.onion.io/omega2-docs/installing-and-using-git.html)
* - install python-dev
* - git clone the i2c exp driver (https://github.com/OnionIoT/i2c-exp-driver)
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active May 2, 2024 01:27
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@hgomez
hgomez / upload2bintray.sh
Last active March 24, 2017 08:58
Sample script to upload RPM package to bintray
#!/bin/sh
#
# You should define BINTRAY_ACCOUNT and BINTRAY_APIKEY here or from the outside
# BINTRAY_ACCOUNT is you Bintray account and BINTRAY_APIKEY, API Key generated under your Bintray profile
# Redefine following variables to match your own usage
RPMS_DIR=RPMS/noarch
BINTRAY_ACCOUNT=hgomez
BINTRAY_REPO=devops-incubator-rpm