Skip to content

Instantly share code, notes, and snippets.

@ironlungx
ironlungx / nvim-pio.md
Last active May 5, 2025 17:23
PlatformIO with Neovim

Caution

I've moved this gist over to a template repository here. Everything here is unmaintained...

Extensions

Following are the extensions required for neovim:

@fcoury
fcoury / gist:23e8fa748f37d7890fd5f5bf7df9085f
Last active December 10, 2024 13:11
Arch Linux on Mac M1/M2/M3 via UTM
loadkeys us-acentos
setfont Lat2-Terminus16
timedatectl
fdisk -l
fdisk /dev/vda
g
n
<default>
<enter>
+512M
@bitterteasweetorange
bitterteasweetorange / keybindings.json
Last active March 27, 2025 09:56
setup vscode like neovim
[
{
"command": "projectManager.listGitProjects#sideBarGit",
"key": "cmd+o"
},
{
"command": "expand_region",
"key": "ctrl+=",
"when": "editorTextFocus"
},
@mengwangk
mengwangk / languages.toml
Last active May 2, 2023 23:56
A Walkthrough on Helix — A Post-Modern Modal Text Editor
[[language]]
name = "python"
roots = ["pyproject.toml"]
formatter = { command = "black", args = ["--quiet", "-"] }
language-server = { command = "pyright-langserver", args = ["--stdio"] }
config = {}
auto-format = true
[[language]]
name = "rust"
@mengwangk
mengwangk / config.toml
Last active May 2, 2023 23:56
A Walkthrough on Helix — A Post-Modern Modal Text Editor
theme = "tokyonight"
[editor]
line-number = "relative"
true-color = true
cursorline = true
gutters = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
[keys.insert]
j = { k = "normal_mode" }
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
{
"files.autoSave": "onFocusChange",
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.sneak": true,
"vim.easymotionMarkerooundColor": "#020202",
"vim.normalModeKeyBindings": [
@kylo252
kylo252 / bootstrap_msys2.ps1
Created November 9, 2021 17:13
MSYS2 Bootstrap
<#
.SYNOPSIS
Setup an MSYS2 environment including the minimum tools needed for building neovim on Windows.
.DESCRIPTION
The script will download the latest nightly release of the MSYS2 installer
and install all the packges required for building neovim on Windows.
Requies administrative privilages because the MSYS2 installation must go into `C:\msys64`.
@chamindac
chamindac / win10dockerinstallwsl2.ps1
Last active April 27, 2025 11:28
This script automates installation of Docker Desktop on Windows 10 and uses WSL2
set-executionpolicy -scope CurrentUser -executionPolicy Bypass -Force
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
$ProgressPreference = 'SilentlyContinue'
@michaelmcshinsky
michaelmcshinsky / api-core.js
Last active December 8, 2023 13:51
A comprehensive starter solution to making API calls structured and manageable in code architecture and development teams.
import apiProvider from './provider';
export class ApiCore {
constructor(options) {
if (options.getAll) {
this.getAll = () => {
return apiProvider.getAll(options.url);
};
}