Skip to content

Instantly share code, notes, and snippets.

View dragonde's full-sized avatar
💭
Ready, Steady & Go!

dragonde

💭
Ready, Steady & Go!
View GitHub Profile
@dragonde
dragonde / flux.md
Last active September 18, 2024 10:29
flux

Flux

flux -n default get hr flux -n default suspend hr kong

reconcile | resume

@dragonde
dragonde / git-pull.md
Last active September 3, 2024 15:15
git-pull

git pull

git pull --rebase

if merge conflict ->

git rebase --abort

@dragonde
dragonde / ubuntu-wh1000mx3
Created August 13, 2024 06:18
ubuntu problems with WH-1000-XM3
sudo alsa force-reload
@dragonde
dragonde / api-project.md
Last active August 3, 2024 17:03
api-project[object Object]

api project

package main

import (
	"context"
	"fmt"
	"net/http"
	"strconv"
@dragonde
dragonde / add-kubeconfig.md
Last active August 2, 2024 15:28
add-kubeconfig

add-kubeconfig

function add-kubeconfig() {
  if [[ -z $1 ]]; then
    echo "Usage: add-kubeconfig <path-to-kubeconfig>"
    return 1
  fi

 CONTEXT=$(yq e '.contexts[0].name' $1)
@dragonde
dragonde / awsvpnclient-ubuntu2404.md
Last active July 30, 2024 09:26
awsvpnclient-ubuntu2404

Steps

Working with awsvpnclient 3.14.0

Download & Install AwsVPNClient and LibSSL1.1

curl -O http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb

curl https://d20adtppz83p9s.cloudfront.net/GTK/latest/awsvpnclient_amd64.deb -o awsvpnclient_amd64.deb
@dragonde
dragonde / copilot-casero.md
Last active July 27, 2024 17:12
copilot-casero

copilot casero

shell gpt

pip install shell-gpt

sgpt => ..

vim ~/.config/shell_gpt/.sgptrc

[legacy/profiles:/::b1dcc9dd-5262-4d8d-a863-c897e6d979b9]
background-color='#2E3440'
bold-color='#D8DEE9'
bold-color-same-as-fg=true
cursor-background-color='rgb(216,222,233)'
cursor-colors-set=true
cursor-foreground-color='rgb(59,66,82)'
foreground-color='#D8DEE9'
highlight-background-color='rgb(136,192,208)'
highlight-colors-set=true