Skip to content

Instantly share code, notes, and snippets.

View audomsak's full-sized avatar
🏠
Working from home

audomsak

🏠
Working from home
View GitHub Profile
@idleberg
idleberg / vscode-macos-context-menu.md
Last active June 25, 2024 19:18
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@mikroskeem
mikroskeem / cadvisor.sh
Last active January 11, 2024 10:14
cadvisor with podman
#!/bin/sh
VERSION=v0.36.0 # use the latest release version from https://github.com/google/cadvisor/releases
sudo podman run -d --name cadvisor \
--volume /:/rootfs:ro \
--volume /nix:/nix:ro \
--volume /var/run:/var/run:rw \
--volume /sys:/sys:ro \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /dev/disk/:/dev/disk:ro \
@mareks77
mareks77 / 001-Tradingview-Watchlist.md
Last active June 29, 2024 09:45 — forked from cryppadotta/001-Tradingview-Watchlist.md
Tradingview Watchlist Import Files for Crypto Exchanges

Tradingview Watchlist Import Files for Binance

The files below can be imported into a Tradingview watchlist.

Tradingview Watchlists

List is sorted by volume

@HeratPatel
HeratPatel / git-flow.md
Last active May 2, 2024 14:53
Git Flow: Git branches workflow for larger and continues releasing projects. #git #gitflow

Git Flow: A Successful Git branching model

Alt Text

Gitflow is a Git workflow design that was first published and made popular by Vincent Driessen at nvie. The Gitflow defines a strict branching model designed around the project release. This provides a robust framework for managing larger projects.

Gitflow is ideally suited for projects that have a scheduled release cycle. This workflow doesn’t add any new concepts or commands beyond what’s required for the Feature Branch Workflow. Instead, it assigns very specific roles to different branches and defines how and when they should interact. In addition to feature branches, it uses individual branches for preparing, maintaining, and recording releases. Of course, you also get to leverage all the benefits of the Feature Branch Workflow: pu

#!/bin/bash
echo "removing current jenv java's to readd them freshly"
jenv versions --bare | xargs -n1 jenv remove
echo "adding all sdkmans java versions to jenv"
find $HOME/.sdkman/candidates/java -type d -maxdepth 1 -mindepth 1 -exec jenv add '{}' \;
@kevprice83
kevprice83 / README.md
Created March 11, 2019 16:43 — forked from nmasse-itix/README.md
Using a public certificate with Red Hat Single Sign On

Using a public certificate with Red Hat Single Sign On

Context

When deploying Red Hat Single Sign On for a test or PoC, most users will choose to use a self-signed certificate as explained in the official documentation. The setup instructions are straightforward but this self-signed certificate will trigger certificate error messages in your web browser and can also prevent some clients such as Postman from working properly. This guide explains how to get a public certificate for Red Hat Single Sign On.

Are you using a public certificate ?

@nmasse-itix
nmasse-itix / README.md
Last active October 25, 2022 03:27
Dynamic documentation for the 3scale Developer Portal

Dynamic documentation for the 3scale Developer Portal

Goal

Generate a dynamic list of the exposed services on the 3scale Developer Portal.

How to install

Replace your built-in "Documentation" page (/docs) in the 3scale CMS with the attached content.

@fjudith
fjudith / kubernetes_service_session_affinity.md
Last active May 13, 2024 01:10
Enable Session Affinity (a.k.a Sticky Session) to Kubernetes service
@kevprice83
kevprice83 / README.md
Last active March 18, 2024 21:09
3scale Developer portal custom signup flows

Dynamic 3scale Developer Portal signup templates

There are 4 custom signup flows included in the parent homepage. These flows are included into the homepage using Liquid tags such as {% include 'partial name' %} because the flows are separated out into individual partials. The partials can be included in your 3scale portal individually or all together depending on which flows you want to enable in your portal and for ease of switching between flows as and when needed.

NOTE: If you prefer you can create a separate page to render the subscription forms to the different Services. This would be particularly useful if you want to allow multiple applications per account for the Custom Field & Group Membership Flows.

How does the 3scale signup work?

The Basics

A developer can sign up to subscribe to an API service in various ways

@kevprice83
kevprice83 / README.md
Last active October 26, 2022 03:41
Simple custom metric reporting for a SOAP service

How this works

This solution is based on a custom HTTP header being passed with all client requests, the value of that header should be the equivalent of the matching metric system name configured in 3scale.

This customisation has been tested with the following image of APIcast:

  • registry.access.redhat.com/3scale-amp20/apicast-gateway