Abstraction Layer | Physical Layer | Uses Namespace | Description |
---|---|---|---|
Pod | Container | ✅ | A Pod is the minimal work unit of Kubernetes, it is generally equivalent to one applicative container but it can be composed of multiple ones. |
Replicaset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) throws Exception { | |
// Configure your producer | |
Properties producerProperties = new Properties(); | |
producerProperties.put("bootstrap.servers", "localhost:29092"); | |
producerProperties.put("acks", "all"); | |
producerProperties.put("retries", 0); | |
producerProperties.put("linger.ms", 1); | |
producerProperties.put("key.serializer", "org.apache.kafka.common.serialization.LongSerializer"); | |
producerProperties.put("value.serializer", "io.confluent.kafka.serializers.KafkaAvroSerializer"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ curl 'https://cr-buildbucket.appspot.com/prpc/buildbucket.v2.Builds/GetBuild' \ | |
-H 'authority: cr-buildbucket.appspot.com' \ | |
-H 'accept: application/json' \ | |
-H 'dnt: 1' \ | |
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36' \ | |
-H 'content-type: application/json' \ | |
-H 'origin: https://ci.chromium.org' \ | |
-H 'sec-fetch-site: cross-site' \ | |
-H 'sec-fetch-mode: cors' \ | |
-H 'sec-fetch-dest: empty' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
// Creating the injection module configured above. | |
Injector injector = Guice.createInjector(new WeatherModule()); | |
// We ask for the injection of a WeatherContract, | |
// which will create an instance of ThermometerContract | |
// with the named TemperatureUnit under the hood. | |
WeatherContract weather = injector.getInstance(WeatherContract.class); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def current_time(): | |
# Centralized method to retrieve the current datetime | |
return arrow.get() | |
def compute_stats(): | |
# Compute some statistics about stored data | |
month = current_time().floor('month') | |
data = retrive_data(month) | |
return len(data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i "localhost:8080/hello/jack?amount_exclamation=4" | |
HTTP/1.1 200 | |
{"message":"Hello jack!!!!"} | |
# -d automatically creates a POST request. | |
$ curl -i "localhost:8080/hello" -d '{"name": "Bob"}' -H "Content-Type: application/json" | |
HTTP/1.1 200 | |
{"message":"Hello Bob"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat apps-todo.csv | wc -l^C | |
./finished_projects.sh > ../apps-selection/paprika-finished | |
cd - | |
cat paprika_finished | xargs -iX grep -e "^X," all.csv > apps-todo.csv | |
# Todo: create tandoori_finished |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.app; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.util.Log; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afwall | ukanth/afwall | |
---|---|---|
AmazeFileManager | arpitkh96/AmazeFileManager | |
andFHEM | klassm/andFHEM | |
android-cache-cleaner | Frozen-Developers/android-cache-cleaner | |
Android-IMSI-Catcher-Detector | CellularPrivacy/Android-IMSI-Catcher-Detector | |
Android-Password-Store | zeapo/Android-Password-Store | |
Android-Remote | clementine-player/Android-Remote | |
andstatus | andstatus/andstatus | |
Anki-Android | ankidroid/Anki-Android | |
AnyMemo | helloworld1/AnyMemo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# Usage: | |
# ./convert.sh /path/to/framework /path/to/out $apiVersion $arch | |
# | |
# $arch is mandatory only in case of an ART system and defines the boot folder to use (arm, x86, x86_64). | |
## | |
frameworkDir=$1 | |
# Final output directory |
NewerOlder