Skip to content

Instantly share code, notes, and snippets.

Alias eza for ls command

Put to shell configure file

first install eza by homebrew

brew install eza

Basic setup

@bojanz
bojanz / responsetest.go
Last active April 29, 2024 12:55
OpenAPI assert helper
package responsetest
import (
"context"
"net/http"
"net/http/httptest"
"testing"
"github.com/getkin/kin-openapi/openapi3"
"github.com/getkin/kin-openapi/openapi3filter"
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active April 8, 2025 07:50
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active May 16, 2025 16:05
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@aussielunix
aussielunix / vm-create.rb
Created May 8, 2012 13:38
create blank vsphere VM
#!/usr/bin/env ruby
require 'rubygems'
require 'pp'
require 'fog'
credentials = {
:provider => "vsphere",
:vsphere_username => "foo",
:vsphere_password=> "bar",