Skip to content

Instantly share code, notes, and snippets.

@namsnath
namsnath / FlutterSolarisedThemeProvider.dart
Created November 27, 2020 06:50
A ChangeNotifier that (kinda) implements the Solarised Theme for Flutter apps
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:logging/logging.dart';
class ThemeProvider extends ChangeNotifier {
final log = Logger('ThemeProvider');
bool _isDark = true;
bool get isDark => _isDark;
set isDark(bool val) {
@namsnath
namsnath / Arch.md
Last active June 10, 2021 13:11
A simple guide to installing ArchLinux and setting it up

Setting up Arch

Basic Setup

  • Check that the system is booted in UEFI mode
    • ls /sys/firmware/efi/efivars
    • If the directory is empty, might be in BIOS mode
  • Connect to the internet
    • Ethernet should work out of the box
    • iwctl for wifi
  • timedatectl set-ntp true to ensure time is correct
@namsnath
namsnath / Mailinabox.md
Last active December 25, 2019 12:49 — forked from theProgrammerDavid/Mailinabox.md
Adventures with Mailinabox

BCC-ing people:

BCC all mails sent to a given address:

  • nano /etc/postfix/main.cnf
  • add to the end: sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps
  • nano /etc/postfix/sender_bcc_maps
  • Add lines in this format: <sender@email.com> <bcc@email.com>

BCC all mails recieved on a given address:

  • nano /etc/postfix/main.cnf
  • add to the end: recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps