This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_update: true | |
package_upgrade: true | |
packages: | |
# Update the apt package index and install packages needed to use the Docker and Kubernetes apt repositories over HTTPS | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- gnupg | |
- lsb-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This application is a creative project idea | |
#It captures live audio and maps it realtime to rgb values | |
#It is a fun way to visualize sound | |
#But the performance is not good enough to be used as a (actual) visualizer, its really slow | |
import pyaudio | |
import numpy as np | |
import time | |
import sys | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
while : | |
do | |
for i in {1..5} | |
do | |
espeak "work" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ABP | |
//ABP | |
//ABP | |
#include "LoRaWan_APP.h" | |
#include "Arduino.h" | |
#include "mywire.h" | |
#include <OneWire.h> | |
OneWire ds(GPIO5); // on pin GPIO1 PIN 6 (a 4.7K resistor is necessary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GxEPD.h> | |
#include <GxGDEP015OC1/GxGDEP015OC1.cpp> | |
#include <Fonts/OpenSansBold12pt7b.h> | |
#include <Fonts/OpenSansBold14pt7b.h> | |
#include <Fonts/OpenSansBold30pt7b.h> | |
#include <GxIO/GxIO_SPI/GxIO_SPI.cpp> | |
#include <GxIO/GxIO.cpp> | |
#include GxEPD_BitmapExamples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gitlab/gitlab-ce:latest | |
RUN echo "postfix postfix/main_mailer_type select Internet Site" | debconf-set-selections \ | |
&& echo "postfix postfix/mailname string mysubdomain.mydomain.com" | debconf-set-selections \ | |
&& apt-get install -y postfix | |
RUN apt-get install -y \ | |
mailutils | |
RUN grep -q postfix-start.sh /assets/wrapper || sed -i \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notes to make IR shield (made by LinkSprite) work in Raspberry Pi 3 (bought from Amazon [1]). | |
The vendor has some documentation [2] but that is not complete and sufficient for Raspbian Stretch. | |
Following are the changes that I made to make it work. | |
$ sudo apt-get update | |
$ sudo apt-get install lirc | |
# Add the following lines to /etc/modules file | |
lirc_dev | |
lirc_rpi gpio_in_pin=18 gpio_out_pin=17 |