Skip to content

Instantly share code, notes, and snippets.

@necojackarc
necojackarc / Set up Vim with clipboard on Ubuntu on WSL2.md
Last active December 28, 2023 02:45
Set up Vim on Ubuntu on Windows Subsystem for Linux 2 (WSL2) to share clipboard

This explains how to set up Vim on Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2) in order to share the clipboard between Windows and Ubuntu.

Environments

  • Windows 10 Home
  • Ubuntu 18.04 on Windows Subsystem for Linux 2 (WSL2)

Steps

  1. Build Vim with the clipboard option enabled
  2. Set up VcXsrv Windows X Server
@necojackarc
necojackarc / GitHub Cli One-liner to Add Collaborators to All Repos.md
Last active January 26, 2023 16:02
GitHub CLI one-liner to add all repos in the organisation to a specific user or team

Conditions

# 50 is the number of repositories to be listed
gh repo list -L 50 <organisation> | \
 awk '{print $1}' | \
@necojackarc
necojackarc / Office 365 Tips.md
Last active January 30, 2024 18:59
Office 365 Tips

Outlook Web

  • Show declined events (Settings > Calendar > Events and invitations)
  • Publish a calendar to Google Calendar (Settings > Calendar > Shared Calendars > Publish a calendar > Copy the ICS link > Import from URL on Google Calendar)
@necojackarc
necojackarc / Windows-like Karabiner-Elements Configuration.md
Last active February 20, 2024 10:46
Windows-like Karabiner-Elements Configuration