Skip to content

Instantly share code, notes, and snippets.

View jahe's full-sized avatar

Jannik Hell jahe

View GitHub Profile
@jahe
jahe / serverless-cheatsheet.sh
Last active March 14, 2022 08:16
Serverless Cheatsheet
# Create a serverless project for Node.js within AWS Lambda
serverless create --template aws-nodejs
# Create AWS credentials file in ~/.aws
serverless config credentials --provider aws --key <access-key-id> --secret <secret> --profile <profilename>
# Deploy functions from serverless.yml to AWS Lambda
sls deploy
# Invoke function
@jahe
jahe / microservices-cheatsheet.md
Last active December 13, 2023 16:04
Microservices Cheatsheet

Glossar

  • Sidecar - Process that encapsulates required technologies (e.g. logging, monitoring, service discovery, etc.) in the microservices environment and makes them available to microservices that are not able to use those technologies natively
  • Immutable Server -

Configuration + Coordination

  • Zookeeper - https://zookeeper.apache.org/ - Provides configs in a hierarchical key-value store that is replicated and synchronized across large distributed systems.
  • etcd - https://github.com/coreos/etcd - Like Zookeeper. Distributed reliable key-value store for the most critical data of a distributed system. Provides a REST API. It is possible to do locking in a distributed system with it.
  • Spring Cloud Config - Provides a REST API. Config files can be based in a Git repo. The config data can be encrypted (e.g. for passwords in config files)

Service Discovery

@jahe
jahe / linux-notes.md
Created July 11, 2017 22:07
Linux Notes

User Space vs. Kernel Space

  • User Space = User + Prozesse + Libraries
  • Kernel Space = Kernel + Driver + Hardware
  • API through System Calls and Signals provided by glibc (C Library)

System Call vs. Signal

  • System Call = API call from a program to the kernel
  • Signal = An Event like SIGTERM or SIGKILL that interrupts the programs control flow

Static linked vs. Dynamically linked

@jahe
jahe / docker-for-enterprise-operations-notes.md
Last active December 8, 2020 18:07
Docker for Enterprise Operations - Notes

DockerEE Basic - 80 Euro pro Maschine

Storage Driver

  • Debian (Default): AUFS
  • CentOS (Default): Device Mapper

Docker Datacenter

  • Build Pipeline
  • Zugriffskontrolle
@jahe
jahe / docker-fundamentals-notes.md
Last active July 5, 2017 07:47
Docker Fundamentals - Notes

Innerhalb von Docker ist man root --> Hat aber nur noch 4-5 Rechte --> Capabilites

  • 47 Capabilities sind dabei deaktiviert

Limitierung

  • Capabilties - Limitierung von Kernel Zugriffen
  • CGroups - Limitierung von Ressourcen
  • ACL - Limitierung von Dateizugriffen

Dockercontainer so isolieren, dass sich diese nicht sehen können

@jahe
jahe / unity-2d-notes.md
Last active June 26, 2017 21:05
Unity 2D Notes

Hierarchy

  • backgrounds - A GameObject without a Sprite. It has a Script BackgroundParallax that gets env_bg, env_BigBen, etc. as a list of parallaxable GameObjects.
    • Clouds
    • env_Bank
    • env_BigBen
    • Fog
    • RiverMid
    • RiverTop
  • foregrounds - A GameObject that has only a Transform Component
  • Transform
@jahe
jahe / spock-cheatsheet.groovy
Last active October 20, 2017 07:21
Spock Cheatsheet
// Ignore a single test within a Specification
class MySpec extends Specification {
@Ignore // spock.lang.Ignore
def "foo"() {
// ...
}
}
// Ignore a whole Specification
@Ignore // spock.lang.Ignore
@jahe
jahe / devopscon-2017-notes.md
Last active January 8, 2019 21:01
DevOpsCon 2017 Notes

Glossar

A/B Testing - Two groups of users (A and B) interact with different versions of the app (e.g. Design is different). The version with a better conversion rate wins.


Monday

09:30 - 17:00 (Salon 4) - Web Hacking: Pentesting and attacking Web Apps

http://christian-schneider.net/downloads/Toolbased_WebPentesting.pdf FindBugs + FindSecurityBugs - Plugins in Eclipse

CVE

CVE-ID - One vulnerabilty in a CVE registry. It includes a score

@jahe
jahe / alexa-cheatsheet.md
Last active June 22, 2017 14:27
Alexa Cheatsheet

Components:

  1. User
  2. Two Hardware Components
    • The Alexa enabled Device (e.g. Amazon Echo)
    • The Mobile Phone or Tablet that has the Alexa App on it
  3. Alexa Platform
    • It contains the entire universe of thousands of skills
    • It contains all the artificial intelligence to enable this platform
    • This is where we are putting our Skill details through the Developer Portal
  4. API for this Skill
@jahe
jahe / unity-cheatsheet.cs
Last active June 26, 2017 20:23
Unity Cheatsheet
// ------- C# -------
// Generator functions
//
// Has to be a return value of IEnumerable, IEnumerable<T>, IEnumerator or IEnumerator<T>
// in C# a Generator function is inferred by looking at the function body (looking for yield statements)
// IEnumerable is an item that can be iterated on
public IEnumerable<int> GetValues(int count) {
for (int i = 0; i < count; ++i) {
yield return i;
}