Skip to content

Instantly share code, notes, and snippets.

View dastergon's full-sized avatar

Pavlos Ratis dastergon

View GitHub Profile
@dastergon
dastergon / hello.b
Created May 10, 2015 12:48
The first ever known "hello world" version
// Kernighan's 1972 A Tutorial Introduction to the Language B
// https://en.wikipedia.org/wiki/%22Hello,_World!%22_program
main(){
extrn a,b,c;
putchar(a); putchar(b); putchar(c); putchar('!*n');
}
a 'hell';
b 'o, w';

Keybase proof

I hereby claim:

  • I am dastergon on github.
  • I am dastergon (https://keybase.io/dastergon) on keybase.
  • I have a public key ASCWcL_1JH05ltGCQ6HWe-ZJvFnUN0PwfIz1W-Hm857bEQo

To claim this, I am signing this object:

SREcon16 Europe - Microsoft Azure SRE - Service Roast Sample

Topics
Service Overview What is it, who uses it, where does it fit in overall
Technical Architecture Overview, upstream dependencies, sub-components
Development Process Source control, external dependencies, build, test, tools
Change Management / Deployment Process, technology, cadence, gates, rollback
Configuration Management Process, technology, source control
Demand Forecasting, Capacity Management How do you shift load, or scale? How do you load test? Can you shed load?
In [1]: class One:
...: def __init__(self):
...: self.bw_rate = 1
...:
In [2]: class Two:
...: def __init__(self):
...: self.bw_rate = 0
...:
@dastergon
dastergon / jessfraz.md
Created April 18, 2018 15:13 — forked from acolyer/jessfraz.md
Containers, operating systems and other fun things from The Morning Paper
@dastergon
dastergon / The Technical Interview Cheat Sheet.md
Last active April 21, 2019 16:15 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
  • They are one of the oldest, most commonly used data structures.
@dastergon
dastergon / dbsnap.py
Last active March 2, 2021 05:30
dbsnap is a DB snapshot management tool for Amazon RDS.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""dbsnap is a DB snapshot management tool for Amazon RDS.
Demo tool used for educational purposes in http://blog.codebender.cc/2015/12/08/automating-db-snapshots-at-amazon-rds/
"""
from __future__ import print_function
import boto3
@dastergon
dastergon / service-checklist.md
Created September 29, 2016 15:44 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@dastergon
dastergon / HttpURLCon.java
Created November 9, 2015 16:36
HTTP GET request in Java
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class HttpURLCon {
private final String USER_AGENT = "Mozilla/5.0";
public static void main(String[] args) throws Exception {
SRE Practices
Weekly Ops Review
Lunch and Learn
Pre-mortem
Maturity Model
SRE Games
State of the Union
RACI
OOPs Meeting