Skip to content

Instantly share code, notes, and snippets.

Avatar

Yoel Ramos yoelrc88

  • Miami. FL
View GitHub Profile
@yoelrc88
yoelrc88 / ssh-into-colab.sh
Last active Apr 29, 2019 — forked from creotiv/gist:d091515703672ec0bf1a6271336806f0
script to ssh into colab notebook
View ssh-into-colab.sh
#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 / asound.conf
Last active Nov 21, 2018
asound file using softvol
View asound.conf
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "speaker-softvol"
}
capture.pcm {
type plug
slave.pcm "mics-softvol"
}
@yoelrc88
yoelrc88 / vivado-ubuntu-install.md
Last active Jan 29, 2019
Install and setup WePack in Ubuntu
View vivado-ubuntu-install.md
@yoelrc88
yoelrc88 / compare-diff-sheets.md
Created Oct 12, 2018
Formula to conditionally format comparing two sheets in a Google Sheet cell by cell.
View compare-diff-sheets.md
@yoelrc88
yoelrc88 / default-interface-file-raspi.txt
Created Jul 1, 2018
default-interface-file-raspi.txt
View 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 Jun 27, 2018
esp32_a2dp_connect_failed.log
View 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 Jun 6, 2018
making and image with dd
View make-rpi-sdcard-image-dd.md

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 Apr 18, 2018
VSCode Keyboard Setup
View keybindings.json
// 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 Apr 4, 2018
WORKING WITH FILE PERMISSIONS ON YOUR RASPBERRY PI
View file-permissions-rasp.md
View rainbow-colors.txt
1 229 0 107
2 229 0 31
3 229 44 0
4 229 120 0
5 229 196 0
6 184 229 0
7 108 229 0
8 32 229 0
9 0 229 43
10 0 229 119
You can’t perform that action at this time.