""" | |
MIT License | |
Copyright (c) 2023 David Buchanan | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
- Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |
augroup fl_dart | |
autocmd! | |
autocmd Syntax dart highlight default link dartFlutterClasses Type | |
autocmd Syntax dart highlight default link dartFlutterTypedefs Typedef | |
autocmd Syntax dart highlight default link dartFlutterExceptions Exception | |
autocmd Syntax dart highlight default link dartFlutterConstants Constant | |
autocmd Syntax dart highlight default link dartFlutterEnums Type | |
autocmd Syntax dart highlight default link dartFlutterMixins Type | |
autocmd Syntax dart syntax keyword dartFlutterMixins | |
\ AnimationEagerListenerMixin AnimationLazyListenerMixin |
GTD/BASB Templates for Emacs and Org-Mode
- Daily Review Template
- Weekly Review Template
- Monthly Review Template
- Annual Review Template (I don’t usually do these in Emacs, but I’ve included them for the sake of completeness)
As I’ve said on Twitter, I don’t actually necessarily perform these on a chronological basis.
This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.
I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.
The setup works this way
[Remote Mail Servers] <= mbsync => [Local Mail Folders]
Disable REST Api without Plugins | |
https://rudrastyh.com/wordpress/disable-rest-api.html | |
Add featured image & alt text to WP REST API | |
https://allisontarr.com/2021/10/13/add-featured-image-alt-text-to-wp-rest-api/ | |
Allow ALL cross origin requests to WordPress REST API | |
https://github.com/Shelob9/rest-all-cors | |
WordPress theme using Rest API and Vue.js |