I wrote this code to facilitate calculating USPTO trademark deadlines.
Open source code here :: https://github.com/xdth/uspto-trademark-calculator
Demo here :: http://uspto.dthlabs.com/
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
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
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
I created this script to automatize sharing of the hotspot connection I’m using.
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.
Install docker (you may need to reboot afterwards)
pacman -S docker
systemctl start docker
Check docker information
In order to minimize eventual residual surface charges, consider to leave the radio or headlights on for a couple of minutes prior to the measurement procedure.
1. Set your multimeter to DCV and select a range at least above 15V.
2. Connect the multimeter leads (black is ground) to the battery. The optimal reading is around 12.6V.
3. Now start the car with the multimeter connected to the battery. Voltage should not drop lower than 10V (it’s ok to drop to 11V).
Read More →
This is for a dev environment. Let’s start by installing apache
pacman -S apache
Now install PHP
pacman -S php php-apache php-mcrypt
Installing MySQL (MariaDB)
pacman -S mariadb
Create a hidden .bin folder somewhere you like. I did it on my home folder:
You can add this folder to your $PATH by adding to .bashrc:
## Path export PATH=$PATH:/home/dth/.bin
Now let’s test by adding a bash script I wrote called qdb (creates SQL DB, user and pwd)
cd ~/.bin && wget https://raw.githubusercontent.com/xdth/qdb/master/qdb
+5 ---+---------------+---+ | | | R +----------+ | | 8 4 | +---+------+-----|7 3|------/\/\/\---+------- Vout : | | LMC555 | | C to test +-----|6 | ----- : | | ----- ground +-----|2 5|----+ | | | 1 | | ground | +----------+ 0.1 uF | | | Clock ----+ ground ground ^
I needed a quick calculator for the 555 chip and decided to write one in C. Enjoy.
Read More →