Skip to content

Instantly share code, notes, and snippets.

@instinctive
instinctive / Flutter and Android Studio.md
Created May 5, 2021 19:04
How to install Flutter and Android Studio

Additional undocumented steps needed:

  • Studio > Configure > SDK Tools > Command line tools (install them)
  • flutter config --android-sdk <path to /Sdk/>
  • flutter config --android-studio-dir <path to /Studio/>
  • export ANDROID_HOME=<path to /Sdk/>
  • export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/platform-tools:$PATH
  • flutter doctor
  • flutter doctor --accept-licenses
@instinctive
instinctive / hackage.js
Created March 2, 2021 03:39
Userscript to reorg the package contents pages on Hackage
// ==UserScript==
// @name hackage
// @namespace https://github.com/instinctive/
// @description Reorganize package contents pages on Hackage.
// @include /^https?://hackage\.haskell\.org/package/[^/]*$/
// ==/UserScript==
(function() {
function getStyleSmall(elt) {
@instinctive
instinctive / Bee.hs
Last active July 9, 2026 13:55
Spelling Bee
#!/usr/bin/env cabal
{- cabal:
build-depends: base, base-prelude, containers, text
-}
-- Spelling Bee
--
-- Install Haskell: https://www.haskell.org/ghcup/
--
-- This is a standalone Haskell script, assuming you have cabal installed. The
@instinctive
instinctive / Notes Linux Audio.md
Last active August 19, 2020 15:58
Notes on Linux Audio issues
@instinctive
instinctive / proglang.md
Last active June 23, 2020 18:49
Programming Language Personal Journey

Summer Camp: Fortran

Junior High School: Basic

College: Algol, Pascal, PL/I,

@instinctive
instinctive / Char.md
Last active February 26, 2020 06:12
Machine Build: Char

BIOS Update

My Gigabyte x570 Ultra shipped with Bios F5, which had no support for separate IOMMU groups.

I upgraded to F11, and set:

Tweaker > Advanced CPU Settings > SVM Mode > Enable
Settings > Miscellaneous > IOMMU > Enable
Settings > AMD CBS > ACS Enable > Enable

Settings > AMD CBS > Enable AER Cap > Enable

@instinctive
instinctive / configuration.nix
Last active March 9, 2020 22:38
NixOS Configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
> foo x = 9 : x
> a = [1,2,3]
> b = a
> foo a
[9,1,2,3]
> a
[1,2,3]
> b
[1,2,3]
>>> def foo(x): x.append(9)
...
>>> a = [1,2,3]
>>> a
[1, 2, 3]
>>> b = a
>>> b
[1, 2, 3]
>>> foo(a)
>>> a