This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (setq-default inhibit-startup-message t ;; dont show startup message | |
| ring-bell-function 'ignore ;; disable all visual and audible bells | |
| indent-tabs-mode nil ;; uses spaces and not tabs | |
| create-lockfiles nil ;; do not create lockfiles | |
| truncate-lines nil ;; truncate lines by default | |
| truncate-partial-width-windows nil | |
| ;; disable until we actually call it | |
| recentf-auto-cleanup 'never | |
| ;; custo globals | |
| custo/width 120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| keybinds clear-defaults=true { | |
| normal { | |
| bind "Ctrl l" { SwitchToMode "locked"; } | |
| bind "Ctrl p" { SwitchToMode "pane"; } | |
| bind "Ctrl n" { SwitchToMode "resize"; } | |
| bind "Ctrl t" { SwitchToMode "tab"; } | |
| bind "Ctrl s" { SwitchToMode "scroll"; } | |
| bind "Ctrl o" { SwitchToMode "session"; } | |
| bind "Ctrl h" { SwitchToMode "move"; } | |
| bind "Ctrl b" { SwitchToMode "tmux"; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| theme = "catppuccin_mocha" | |
| # theme = "base16_default" | |
| # theme = "base16_terminal" | |
| [editor] | |
| line-number = "relative" | |
| true-color = true | |
| shell = ["fish", "-c"] | |
| mouse = false | |
| auto-info = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const num = 100000; | |
| const runs = 100; | |
| function populate<T extends number>(arr: T[], prob: T): T[] { | |
| for (let i = num; i--; ) { | |
| if (Math.random() > prob) { | |
| arr[i] = i as T; | |
| } | |
| } | |
| return arr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" | |
| [ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" | |
| [ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" | |
| source "${ZINIT_HOME}/zinit.zsh" | |
| ### End of Zinit's installer chunk | |
| zinit ice wait'0a' lucid atload"_zsh_autosuggest_start" | |
| zinit light zsh-users/zsh-autosuggestions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (use-package csharp-mode | |
| :hook | |
| (csharp-mode . rainbow-delimiters-mode) | |
| ) | |
| (use-package omnisharp | |
| :after csharp-mode | |
| :commands omnisharp-install-server | |
| :hook | |
| (csharp-mode . company-mode) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (setq inhibit-startup-message t) | |
| (scroll-bar-mode -1) ;; disable vis scrollbar | |
| (tool-bar-mode -1) ;; disable the toolbar | |
| (tooltip-mode -1) ;; disable tooltipt | |
| (set-fringe-mode 10) ;; 'breathing' room | |
| (menu-bar-mode -1) | |
| (setq visible-bell t) ;; visual bell | |
| (set-face-attribute 'default 'nil :font "Fira Code" :height 180) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -g default-terminal xterm-256color | |
| set -sg escape-time 0 | |
| set -g default-shell /usr/local/bin/fish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone --depth=1 https://github.com/emacs-mirror/emacs.git | |
| cd emacs/ | |
| sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \ | |
| libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \ | |
| libjansson-dev libharfbuzz-dev libharfbuzz-bin libtree-sitter-dev \ | |
| libgccjit-11-dev | |
| ./autogen.sh |
NewerOlder