A minimal table to compare the Espressif's MCU families.
| ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | |
|---|---|---|---|---|---|---|
| Announcement Date | 2014, August | 2016, September | 2019, September | 2020, December |
| shader_type spatial; | |
| render_mode cull_disabled, blend_mix,diffuse_burley, specular_schlick_ggx; | |
| uniform sampler2D u_terrain_heightmap; | |
| uniform sampler2D u_terrain_detailmap; | |
| uniform sampler2D u_terrain_normalmap; | |
| uniform sampler2D u_terrain_globalmap : hint_albedo; | |
| uniform mat4 u_terrain_inverse_transform; | |
| uniform mat3 u_terrain_normal_basis; |
| # Simple example to deploy traefik with consul connect enabled. | |
| # For simplicity the job includes traefik as well as the backend service. | |
| # Please note that traefik currently only supports connect for HTTP. | |
| job "traefik-consul-connect-demo" { | |
| datacenters = ["dc1"] | |
| group "edge" { | |
| network { | |
| mode = "bridge" |
| use oauth2::reqwest::http_client; | |
| use oauth2::{basic::BasicClient, AuthUrl, AuthorizationCode, ClientId, ClientSecret, CsrfToken, Scope, TokenUrl, TokenResponse}; | |
| use std::io::{BufRead, BufReader, Write}; | |
| use std::net::TcpListener; | |
| use url::Url; | |
| use serenity::http::Http; | |
| fn main() { | |
| let client = BasicClient::new( | |
| ClientId::new("544523578855391241".to_string()), |
| import os | |
| import boto.utils | |
| import boto3 | |
| import requests | |
| import datetime | |
| import time | |
| def get_contents(filename): |
One of the most useful things in typed programming languages is generics. Generics allows you to write code that works across multiple types while still being checkable by the compiler. Even better is that with many languages like Rust and C#, generics have a distinct performance advantage over runtime casting. However although generics are extremely useful, many programming languages that have them don't allow for convenient ways of expressing them, especially for traits/interfaces. Like in Java if you want a generic interface you are forced to use the same Name<Type1, Type2, Type3, ...> syntax that you would use for a class. However, that often leads to ugly overly-verbose code.
Here's an example: Lets say that you have two traits/interfaces Foo and Bar that depend on three subtypes and you wanted a function that takes in any implementation of both Foo and Bar and returns the first type of Foo and the third type of Bar. The traditional Rust version that is similar to o
| fallocate -l 4G /swapfile | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' |
Reverse port tunneling is used to give a user outside of a networks firewall accesst to a computer inside the firewall where direct SSH connections aren't allowed. It works by the in-firewall computer SSH'ing to a middleman computer that then forwards incomming SSH connections on a given port to the firewalled computer.
GatewayPorts yes to /etc/ssh/sshd_config