Skip to content

Instantly share code, notes, and snippets.

@op-m
op-m / System Design.md
Created February 20, 2020 04:36 — 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?
@op-m
op-m / k8s-user-data.sh
Created March 5, 2019 06:35 — forked from initcron/k8s-user-data.sh
kubernetes user data script
#!/bin/bash
apt-get update
apt-get install -y git wget
# Install Docker
apt-get install \
apt-transport-https \
ca-certificates \
curl \
@op-m
op-m / filebeat_jboss_multiline.yml
Created September 22, 2018 04:39 — forked from kadirsert/filebeat_jboss_multiline.yml
Sending Jboss Server Logs with Filebeat to Logstash (Multiline)
filebeat:
prospectors:
-
paths:
- /var/log/messages
- /var/log/secure
input_type: log
document_type: syslog
-
paths:
@op-m
op-m / jboss-logstash.conf
Created September 22, 2018 04:38 — forked from kostyaev/jboss-logstash.conf
Logstash config for JBoss AS 7
input {
file {
path => "/Users/virtuozzo/Servers/jboss-as-7.1.1.Final/standalone/log/server.log"
start_position => end
}
}
filter {
mutate { replace => { "type" => "local-jboss" } }
grok {
@op-m
op-m / Jenkins-qualitygate
Created July 16, 2017 19:16
Jenkinsfile and Quality gate SonarQube
stage("checkout") {
node("usine") {
deleteDir()
git changelog: false, poll: false, url: 'ssh://git@git.groupe.generali.fr:7999/sandbox/gs-spring-boot-docker.git'
// checkout scm
stash name: 'sources', includes: '**/**'
stash name: 'dockerfile', includes: 'Dockerfile'
}
}
@op-m
op-m / README.md
Created May 26, 2017 16:50 — forked from dnozay/README.md
docker tips and tricks

fix slow networking

see hashicorp/vagrant#1807

boot2docker down
VBoxManage modifyvm "boot2docker-vm" --natdnsproxy1 on
VBoxManage modifyvm "boot2docker-vm" --natdnshostresolver1 on
boot2docker up
@op-m
op-m / README.md
Created May 26, 2017 16:50 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
@op-m
op-m / The Technical Interview Cheat Sheet.md
Created October 29, 2016 06:46 — 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.