Skip to content

Instantly share code, notes, and snippets.

View dbgoytia's full-sized avatar
👋
Hi there, I'm new to OSS and looking to help!

Diego Goytia dbgoytia

👋
Hi there, I'm new to OSS and looking to help!
View GitHub Profile
@dbgoytia
dbgoytia / read_mux_16_channel.cpp
Created March 11, 2023 21:35
Reading a 16 channel mux
const int mux_control_pins[] = {2, 3, 4, 5} // control pins for the MUX
const int input_pins[] = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25}; // input pins for the mux. see table below:
// binary decimal
// 1010 10
// 1011 11
// 1100 12
// 1101 13
// 1110 14
// 1111 15
@dbgoytia
dbgoytia / .sh
Created November 9, 2021 19:36
Docker system cleanup
# Kill all running containers:
docker kill $(docker ps -q)
# Delete all stopped containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
# Remove unused data
@dbgoytia
dbgoytia / Ex14.go
Last active July 26, 2020 23:09
The Go Programming Language Exercise 1.4
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
// Store the names of the files, and the words and times the owrd has repeated