Skip to content

Instantly share code, notes, and snippets.

View abelfubu's full-sized avatar
🏠
Working from home

Abel de la Fuente abelfubu

🏠
Working from home
View GitHub Profile
@abelfubu
abelfubu / crkbd_rev1_abelfubu.json
Created November 1, 2024 08:42
Corne keyboard
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "crkbd/rev1",
"keymap": "crkbd_rev1_crkbd_rev1_abelfubu",
"macros": [
[
{ "action": "down", "keycodes": ["LALT"] },
{ "action": "tap", "keycodes": ["P0", "P2", "P2", "P5"] },
@abelfubu
abelfubu / wke-bookmarks.html
Last active November 1, 2024 09:09
Bookmars
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1726491598" LAST_MODIFIED="0" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks</H3>
<DL><p>
@abelfubu
abelfubu / command-palette.js
Created October 26, 2024 16:46
VsCode Centered Command Palette
/*
* GNU GENERAL PUBLIC LICENSE
* Version 3, 29 June 2007
*
* Copyright (C) [2023] [Captain Vincent]
* Original Source: https://gist.github.com/CaptainVincent/74a15cd9d9c450e961b867f69008ee6e
*
* Everyone is permitted to copy and distribute verbatim copies of this license document,
* but changing it is not allowed.
*
@abelfubu
abelfubu / restore.ps1
Last active January 15, 2025 19:18
Winget packages
# URL of the winget packages list (Gist raw link)
$appListUrl = "https://gist.githubusercontent.com/abelfubu/2cf4927ee7fe8f1b043696bf3603325f/raw/winget-packages.txt"
# Download the content from the URL
$appList = Invoke-WebRequest -Uri $appListUrl | Select-Object -ExpandProperty Content
# Enable WSL feature (required for Docker Desktop)
Write-Host "Enabling Windows Subsystem for Linux (WSL)..."
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
@abelfubu
abelfubu / .wezterm.lua
Last active November 26, 2024 17:19
Wezterm config
local wezterm = require("wezterm")
wezterm.on("gui-startup", function()
local _, _, window = wezterm.mux.spawn_window({})
window:gui_window():maximize()
end)
local config = {}
if wezterm.config_builder then
@abelfubu
abelfubu / debounce.decorator.ts
Last active September 21, 2024 09:39
Debounce decorator
export function Debounce(delay: number = 300): MethodDecorator {
return function <T extends {}>(
_target: T,
_propertyKey: PropertyKey,
descriptor: PropertyDescriptor,
) {
let timeout: NodeJS.Timeout
const original = descriptor.value
@abelfubu
abelfubu / custom-css-loader.css
Last active August 21, 2024 16:32
custom-css-loader.css
:root {
--radius: 12px;
--padding: 8px;
}
* {
font-family: CommitMono Nerd Font;
}
/* Scroll Bar */
@abelfubu
abelfubu / confirmable.decorator.ts
Last active July 27, 2024 09:24
Angular confirmable decorator
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { SimpleDialogComponent } from '../../components/simple-dialog/simple-dialog.component';
import { AppModule } from '../../app.module';
import { Type } from '@angular/core';
export interface ConfirmableDecoratorOptions {
title?: string;
text?: string;
}
@abelfubu
abelfubu / abelfubu.omp.json
Last active June 13, 2024 05:37
Oh my posh custom theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "yellow",
"properties": {
import {Injectable, OnDestroy} from '@angular/core';
import {Subject} from 'rxjs';
/**
* Observable abstraction over ngOnDestroy to use with takeUntil
*/
@Injectable()
export class TuiDestroyService extends Subject<void> implements OnDestroy {
ngOnDestroy() {
this.next();