Skip to content

Instantly share code, notes, and snippets.

View gtallen1187's full-sized avatar
🤪

Greg Allen gtallen1187

🤪
View GitHub Profile
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@gtallen1187
gtallen1187 / Greg's Great Guides: Packages & Libraries.md
Last active May 14, 2020 01:14
Greg's Great Guides: Packages, Libraries, Utilities, & Tools

As a reminder, Greg's Great Guides are intended for beginners and novice-level programmers only. Any type of structured engineering education would likely cover all of these topics in year one (or year zero!).

However, if you have a genuine interest in technology, and would like to spend your free time learning new stuff and building new things, then these guides are for you!

What are you waiting for? Get Going with Greg's Great Guides!

Packages, Libraries, Utilities, & Tools

This guide will walk you through the various installation and configuration steps to ensure that your machine is up to snuff. The packages, libraries, and other tools listed below are simply those that I have found helpful or otherwise valuable.

@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 / .gitignore_global
Last active June 11, 2023 07:13
Example global gitignore file
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@webframp
webframp / keybase.md
Created July 25, 2017 18:14
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@gtallen1187
gtallen1187 / Greg's Great Guides: Global Git Config.md
Last active February 3, 2021 19:48
Greg's Great Guides: Global Git Config

Global Git Config

When setting up git for the first time on your computer, you'll need to configure it before you can really use it. This guide below outlines some of the well-known and lesser-known configuration options that I've found to be super helpful in the past.

Core

The commands below are essential to run when configuring your git installation.

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active November 3, 2024 17:14
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

"The greatest performance improvement of all is when a system goes from not-working to working"

From a lecture by Professor John Ousterhout at Stanford.

Programmers tend to worry too much and too soon about performance. Many college-level Computer Science classes focus on fancy algorithms to improve performance, but in real life performance rarely matters. Most real-world programs run plenty fast enough on today's machines without any particular attention to performance. The real challenges are getting programs completed quickly, ensuring their quality, and managing the complexity of large applications. Thus the primary design criterion for software should be simplicity, not speed.

> Occasionally there will be parts of a program where performance matters, but you probably won't be able to predict where the performance issues will occur. If you try to optimize the performance of an application during the initial construction you will add complexity that will impact the timely delivery and quality o

@gtallen1187
gtallen1187 / slope_vs_starting.md
Created November 2, 2015 00:02
A little bit of slope makes up for a lot of y-intercept

"A little bit of slope makes up for a lot of y-intercept"

01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140

Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.

[Laughter]