qAVR – Script to compile a C program, generate the hex and flash the microcontroller

This shell script will compile a C program, generate an hex file and flash it to an AVR microcontroller.

For updates, check my github repository: https://github.com/xdth/qavr


Read more “qAVR – Script to compile a C program, generate the hex and flash the microcontroller”

Datasheets

Useful datasheets compiled for easy access. This list is updated eventually.

PIC microcontrollers
PIC12F629_PIC12F675
PIC16F84A

AVR microcontrollers
ATTINY13A
ATTINY2313_ATTINY4313A
ATTINY24A_ATTINY44A_ATTINY84A
ATTINY25_ATTINY45_ATTINY85
ATTINY25_ATTINY45_ATTINY85_summary
ATmega328-328P

Misc
ADXL335_accelerometer
L293D_H-Bridge
74HC595_74HCT595_shift-register
4N35_4N36_4N37_4N38_optocoupler
NE555

Configuring a SAML IDP with LDAP as authentication source

In this setup, the SAML IDP will be available at example.com/auth and we will use the ldap server configured in this post.

Start by moving to the directory above the DocumentRoot for the domain. Let’s say that it is /var/www/example.com, so

cd /var/www/

Download the latest simplesamlphp version

wget https://simplesamlphp.org/res/downloads/simplesamlphp-1.14.4.tar.gz && tar xvfz simplesamlphp-1.14.4.tar.gz

Read more “Configuring a SAML IDP with LDAP as authentication source”

Installing and configuring LDAP and phpldapadmin

This will be a minimal setup. It’s a good idea to start by doing an update and upgrade on your system. In debian, use:

apt-get update && apt-get upgrade

Install the packages (set and confirm admin password)

apt-get install slapd ldap-utils phpldapadmin

Then vim /etc/ldap/ldap.conf and include:

BASE dc=example,dc=net
URI ldap://127.0.0.1

Read more “Installing and configuring LDAP and phpldapadmin”

Quick proxy script for sharing internet among devices

I created this script to automatize sharing of the hotspot connection I’m using.

Scenario:
My laptop is connected to the hotspot wifi. This internet connection will be shared to a router via an ethernet cable (which is also plugged to the laptop). The router then will distribute the connection to multiple devices.

Read more “Quick proxy script for sharing internet among devices”