Skip to content

Instantly share code, notes, and snippets.

View SteffenDE's full-sized avatar
🏠
Working from home

Steffen Deusch SteffenDE

🏠
Working from home
View GitHub Profile
@Fluepke
Fluepke / README.md
Created December 24, 2022 15:57
Vodafail

Vodafail

This will become a short tutorial on how to achieve higher bandwidth on a residential (german) Vodafone DOCSIS internet connection.

A flaw in Vodafone's modem activation process allows for simultanous operation of two modems on one contract:

  • Vodafone-owned CPE (e.g. "Vodafone Station")
  • Customer CPE (TC4400, Fritz?!Box 6660, etc.)

On a low-loaded DOCSIS 3.1 segment, I am able to achieve 1900 MBit/s download and 95 MBits/ upload bitrate by bundling both modems using MPTCP

@LostKobrakai
LostKobrakai / form_live.ex
Last active June 15, 2024 12:06
Phoenix LiveView form with nested embeds and add/delete buttons
defmodule NestedWeb.FormLive do
use NestedWeb, :live_view
require Logger
defmodule Form do
use Ecto.Schema
import Ecto.Changeset
embedded_schema do
field :name, :string
@alexandremcosta
alexandremcosta / downloader.ex
Last active October 23, 2023 13:05
Stream HTTP body with Elixir Mint
defmodule Downloader do
@moduledoc"""
Download streams of bytes from URLs.
Useful to transfer large files with low RAM usage.
## Example with `ExAWS.S3.upload/3`
```elixir
url
|> Downloader.stream_body!()
@marcelrebmann
marcelrebmann / incidence.js
Last active April 18, 2022 14:39 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: magic;
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
const locationApi = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=OBJECTID,cases7_per_100k,cases7_bl_per_100k,cases,GEN,county,BL,last_update&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`
const serverApi = (landkreisId) => `https://cdn.marcelrebmann.de/corona/?id=${landkreisId}`
const VACCINATION_IMG_URL = `https://cdn.marcelrebmann.de/img/vaccine-64.png`
/**
* User specific configuration.
@jirutka
jirutka / webdav_treat_osx.conf
Created April 14, 2013 00:28
Nginx optimization for WebDAV access from OS X Finder. This config snippet ensures that nginx will ignore requests for useless dot files generated by the Finder (.DS_Store, ._*, …)
#
# Ignore requests for useless dot files generated by OS X Finder (WebDAV).
#
# This little hack speeds-up a WebDAV access from the Finder significantly and
# also prevents messing storage with these annoying files.
#
location ~ \.(_.*|DS_Store|Spotlight-V100|TemporaryItems|Trashes|hidden)$ {
access_log off;
error_log off;