Skip to content

Instantly share code, notes, and snippets.

View ldx's full-sized avatar
🌪️
Wreaking havoc

Vilmos Nebehaj ldx

🌪️
Wreaking havoc
View GitHub Profile
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
metadata:
name: consumer1
namespace: nginx-kong-test
username: consumer1
---
apiVersion: configuration.konghq.com/v1
kind: KongConsumer
@bitsurgeon
bitsurgeon / nvidia.md
Last active September 5, 2025 00:27
install Nvidia driver on Ubuntu with Secure Boot

Install Nvidia Driver on Ubuntu 18.04.3

Secure Boot

This section applies to machines with Secure Boot, such as ThinkPad.

  1. Before installation, switch to "Discrete Graphics" in BIOS, if both Intel and Nvidia graphics are present.
  2. During installation, make sure to select the "Install third-party software for graphics and Wi-Fi hardware and addition media formats" in "Updates and other software" screen.
  3. Select "Configure Secure Boot", and set password.
  4. Continue Ubuntu installation as normal.
@DuCanhGH
DuCanhGH / copy-traced-files.ts
Last active December 17, 2024 06:11
Reimplementing Next.js's Output File Tracing with a custom server
import { nodeFileTrace } from "@vercel/nft";
import { Sema } from "async-sema";
import { glob } from "glob";
import { NextConfigComplete } from "next/dist/server/config-shared";
import fs from "node:fs/promises";
import path from "node:path";
interface RequiredServerFilesManifest {
version: number;
config: NextConfigComplete;