検索

📘 Big news! My book-in-progress "PostgreSQL Mistakes and How to Avoid Them" is now available in @[email protected] Early Access Program (MEAP) — I hope it will help application developers, software architects & database administrators not only avoid mistakes but also learn the right way to do things in #Postgres. Use code "mlangelakos" to get 45% off 💕 — valid until February 27th! http://mng.bz/D9mR #PostgreSQL #Manning #MEAP #Development #Databases #OpenSource #TechBooks #BookLaunch
返信 0 · Renote 0
Don't have time for a banner grab but still interested in basic info about a server? Well taking advantage of a server's inability to process '%' b/c it expects two hex digits to follow; in many cases it errors Preventing this from happening is actually easy It requires an essential secure programming principle: verify, validate, and sanitize your input This principle should be applied to EVERY input, and yes the URL is input #infosec #security #it #sysadmin #tech #development #programming
  • 47c2ab6794524a6c.png
返信 0 · Renote 0
いまの home-manager の nix

{ config, pkgs, ... }:

# overlays
let
  rust-overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
in
{
  # WARNING: WE SHOULD NOT CHANGE THIS
  home.stateVersion = "22.11";

  home.username = "karno";
  home.homeDirectory = "/home/karno";

  # apply overlays
  nixpkgs.overlays = [ rust-overlay ];

  # The home.packages option allows you to install Nix packages into your
  # environment.
  home.packages = with pkgs;[
    wget

    # secret manager
    pass

    # development happy set
    lld
    clang
    openssl
    pkg-config

    # nixos happy set
    nixpkgs-fmt

    # rust
    (rust-bin.nightly.latest.default.override {
      extensions = [ "rust-src" "rustfmt" "rust-analyzer" ];
    })

  ];

  home.sessionPath = [
    "$HOME/.cargo/bin"
    "$HOME/.local/bin"
  ];

  home.sessionVariables = {
    EDITOR = "nvim";
    PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
    # aws-vault
    AWS_VAULT_BACKEND = "file";
  };

  # Let Home Manager install and manage itself.
  programs.home-manager.enable = true;

  # complex-configured packages
  imports = [
    ./nvim/default.nix
    ./zsh/default.nix
    # vscode server
    "${fetchTarball "https://github.com/msteen/nixos-vscode-server/tarball/master"}/modules/vscode-server/home.nix"
  ];

  # configurations for small packages
  programs.git = {
    enable = true;
    userName = "karno";
    userEmail = "[email protected]";
  };

  programs.direnv = {
    enable = true;
    nix-direnv = {
      enable = true;
    };
  };

  programs.jq.enable = true;

  programs.fzf = {
    enable = true;
    enableZshIntegration = true;
  };

  # poetry is not packaged yet...
  home.file.poetry = {
    enable = true;
    target = ".config/pypoetry/config.toml";
    text = ''
      virtualenvs.in-project = true
    '';
  };

  services.vscode-server = {
    enable = true;
  };
}
返信 0 · Renote 0