Skip to content

Instantly share code, notes, and snippets.

@klaaspieter
klaaspieter / ASS.md
Created June 22, 2017 07:59 — forked from anonymous/ASS.md
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.

@tomer-ben-david
tomer-ben-david / gist:1f2611db1d0851a65d43
Created May 27, 2014 10:36
write bytes to file in scala
val byteArray: Array[Byte] = Array(1,2)
val bos = new BufferedOutputStream(new FileOutputStream(filename))
Stream.continually(bos.write(byteArray))
bos.close() // You may end up with 0 bytes file if not calling close.
@Kartones
Kartones / postgres-cheatsheet.md
Last active July 25, 2024 09:09
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@dolzenko
dolzenko / bid_parser.py
Last active July 21, 2017 14:51
Parse Google BidRequest/BidResponse with Python
import bidding_pb2
rq = bidding_pb2.BidResponse()
f = open('bid_response.bin', "rb")
rq.ParseFromString(f.read())
print(rq)
f.close()
rq = bidding_pb2.BidRequest()
f = open('bid_request.bin', "rb")