Skip to content

Instantly share code, notes, and snippets.

View jmeridth's full-sized avatar
:shipit:
ship to learn

JM (Jason Meridth) jmeridth

:shipit:
ship to learn
View GitHub Profile
@jmeridth
jmeridth / get_to_know_you.md
Last active October 16, 2024 22:32
Script I use when doing a GTKY(get-to-know-you)/Intro with others

Name Here

Notes

  • 1 minute intro: Name, current team, what you're working on (break the ice)
  • Let user know you're taking notes and they will not be shared
  • Ask user to say "pass" on any questions they are not comfortable answering

GTKY

@jmeridth
jmeridth / .env.template
Last active July 11, 2020 21:45
python code using tekore package to moved saved (liked) tracks from one spotify account to another.
CLIENT_ID=PUT_CLIENT_ID_HERE
CLIENT_SECRET=PUT_CLIENT_SECRET_HERE
REDIRECT_URI=PUT_REDIRECT_URI_HERE
@jmeridth
jmeridth / first_down.py
Last active April 21, 2024 16:55 — forked from PatrickHallek/dwm1001-localization.py
code and setup to test 3 anchors and 1 tag decawave boards. Used Raspberry Pi 3B+
import json
import redis
import serial
import sys
import time
from art import text2art
if len(sys.argv) == 1:
print("Please provide a numeric value for the first down")
Host 192.168.1.205 192.168.1.204 192.168.1.203 192.168.1.202 192.168.1.201 192.168.1.200
IdentitiesOnly yes
Port 22
User pi
(ruby-2.5.1@ltblog)[dockerize *]->$ ssh [email protected]
The authenticity of host '192.168.1.205 (192.168.1.205)' can't be established.
ECDSA key fingerprint is SHA256:r4S/Vpj7Nfe0HC1PKFKvXaaTv8XDsj70EPpO/3gZMeQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.205' (ECDSA) to the list of known hosts.
Received disconnect from 192.168.1.205 port 22:2: Too many authentication failures
Authentication failed.
@jmeridth
jmeridth / etc_dhcpcd.conf_changes.bash
Created April 9, 2018 12:52
Change /etc/dhcpcd.conf for raspberry pi's to have static IP addresses
pi@k8s-2:~ $ sudo vi /etc/dhcpcd.conf
Original Lines
# Example static IP configuration:
#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
@jmeridth
jmeridth / set_static_ip_address.bash
Created April 9, 2018 12:38
Set static IP address on raspberrypi
pi@k8s-5:~ $ sudo su
root@k8s-5:/home/pi# cat /etc/dhcpd.conf
profile static eth0
static ip_address=192.168.1.200/24
static routers=192.169.1.1
static domain_name_servers=8.8.8.8
@jmeridth
jmeridth / find_ip_addresses_of_raspberry_pis.bash
Created April 9, 2018 02:59
Use nmap to scan you network for hosts named raspberrypi
[master]->$ nmap -sn 192.168.1.0/24 | grep raspberrypi
Nmap scan report for raspberrypi (192.168.1.95)
Nmap scan report for raspberrypi (192.168.1.100)
Nmap scan report for raspberrypi (192.168.1.102)
Nmap scan report for raspberrypi (192.168.1.114)
Nmap scan report for raspberrypi (192.168.1.115)
Nmap scan report for raspberrypi (192.168.1.117)
@jmeridth
jmeridth / add_raspberry_pi_known_hosts_and_login.bash
Created April 9, 2018 02:50
Add raspberry pi to known hosts and login (default password is `raspberry`)
[master]->$ ssh [email protected]
The authenticity of host '192.168.1.114 (192.168.1.114)' can't be established.
ECDSA key fingerprint is SHA256:r4S/Vpj7Nfe0HC1PKFKvXaaTv8XDsj70EPpO/3gZMeQ.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.114' (ECDSA) to the list of known hosts.
[email protected]'s password:
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
@jmeridth
jmeridth / change_default_raspberry_pi_password.bash
Created April 9, 2018 02:48
Change the pi user's default password (current is `raspberry`)
pi@raspberrypi:~ $ whoami
pi
pi@raspberrypi:~ $ passwd
Changing password for pi.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully