Skip to content

Instantly share code, notes, and snippets.

View vhxubo's full-sized avatar

归谜 vhxubo

View GitHub Profile
@hellokaton
hellokaton / next.config.ts
Last active April 26, 2025 10:15
解决国内 nextjs 三方登录等网络问题
const isDev = process.env.NODE_ENV === "development";
if (isDev) {
require("./proxy-setup");
}
@unixzii
unixzii / trapping_rain_water_tmp.cc
Last active March 30, 2024 07:28
A "Trapping Rain Water" implementation using C++ template metaprogramming.
template <int, typename>
struct List;
struct Nil {
template <int _NValue>
using Append = List<_NValue, Nil>;
};
template <int _Value, typename _Next>
struct List {
@avin
avin / react-to-vue.md
Last active April 23, 2024 03:41
Migrate from React to Vue | Migrate from Vue to React
@strobelt
strobelt / install_neovim.sh
Last active August 22, 2025 07:55
Install latest NeoVim in Debian
# Download latest neovim release from GitHub releases and pipe it to tar to extract it to /usr
curl -sL https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz \
| sudo tar -xzf - --strip-components=1 --overwrite -C /usr
@matsuu
matsuu / settings.json
Last active August 21, 2025 03:53
PaperColor Theme for Windows Terminal based on https://github.com/marhs/material-terminator
{
"name": "PaperColor Light",
"cursorColor": "#25C3DC",
"foreground": "#3c3c3b",
"background": "#eeeeee",
"black": "#2c2c2c",
"red": "#d7005f",
"green": "#718c00",
"yellow":"#ff8f01",
"blue": "#005f87",
@sts10
sts10 / rust-command-line-utilities.markdown
Last active August 31, 2025 16:48
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
@YoEight
YoEight / improve_fonts.md
Created January 15, 2021 10:11 — forked from j1cs/improve_fonts.md
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@tbjgolden
tbjgolden / inotify-instructions.md
Last active July 30, 2025 21:02
[Arch Linux] [Manjaro] How to avoid "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

To avoid this error, we need to increase the inotify watcher limit.

The way to do this is different on Arch based distributions than other Linux distributions.

Instructions for Arch Linux/Manjaro

Check for an already existing inotify config file (recent versions of Manjaro include one)

@AlexPl292
AlexPl292 / .ideavimrc
Last active August 22, 2025 15:09
My `~/.ideavimrc` file
let mapleader=" "
""" Plugins --------------------------------
set surround
set multiple-cursors
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
<template>
<div>
<!-- v-row now provides gutter adjustments and has 3 options available -->
<!-- v1.5 - <v-container grid-list-xl> to v2.0 - regular (nothing required) -->
<!-- v1.5 - <v-container grid-list-md> to v2.0 - <v-row dense> -->
<!-- v1.5 - <v-container> to v2.0 - <v-row no-gutters> -->
<!-- v1.5 -->
<v-container grid-list-xl>
<v-layout>