Skip to content

Instantly share code, notes, and snippets.

View miathedev's full-sized avatar
🏠
Working from home

Mia miathedev

🏠
Working from home
  • 23:32 (UTC +02:00)
View GitHub Profile
@miathedev
miathedev / cloud-init.yaml
Last active August 17, 2023 15:47
Kubeadm cloud-init
#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
@miathedev
miathedev / vis.py
Created April 10, 2023 06:07
Sound 2 Light using Python Prototype
#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
@miathedev
miathedev / focus_tool.sh
Created March 23, 2023 18:32
Keep Focus
#!/bin/bash
set -e
while :
do
for i in {1..5}
do
espeak "work"
done
//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)
@miathedev
miathedev / eink_demo.ino
Created November 15, 2019 15:07 — forked from xxlukas42/eink_demo.ino
MH-ET LIVE 1.54-inches E-Paper demo
#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
@miathedev
miathedev / Dockerfile
Created November 7, 2018 20:02 — forked from ejhari/Dockerfile
GitLab CE with Postfix Send Only via Docker
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 \
@miathedev
miathedev / lirc-pi3.txt
Created November 1, 2018 07:24 — forked from prasanthj/lirc-pi3.txt
Getting lirc to work with Raspberry Pi 3 (Raspbian Stretch)
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