Skip to content

Instantly share code, notes, and snippets.

View gtallen1187's full-sized avatar
🤪

Greg Allen gtallen1187

🤪
View GitHub Profile
@gtallen1187
gtallen1187 / find_table_columns.sql
Created November 14, 2018 23:48
List all column names for a given table (psql)
SELECT *
FROM information_schema.columns
WHERE table_schema = 'your_schema'
AND table_name = 'your_table'
@gtallen1187
gtallen1187 / developer-chrome-extensions.md
Last active February 3, 2021 19:51
Chrome Extensions for Software Development

Updated 2020-01-10

Chrome Extensions for Developers

Below is a list of Chrome extensions that I've found to be especially helpful for software development. There's a section for Chrome Extensions by Google, and another section for Chrome Extensions for GitHub.

Developer Extensions

  • Clear Cache - A simple extension that clears your browser cache (and optionally history, cookies, etc) with a single click. I use this extension multiple times per day.
  • Library Sniffer - Identifies the technologies running any web page.
@gtallen1187
gtallen1187 / swagger.json
Created September 29, 2018 01:33
Kernel API Swagger - 2018-09-28
// 20180928211805
// https://api.kernel.telluslabs.com/api/v1/swagger.json
{
"swagger": "2.0",
"basePath": "/api/v1",
"paths": {
"/admin/users/": {
"get": {
"responses": {
@gtallen1187
gtallen1187 / git-rebase.md
Created September 18, 2018 17:48
Great instructions on how (and why) to consistently rebase

p. Using git-rebase helps create clean commit trees and makes keeping your code up-to-date with the current state of the upstream master easy. Here's how it works.

p. Let's say you're working on Issue #212 a new plugin in your own branch and you start with something like this:


          1---2---3 #212-my-new-plugin
         /
    A---B #master
@gtallen1187
gtallen1187 / combine-commits-for-contributing.md
Created September 18, 2018 17:46
Instructions for how to combine commits to clean up contributing

The workflow of the Todo.txt Touch project says that the master branch of ginatrapani/todo.txt-touch is the golden branch from which all development is based off of.

In order to keep this easy to navigate, it is asked that you squash your commits down to a few, or one, discrete changesets before submitting a pull request. Fixing a bug will usually only need one commit, while a larger feature might contain a couple of separate improvements that is easier to track through different commits.

Once you have rebased your work on top of the latest state of the upstream master, you may have several commits related to the issue you were working on. Once everything is done, squash them into a single commit with a descriptive message, like "Issue #100: Retweet bugfix."

To squash four commits into one, do the following:

$ git rebase -i HEAD~4
@gtallen1187
gtallen1187 / github.css
Created September 3, 2018 04:55 — forked from tuzz/github.css
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@gtallen1187
gtallen1187 / meta-tags.md
Created September 2, 2018 22:26 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@gtallen1187
gtallen1187 / chromebook_cheat_sheet.md
Last active September 1, 2018 20:19
Chromebook stuff

Switch to Canary channel

$ shell
$ sudo su
$ update_engine_client -channel=canary-channel -update

Some tutorials say that the command live_in_a_coal_mine will take you to canary, but this does not work.

# TERMINAL PROMPT
# Git branch script from http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac
# Custom bash prompt via kirsle.net/wizards/ps1.html
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[$(tput bold)\]\[$(tput setaf 5)\]⌘ \[$(tput setaf 6)\]\w\[$(tput setaf 3)\]\$(parse_git_branch) \[$(tput sgr0)\]"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.