Skip to content

Instantly share code, notes, and snippets.

View yolossn's full-sized avatar

S Santhosh Nagaraj yolossn

View GitHub Profile
@pantsel
pantsel / docker-compose.yml
Last active October 10, 2024 12:50
example docker-compose.yml for kong, postgres and konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong
@bradtraversy
bradtraversy / docker-help.md
Last active May 11, 2025 15:39
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@jerblack
jerblack / Elevate when needed in Go.md
Last active March 10, 2025 16:02
Relaunch Windows Golang program with UAC elevation when admin rights needed.

I'm buiding a command line tool in Go that has an option to install itself as a service on Windows, which it needs admin rights for. I wanted to be able to have it reliably detect if it was running as admin already and if not, relaunch itself as admin. When the user runs the tool with the specific switch to trigger this functionality (-install or -uninstall in my case) they are prompted by UAC (User Account Control) to run the program as admin, which allows the tool to relaunch itself with the necessary rights.

To detect if I was admin, I tried the method described here first:
https://coolaj86.com/articles/golang-and-windows-and-admins-oh-my/
This wasn't accurately detecting that I was elevated, and was reporting that I was not elevated even when running the tool in CMD prompt started with "Run as Administrator" so I needed a more reliable method.

I didn't want to try writing to an Admin protected area of the filesystem or registry because Windows has the ability to transparently virtualize those writes

@MaiAbuthraa
MaiAbuthraa / skills.json
Last active April 7, 2021 20:32 — forked from LastZactionHero/technical_skills_list.txt
Technical Skills List | .txt | .yml | .json
{
"dot_net": ".NET",
"360-degree_video": "360 degree video",
"3d_animation": "3D Animation",
"3d_design": "3D Design",
"3d_model_maker": "3D Model Maker",
"3d_modelling": "3D Modelling",
"3d_printing": "3D Printing",
"3d_rendering": "3D Rendering",
"3ds_max": "3ds Max",
@0xdevalias
0xdevalias / converting-json-to-openapi-swagger-spec.md
Created June 2, 2023 01:09
Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.

Converting JSON to OpenAPI / Swagger spec

Exploring tools that allow converting a JSON response automagically into an OpenAPI / Swagger spec.

Test JSON Response

{
    "accounts": {
        "default": {