Skip to content

Instantly share code, notes, and snippets.

@yoelrc88
yoelrc88 / matrix-install.sh
Last active July 7, 2021 11:44
MATRIX Voice : Installing MATRIX Software and running HAL demos
##########
# PART 1 #
##########
# Add repo and key
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
# Update packages and install
sudo apt-get update
@yoelrc88
yoelrc88 / ssh-into-colab.sh
Last active April 29, 2019 17:03 — forked from creotiv/gist:d091515703672ec0bf1a6271336806f0
script to ssh into colab notebook
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
! apt-get install -qq -o=Dpkg::Use-Pty=0 openssh-server pwgen > /dev/null
#Set root password
@yoelrc88
yoelrc88 / vivado-ubuntu-install.md
Last active January 29, 2019 15:19
Install and setup WePack in Ubuntu
@yoelrc88
yoelrc88 / asound.conf
Last active November 21, 2018 17:55
asound file using softvol
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "speaker-softvol"
}
capture.pcm {
type plug
slave.pcm "mics-softvol"
}
@yoelrc88
yoelrc88 / compare-diff-sheets.md
Created October 12, 2018 16:49
Formula to conditionally format comparing two sheets in a Google Sheet cell by cell.
@yoelrc88
yoelrc88 / default-interface-file-raspi.txt
Created July 1, 2018 00:47
default-interface-file-raspi.txt
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
@yoelrc88
yoelrc88 / esp32_a2dp_connect_failed.log
Created June 27, 2018 22:41
esp32_a2dp_connect_failed.log
Welcome to minicom 2.7
OPTIONS: I18n
Compiled on Apr 22 2017, 09:14:19.
Port /dev/ttyS0, 22:32:48
Press CTRL-A Z for help on special keys
I (5133) BT_AV: *********************************************
@yoelrc88
yoelrc88 / make-rpi-sdcard-image-dd.md
Last active June 6, 2018 22:00
making and image with dd

Making the image small as possible

  • unmount SD card
  • resize partition using gparted
  • apply changes

Finding how big is the partition

using fdisk:

@yoelrc88
yoelrc88 / keybindings.json
Last active April 18, 2018 22:13
VSCode Keyboard Setup
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+[BracketLeft]",
"command": "editor.fold",
"when": "editorTextFocus"
},
{
"key": "ctrl+[",
"command": "-editor.fold",
@yoelrc88
yoelrc88 / file-permissions-rasp.md
Created April 4, 2018 21:01
WORKING WITH FILE PERMISSIONS ON YOUR RASPBERRY PI