trendnovaworld / A note on building a scholarship shortlist
Last active 20 minutes ago
A public note from Trend Nova World Limited, a UK consultancy.
Trend Nova World
Building What's Next
A note on building a scholarship shortlist
Trend Nova World Limited is sometimes asked to help a family, a school, or a partner organisation put together a first shortlist of scholarships or funded study routes. This note explains how we approach that work. It is not a league table and it does not sell a placement. The firm is at 27 Old Gloucester Street, London WC1N 3AX. The website is trendnovaworld.com.
A shortlist is only useful if it is honest about fit. We start with the applicant's current level of study, subject, language, passport and residency facts, and the dates they can actually move. We then read the official rules, not a third-party summary, and we discard schemes the person cannot apply for, however attractive the heading looks.
linkjobai / System Design: Search Autocomplete (Typeahead)
Last active 1 week ago
Interview prep notes
System Design: Search Autocomplete (Typeahead)
Designing autocomplete, like the search box suggestions on Google or Amazon, is a popular interview question because it combines a classic data structure (the trie) with real latency constraints.
Requirements
- Return the top 5 to 10 suggestions for a prefix as the user types.
- Latency under about 100 ms end to end, so each lookup must be a few milliseconds.
- Suggestions ranked by popularity, with some freshness (trending queries).
- Scale example: 10M daily users, about 10 keystrokes per search.
adridoesthings / Restic search through multiple Snapshots
Last active 5 months ago
A python script to search through multiple (or all) snapshots of restic for a specified path
| 1 | #!/usr/bin/env python3 |
| 2 | import sys |
| 3 | from argparse import ArgumentParser |
| 4 | from json import loads |
| 5 | from pathlib import Path |
| 6 | from subprocess import PIPE, Popen |
| 7 | from sys import stderr |
| 8 | from typing import TypedDict |
| 9 | |
| 10 | parser = ArgumentParser(prog="restic-search") |
adridoesthings / Opnsense config backup script
Last active 6 months ago
An opnsense config backup script which gzip's the config file and encrypts it with gpg. Just change the first variables to your configuration specific. Then you can run this script with cronjob for example.
| 1 | #!/bin/bash |
| 2 | set -eeuo pipefail |
| 3 | |
| 4 | # your configuration constants |
| 5 | # generate key and secret on /ui/auth/user |
| 6 | OPNSENSE_URL="https://opnsense.yournetwork.lan" |
| 7 | OPNSENSE_KEY="" |
| 8 | OPNSENSE_SECRET="" |
| 9 | GPG_RECIPIENT="" |
| 10 | BACKUP_DESTINATION="./backups" |
adridoesthings / Traffic light written in Verilog
Last active 6 months ago
Disclaimer: I don't speak Verilog, actually I speak VHDL
| 1 | module top ( |
| 2 | input clk, |
| 3 | input rst, |
| 4 | output reg red, |
| 5 | output reg yellow, |
| 6 | output reg green |
| 7 | ); |
| 8 | |
| 9 | localparam CLK_CYCLES_PER_SECOND = 27000000; |