signalpillar / dotfiles

Configuration files
7 stars 4 forks source link

findings #2

Open signalpillar opened 5 years ago

signalpillar commented 5 years ago

Collect resources to experiment with

Other lists

signalpillar commented 5 years ago

Nix

nixpkgs

signalpillar commented 5 years ago

Python

User interfaces

Dev environment

Command-Line Interfaces

RPC

Beginner

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"))))
signalpillar commented 5 years ago

Android

Automation

signalpillar commented 5 years ago

Cloud Native

CNCF

CNCF landscape

signalpillar commented 5 years ago

Golang

Infra

Testing

WEB

signalpillar commented 5 years ago

Encoding

Plain text

signalpillar commented 5 years ago

Ukrainian

Media

Org

signalpillar commented 5 years ago

Web

Big Security Guide

Metrics

XSS

signalpillar commented 4 years ago

Cool blog posts

signalpillar commented 4 years ago

OS

backup tool Mackup

signalpillar commented 4 years ago

Infra

K8S

Logging

signalpillar commented 4 years ago

Interviews

signalpillar commented 4 years ago

Haskell

signalpillar commented 4 years ago

Linux

signalpillar commented 2 years ago

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
    }
    '';
}
signalpillar commented 1 year ago

Makefile

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

Google Spreadsheets


Progress bar

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

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)]
                        )))))
signalpillar commented 12 months ago

Guides