Skip to content

Instantly share code, notes, and snippets.

@pedrohms
pedrohms / nerd-fonts-complete-windows.bat
Created October 5, 2024 23:50 — forked from bioluks/nerd-fonts-complete-windows.bat
Install all Nerd Fonts on Windows, using scoop. You will obviously need scoop (https://scoop.sh) and git on your Windows setup before executing this script, for now.
powershell -command "scoop bucket add nerd-fonts"
powershell -command "scoop install nerd-fonts/Monocraft-Nerd-Font nerd-fonts/Delugia-Mono-Nerd-Font nerd-fonts/Delugia-Nerd-Font nerd-fonts/Delugia-Nerd-Font-Book nerd-fonts/Delugia-Nerd-Font-Complete nerd-fonts/Delugia-Mono-Nerd-Font-Complete nerd-fonts/3270-NF-Mono nerd-fonts/Agave-NF-Mono nerd-fonts/AnonymousPro-NF-Mono nerd-fonts/Arimo-NF-Mono nerd-fonts/AurulentSansMono-NF-Mono nerd-fonts/BigBlueTerminal-NF-Mono nerd-fonts/BitstreamVeraSansMono-NF-Mono nerd-fonts/CascadiaCode-NF-Mono nerd-fonts/CodeNewRoman-NF-Mono nerd-fonts/ComicShannsMono-NF-Mono nerd-fonts/Cousine-NF-Mono nerd-fonts/DaddyTimeMono-NF-Mono nerd-fonts/DejaVuSansMono-NF-Mono nerd-fonts/DroidSansMono-NF-Mono nerd-fonts/FantasqueSansMono-NF-Mono nerd-fonts/FiraCode-NF-Mono nerd-fonts/FiraMono-NF-Mono nerd-fonts/Gohu-NF-Mono nerd-fonts/Hack-NF-Mono nerd-fonts/Hasklig-NF-Mono nerd-fonts/HeavyData-NF-Mono nerd-fonts/Hermit-NF-Mono nerd-fonts/IBMPlexMono-NF-Mono nerd-fonts/Inconsolata-NF-Mono n
@pedrohms
pedrohms / settings.json
Created July 16, 2024 14:19 — forked from adibhanna/settings.json
zed settings
{
"theme": "Gruvbox Dark Hard",
"base_keymap": "VSCode",
"buffer_font_family": "BerkeleyMono Nerd Font",
"buffer_font_size": 15,
"vim_mode": true,
"relative_line_numbers": true,
"cursor_blink": false,
"scrollbar": {
"show": "never"
@pedrohms
pedrohms / keymap.json
Created July 16, 2024 14:19 — forked from adibhanna/keymap.json
zed keymaps
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"ctrl-w z": "workspace::ToggleZoom",
"ctrl-w t": "terminal_panel::ToggleFocus",
"g ]": "editor::GoToDiagnostic",
"g [": "editor::GoToPrevDiagnostic",
"g r": "editor::FindAllReferences",
"shift-k": "editor::Hover",
{
"workbench.colorTheme": "Gruvbox Dark Hard",
"vim.leader": "<space>",
"editor.lineNumbers": "relative",
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["j", "k"],
"after": ["<Esc>"]
}
],
https://www.reddit.com/r/NixOS/comments/wvk8rb/fan_control_for_laptop_from_github/
{ config, pkgs, ... }:
let
...
nbfc = import
( pkgs.fetchFromGitHub
{
owner = "nbfc-linux";
repo = "nbfc-linux";
@pedrohms
pedrohms / tmux.conf
Created March 22, 2024 15:26
tmux conf
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
@pedrohms
pedrohms / apache.conf
Last active December 13, 2023 21:01
apache.conf
<VirtualHost *:80>
DocumentRoot "C:/laragon/www/site/public"
ServerName site.test
ServerAlias *.site.test
<Directory "C:/laragon/www/site/public">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
@pedrohms
pedrohms / .clangd
Created December 11, 2023 19:50
configuration to standard in clangd
CompileFlags:
Add: [-std=c17]
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
android-nixpkgs.url = "github:tadfisher/android-nixpkgs";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-23.05";
};
outputs = { self, nixpkgs, flake-utils, android-nixpkgs, nixpkgs-stable }:
let
version = "1.1";
nix copy --from https://cache.nixos.org $packageWithNotValidError