signalpillar/dotfiles

findings

Opened this issue · 19 comments

Collect resources to experiment with

Other lists

Python

User interfaces

Dev environment

Web

Command-Line Interfaces

RPC

Beginner

Config

Stylechecks

https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/flakehell.html
https://wemake-python-stylegui.de/en/latest/pages/usage/integrations/nitpick.html

Testing

hypothesis - Like property based testing? and then auto
replacement for expectations

Async

.dir-locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((python-mode . ((python-shell-interpreter-args . "-m asyncio"))))

Android

Automation

  • scrcpy probably good for automating some manual testing

Cloud Native

CNCF

CNCF landscape

Golang

Infra

Basics

Testing

WEB

Encoding

Plain text

Web

Big Security Guide

Metrics

Security

Network scanner

XSS

XSSi

Infra

K8S

Logging

Rust

nix

let
  moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
  nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
  python-with-base-packages = nixpkgs.python39.withPackages(ps: with ps; [
    poetry
  ]);

in nixpkgs.mkShell {
    name = "test";

    # https://github.com/mozilla/nixpkgs-mozilla#rust-overlay
    buildInputs = [
        # to use a specific nighly from the Docker file
        (nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rust
        (nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rust-analysis
        (nixpkgs.rustChannelOf { date = "2022-08-31"; channel = "nightly"; }).rustc-dev
        nixpkgs.rustfmt
        nixpkgs.cmake
        nixpkgs.cargo
        nixpkgs.postgresql
        nixpkgs.libiconv
        nixpkgs.rustfmt
        nixpkgs.darwin.apple_sdk.frameworks.SystemConfiguration
        python-with-base-packages
    ];

    # https://nixos.wiki/wiki/Rust
    shellHook = ''
    # Certain Rust tools won't work without this
    # This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
    # See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
    export RUST_SRC_PATH="${nixpkgs.rust.packages.stable.rustPlatform.rustLibSrc}";

    # https://mgdm.net/weblog/postgresql-in-a-nix-shell/
    function init_db {
      # Create a database with the data stored in the current directory
      initdb --username=postgres --pwprompt -D .tmp/mydb
      createdb -U postgres test
    }

    function start_db {
      pg_ctl -D .tmp/mydb -l logfile start
    }

    function stop_db {
      pg_ctl -D .tmp/mydb stop
    }
    '';
}

Makefile

help:           ## Show this help.
	@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

Google Spreadsheets


Progress bar

=SPARKLINE(D50,{"charttype","bar";"max",1;"min",0;"color1",IF(D50>0.6,"green",IF(D50>0.25,"orange","yellow"))})

Java

shell.nix

{pkgs ? import <nixpkgs> {}}:

pkgs.mkShell {
  buildInputs = [
    pkgs.openjdk17
    pkgs.maven
  ];
  shellHook = ''
  export JAVA_HOME=${pkgs.openjdk17}/zulu-17.jdk/Contents/Home/
  '';
}

.dir-locals.el

;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((java-mode . ((eval . (setq
                        lsp-java-java-path (format "%s/%s" (getenv "JAVA_HOME") "/bin/java")
                        lsp-java-import-gradle-java-home (format "%s/%s" (getenv "JAVA_HOME") "/bin/java")
                        lsp-java-import-gradle-enabled t
                        lsp-java-configuration-runtimes '[(:name "JavaSE-17"
                                                                 :path (getenv "JAVA_HOME")
                                                                 :default t)]
                        )))))