Skip to content

Instantly share code, notes, and snippets.

View jmeridth's full-sized avatar
:shipit:

Jason Meridth jmeridth

:shipit:
View GitHub Profile

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

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:

@jmeridth
jmeridth / gist:4a06463b72b8d4fcfa53
Created January 21, 2015 20:10
created by github.com/tr3buchet/gister
hello
@jmeridth
jmeridth / test1.txt
Created December 31, 2014 15:08
test getting multiple raw files remotely
test1

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: