Skip to content

Instantly share code, notes, and snippets.

Installing OpenWrt on Google Wifi (AC-1304)

Google Wifi (AC-1304) is a 2x2 802.11ac access point with a Qualcomm IPQ4019 SoC, 512 MB RAM, and 4 GB eMMC storage. It runs a ChromeOS-based firmware called Gale and can be configured to boot unsigned firmware like OpenWrt by enabling Developer Mode.

Hardware Requirements

  • Google Wifi AC-1304
  • USB-C hub with power delivery (PD)
  • USB-C power supply
  • USB-C cable
@kkestell
kkestell / compiler.md
Last active October 31, 2024 13:00
Compiler

Compiler

main.py

import textwrap

from ast_debug import debug_ast
from cfg_builder import CFGBuilder
from cfg_debug import debug_cfg

Source

function main() -> int
{
    var a: int = 5;
    var b: int;
    if (a > 3)
    {
        b = 1;
@kkestell
kkestell / md.c
Last active January 31, 2024 12:17
#include "utf8.h"
#include <stdio.h>
#include <stdlib.h>
utf8_int8_t *ib, *it, *ob;
size_t len = 0, cap = 0;
void parse_text();
void parse_heading();
void parse_unordered_list();
#!/usr/bin/env bash
set -o xtrace
# Install dependencies
mkdir -p deps
# .NET 7.0 SDK
if [ ! -d deps/dotnet ]; then

.NET 7 AoT Compilation Steps

Overview

.cs -> csc -> .ilexe -> ilc -> .o -> clang -> native binary
@kkestell
kkestell / Dockerfile
Last active October 17, 2019 01:05
.NET Core 3.0 + Alpine 3.9 + PublishSingleFile
# BUILD
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-alpine AS build
WORKDIR /
COPY App/. ./app/
WORKDIR /app
RUN dotnet publish -c Release -r linux-musl-x64 -o out /p:PublishSingleFile=true

Ash

Literal Values

Numbers

1
2.71828
# ______ ______ __ __
# /\ __ \ /\ ___\ /\ \_\ \
# \ \ __ \\ \___ \\ \ __ \
# \ \_\ \_\\/\_____\\ \_\ \_\
# \/_/\/_/ \/_____/ \/_/\/_/
# ─────────────────────────────────────────
# Literal Values
# ─────────────────────────────────────────
{
projects: [
{
name: "Origin Meals",
start_date: "2019-01-01",
end_date: "2019-10-01",
people: [
{
name: "Casey Jacobson",
avatar_url: "https://example.com/avatar.jpg",