Skip to content

Instantly share code, notes, and snippets.

View jmeridth's full-sized avatar
:shipit:

Jason Meridth jmeridth

:shipit:
View GitHub Profile
@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")
@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 / postgresql_command_line_cheat_sheet.md
Last active July 2, 2020 17:14
PostgreSQL Command Line Cheat Sheet

change to postgres user and open psql prompt

sudo -u postgres psql postgres

list databases

postgres=# \l

list roles

Keybase proof

I hereby claim:

  • I am jmeridth on github.
  • I am jmeridth (https://keybase.io/jmeridth) on keybase.
  • I have a public key whose fingerprint is 0899 7B9D F1CB AA21 A785 64CB B0DA B474 BBA3 0F4F

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jmeridth on github.
  • I am jmeridth (https://keybase.io/jmeridth) on keybase.
  • I have a public key whose fingerprint is A035 5666 73B1 267C 9C33 5529 3F07 E1FA BB53 D2B0

To claim this, I am signing this object:

The Pragmatic Programmer Quick Reference Guide


This page summarizes the tips and checklists found in The Pragmatic Programmer.

For more information about The Pragmatic Programmers LLC, source code for the examples, up-to-date pointers to Web resources, and an online bibiography, visit us at www.pragmaticprogrammer.com

1. Care About Your Craft
Why spend your life developing software unless you care about doing it well?

@jmeridth
jmeridth / post-receive.rb
Created August 24, 2010 02:22
teamcity post_receive git hook
#!/usr/bin/env ruby
branches_to_build = ["master","develop","release1"]
while (input = STDIN.read) != ''
rev_old, rev_new, ref = input.split(" ")
if ref =~ /#{branches_to_build.join("|")}#/
# figure out your teamcity build url via help from http://bit.ly/dAFVO3
url="https://username:password@teamcitydomain.com/httpAuth/action.html?add2Queue=bt2"
puts "Run CI build for application"
# avoid check of self signed-certificates
@jmeridth
jmeridth / create_mac_address_range.py
Last active June 4, 2018 08:34
add default testing mac_address_range to quark
import requests
import json
HOST = "PUT YOUR IP HERE"
API_VERSION = "v2.0"
ADMIN_PASSWORD = "PUT YOUR ADMIN PASSWORD FROM YOUR DEVSTACK LOCAL.CONF HERE"
url = "http://%s:%s/%s/tokens" % (HOST, "5000", API_VERSION)
data = {'auth': {'tenantName': 'admin', 'passwordCredentials': {'username': 'admin', 'password': ADMIN_PASSWORD}}}
headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'User-Agent': 'python-neutronclient'}