Skip to content

Instantly share code, notes, and snippets.

View typable's full-sized avatar
🛠️
building stuff

Andreas typable

🛠️
building stuff
View GitHub Profile

Task

2. Network

OSI Reference Model

Layer Function Examples
Application High-level APIs, including resource sharing, remote file access HTTP, WebSocket
Presentation Translation of data between a networking service and an application; including character encoding, data compression and encryption/decryption MIME, SSL, TLS
#!/bin/bash
if [[ "$1" == "new" ]]; then
if [[ -f ".snip" ]]; then
echo "Not empty dir!"
exit 0
fi
cp -r /d/bin/_snip/* ./
touch .snip
echo "Created a new snip."
// [dependencies]
// pico-args = "0.5.0"
// regex = "1.7.0"
use std::io;
use std::io::Read;
use std::io::Write;
use std::net::TcpStream;
use regex::Regex;
[init]
defaultBranch = main
[user]
name = typable
email = contact@typable.dev
[alias]
st = status -sb
cm = commit -m
co = checkout
cp = cherry-pick
const STORE_LOG_LEVEL = 'LOG_LEVEL';
const STORE_LOG_MODULE = 'LOG_MODULE';
export enum Level {
Debug = 3,
Info = 2,
Warn = 1,
Error = 0,
}