Skip to content

Instantly share code, notes, and snippets.

View 1lann's full-sized avatar

Jason Chu 1lann

View GitHub Profile
@1lann
1lann / bot.go
Last active February 4, 2017 03:26
A bot that posts notifications about new comments and posts on the Riot API Developer Forums.
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"strconv"
"strings"
package main
import (
"fmt"
"sync"
"github.com/dgraph-io/badger/badger"
)
func main() {
@1lann
1lann / storage.md
Last active February 10, 2024 13:47
Getting more storage space on UniFi AC Lite/LR on OpenWrt

2024 UPDATE

This is not necessary anymore on newer versions of OpenWrt. When you flash a sysupgrade firmware on newer versions of OpenWrt via the web interface it will provide you full access to the flash.

Getting more space on UniFi AC Lite/LRs on OpenWrt

If you've used OpenWrt on UniFi AC Lite/LRs, you may know that the overlayfs only provides 3.6 MB of space. If you think about it, that's kinda weird, because all the hardware docs say that the access point has 16 MB of flash, so where did all the other 12.4 MBs go? Surely they're not all being taken up by the OS.

-- Goroutines for ComputerCraft!
-- Made by 1lann (Jason Chu)
-- Last updated: 31st July 2015
--[[
Licensed under the MIT License:
The MIT License (MIT)
Copyright (c) 2015 1lann (Jason Chu)
package main
import (
"crypto/rand"
"encoding/binary"
"flag"
"fmt"
"net"
"os"
"time"