Skip to content

Instantly share code, notes, and snippets.

View phlummox's full-sized avatar

phlummox phlummox

View GitHub Profile
@phlummox
phlummox / python-report-tools.md
Last active July 30, 2023 01:03
python literate report-generation tools

python literate code/scientific report generation tools

Current status (as at March 2022) of Python-based tools for generating scientific reports from markdown+code.

  • Unmaintained. Only supports Python >= 3.4 and <= 3.6, all of which are past end of life; and it's incompatible with current versions of some of its dependencies (e.g. jupyter-client)
@phlummox
phlummox / AdbCommands
Created January 12, 2022 03:33 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@phlummox
phlummox / android-cl-cheatsheet.md
Last active July 19, 2023 10:29
Android development - command-line cheatsheet
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phlummox
phlummox / error.txt
Created June 26, 2020 13:55
Compile error, building hslua-aeson 1.0.2 fails with hslua 1.1.1
$ cabal v2-configure --constraint 'hslua ==1.1.1'
Resolving dependencies...
Downloading hslua-1.1.1
Downloaded hslua-1.1.1
Build profile: -w ghc-8.6.5 -O1
In order, the following would be built (use -v for more details):
- call-stack-0.2.0 (lib) (requires build)
- case-insensitive-1.2.1.0 (lib) (requires build)
- clock-0.8 (lib) (requires build)
- colour-2.3.5 (lib) (requires build)
@phlummox
phlummox / compiles-okay.hs
Created June 21, 2020 12:03
persistent-template documentation bug
#!/usr/bin/env stack
-- stack --resolver lts-15.16 script --verbosity info --package monad-logger --package persistent --package persistent-template --package persistent-postgresql --package mtl --package text
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
@phlummox
phlummox / environment.txt
Last active June 20, 2020 15:47
persistent-2.10.5.2 bug - environment
/bin/uname
Linux gemini 4.15.0-101-generic #102~16.04.1-Ubuntu SMP Mon May 11 11:38:16 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
/home/phlummox/.local/bin/stack
Version 2.3.1, Git revision de2a7b694f07de7e6cf17f8c92338c16286b2878 (8103 commits) x86_64 hpack-0.33.0
/home/phlummox/.local/bin/stack
The Glorious Glasgow Haskell Compilation System, version 8.8.3
/home/phlummox/.local/bin/stack
Cabal 3.0.1.0
Only 0.1
aeson 1.4.7.1
@phlummox
phlummox / log.txt
Created April 14, 2020 10:20
Travis build of agda, using stack 2.1.3 and resolver lts-3, showing "happy" is not already installed
++: check whether happy is already installed
++which happy
++stack --resolver lts-3 --no-terminal --install-ghc exec which -- happy
Selected resolver: lts-3.22
++stack --resolver lts-3 --no-terminal --install-ghc build Agda-2.4.2.4
Selected resolver: lts-3.22
data-hash > configure
data-hash > Configuring data-hash-0.2.0.1...
data-hash > build
Cabal > configure
@phlummox
phlummox / output.txt
Created April 13, 2020 16:21
Travis build of Agda, using stack 2.1.3 and LTS 3, on MacOS
stack --resolver lts-3 --no-terminal --install-ghc install --only-dependencies Agda-2.4.2.4
Selected resolver: lts-3.22
data-hash > configure
data-hash > Configuring data-hash-0.2.0.1...
data-hash > build
Cabal > configure
data-hash > Building data-hash-0.2.0.1...
data-hash > Preprocessing library data-hash-0.2.0.1...
data-hash > [1 of 4] Compiling Data.Hash.Base ( src/Data/Hash/Base.hs, .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Data/Hash/Base.o )
@phlummox
phlummox / output.txt
Created April 13, 2020 15:49
stack-2.1.3-agda-build-output
++stack --resolver lts-3 --no-terminal --install-ghc install --only-dependencies Agda-2.4.2.4
Selected resolver: lts-3.22
data-hash > configure
data-hash > Configuring data-hash-0.2.0.1...
data-hash > build
data-hash > Building data-hash-0.2.0.1...
data-hash > Preprocessing library data-hash-0.2.0.1...
data-hash > [1 of 4] Compiling Data.Hash.Base ( src/Data/Hash/Base.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Data/Hash/Base.o )
data-hash > 
data-hash > /tmp/stack4826/data-hash-0.2.0.1/src/Data/Hash/Base.hs:61:14: Warning: