Skip to content

Instantly share code, notes, and snippets.

View webstandardcss's full-sized avatar

Trey Brister webstandardcss

View GitHub Profile
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@webstandardcss
webstandardcss / gist:3967760857d6be470dda
Created May 26, 2014 07:41
Regular expression search pattern to remove the Datetime and Name when you paste from skype chat into your text editor
^.*?].*?:\s
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@webstandardcss
webstandardcss / old ansible regex
Created February 8, 2015 19:04
Regular expression for parsing old ansible variables with the $ and replacing with jinja2 style double curly brace
Search for:
\$\{?(\w+\.?\_?\w+\.?\_?\w+)\}?
Replace with
{{ \1 }}
@webstandardcss
webstandardcss / pedantically_commented_playbook.yml
Last active April 23, 2019 06:03 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options.
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@webstandardcss
webstandardcss / ansible action regex
Created February 8, 2015 19:27
Regular expression update Ansible action: module syntax to use the new module: method
Search for
action: (\w+)
Replace with
\1:
@webstandardcss
webstandardcss / springer-free-maths-books.md
Created December 31, 2015 13:10 — forked from bishboria/springer-free-maths-books.md
Springer made a bunch of books available for free, these were the direct links
@webstandardcss
webstandardcss / comprehensions.md
Created March 29, 2016 01:06 — forked from bearfrieze/comprehensions.md
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

All of the tasks presented in the examples can be accomplished with the extensive standard library available in Python. These solutions would arguably be more terse and efficient in some cases. I don't have anything against the standard library. To me there is a certain

@webstandardcss
webstandardcss / System Design.md
Created April 18, 2016 22:54 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@webstandardcss
webstandardcss / README.md
Created August 2, 2016 17:07 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index: