Skip to content

Instantly share code, notes, and snippets.

View jmeridth's full-sized avatar
:shipit:
reviewing and shipping code

Jason Meridth jmeridth

:shipit:
reviewing and shipping code
View GitHub Profile
@jmeridth
jmeridth / get_to_know_you.md
Last active January 27, 2026 00:32
Script I use when doing a GTKY(get-to-know-you)/Intro with others

Name Here

Tags

  • {{tags}}

GTKY

  • {{date}}
@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")
@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

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 / gist:ac1779ceb11cbf3218bca3b1ff2a48b8
Last active July 5, 2016 14:07
Showing difference between `git log -S [string]`, `git log -G [string]` and `git log --grep=[string]`
[jmlaptop][~/dev/test]
[master]->$ git log
commit 118258761878c6c36fb3f16f659564b18525a409
Author: jmeridth <jmeridth@gmail.com>
Date: Tue Jul 5 09:03:54 2016 -0500
This is a test of a multiline commit
- to search git log for keywords
[~/dev/opencafe]
[master]->$ git co -b v0.3.1 && git pull https://git.openstack.org/openstack/opencafe refs/changes/47/335647/1
[~/dev/opencafe]
[v0.3.1]->$ tox
GLOB sdist-make: /Users/jaso2654/dev/opencafe/setup.py
pep8 inst-nodeps: /Users/jaso2654/dev/opencafe/.tox/dist/opencafe-0.3.1.zip
pep8 installed: flake8==2.6.2,funcsigs==1.0.2,mccabe==0.5.0,mock==2.0.0,nose==1.3.7,opencafe==0.3.1,pbr==1.10.0,pluggy==0.3.1,py==1.4.31,pycodestyle==2.0.0,pyflakes==1.2.3,six==1.10.0,tox==2.3.1,virtualenv==15.0.2
pep8 runtests: PYTHONHASHSEED='1292688052'
pep8 runtests: commands[0] | flake8
py27 inst-nodeps: /Users/jaso2654/dev/opencafe/.tox/dist/opencafe-0.3.1.zip
@jmeridth
jmeridth / test_data_driven_class_suite_generation.py
Created May 31, 2016 17:13
Lines 48+ for the testing of adding skip to DataDrivenClass
# Copyright 2016 Rackspace
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@jmeridth
jmeridth / lostechies.conf
Last active August 29, 2015 14:25
LT apache conf
<VirtualHost *:80>
ServerName lostechies.com
ServerAlias www.lostechies.com
ServerAlias tddfirestarter.lostechies.com
Redirect permanent / https://lostechies.com/
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.lostechies\.com$ [NC]
@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