Skip to content

Instantly share code, notes, and snippets.

mike fettis ridingintraffic

Block or report user

Report or block ridingintraffic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ridingintraffic /
Created Sep 23, 2019 — forked from klaaspieter/
Acronyms Seriously Suck - Elon Musk

From time to time, Musk will send out an e-mail to the entire company to enforce a new policy or let them know about something that's bothering him. One of the more famous e-mails arrived in May 2010 with the subject line: Acronyms Seriously Suck:

There is a creeping tendency to use made up acronyms at SpaceX. Excessive use of made up acronyms is a significant impediment to communication and keeping communication good as we grow is incredibly important. Individually, a few acronyms here and there may not seem so bad, but if a thousand people are making these up, over time the result will be a huge glossary that we have to issue to new employees. No one can actually remember all these acronyms and people don't want to seem dumb in a meeting, so they just sit there in ignorance. This is particularly tough on new employees.

That needs to stop immediately or I will take drastic action - I have given enough warning over the years. Unless an acronym is approved by me, it should not enter the SpaceX glossary.

View allfacebook
# To Completely Block Facebook
# Add these entries below to your hosts file
# Your hosts file Location:
# Linux, Unix and Mac OS X -> /etc/hosts
# Windows XP, Vista, Windows 7, 8.0, 8.1, 10 -> C:\WINDOWS\system32\drivers\etc\hosts
# Windows 2000 -> C:\WINNT\system32\drivers\etc\hosts
# Windows 98/ME -> C:\WINDOWS\hosts
View env_python_docker
import os
docker run --env USERNAME=$USERNAME --env PASSWORD=$PASSWORD -- name docker-nginx -p 8080:80 -d nginx
View a_secret_demo
ap42:secrets user$ cat test
ap42:secrets user$ ./ test
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
ap42:secrets user$ ls test.enc
ridingintraffic / 01 - hidden.ovpn
Last active Jan 13, 2019
openvpn as a systemd service with PS1 alerting
View 01 - hidden.ovpn
auth-user-pass /home/linuxuser/pass.txt
View list batching
<begin python script>
def chunks(l, n):
"""Yield successive n-sized chunks from l."""
for i in range(0, len(l), n):
yield l[i:i + n]
all_ids = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
ridingintraffic / python set
Created Jan 8, 2019
quick and dirty one line to dedup a list
View python set
>>> all_ids = [1,2,3,4,5,1,2,7,8,3,4,5]
>>> print all_ids
[1, 2, 3, 4, 5, 1, 2, 7, 8, 3, 4, 5]
## create a set passing in the list and then returning a list
>>> deduped_ids = list(set(all_ids))
>>> print deduped_ids
[1, 2, 3, 4, 5, 7, 8]
ridingintraffic / FIRE
Created Dec 23, 2018
in case of fire
function FIRE()
find ~/git/github/$(whoami) -maxdepth 1 -mindepth 1 -type d -exec cd {} \; -exec git pull {} \; -exec git add --all {} \; -exec git commit -a -m "firesale" {} \; -exec git push origin `git rev-parse --abbrev-ref HEAD` {} \;
function linkwork()
if [ -f "$linkTocheck" ]; then
echo "$linkTocheck is a file - backing it up"
mv "$linkTocheck" "$sourceLink.bak"
if [ ! -h "$linkTocheck" ]; then
View food?
function food()
arr[0]="Jimmy Johns"
arr[1]="Pita Inn"
arr[2]="Noodle and company"
You can’t perform that action at this time.