Skip to content

Instantly share code, notes, and snippets.

View Philipinho's full-sized avatar
🎯
Focusing on Java

Philip Okugbe Philipinho

🎯
Focusing on Java
View GitHub Profile
@KevinBatdorf
KevinBatdorf / add-alpine-js-to-tailwind-ui.js
Last active October 23, 2024 09:21
Auto copy the Alpine code from Tailwind UI's copy button
// ==UserScript==
// @name Add AlpineJs to Tailwind UI
// @namespace http://tampermonkey.net/
// @version 3.0
// @description Add Alpine JS code to Tailwind Ui copy/paste
// @author https://gist.github.com/KevinBatdorf/8bd5f808fff6a59e100dfa08a7431822
// @match https://tailwindui.com/components/*
// @grant none
// ==/UserScript==
@fabiolimace
fabiolimace / UUIDv6.sql
Last active September 21, 2025 04:10
Functions for generating UUIDv6 and UUIDv7 on PostgreSQL
/*
* MIT License
*
* Copyright (c) 2023-2024 Fabio Lima
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@arshadansari27
arshadansari27 / config.py
Created April 14, 2020 21:31
Import Confluence Pages to Notion.so
CONFIG = {}
NOTION_TOKEN = "NOTION_TOKEN"
NOTION_CONFIG = "NOTION_CONFIG"
JIRA_STOCKY_URL="Jira Stocko Api"
JIRA_STOCKY_USER="Jira Stocko User"
JIRA_STOCKY_KEY="Jira Stocko Key"
NOTION_CONFLUENCE_DB = "Confluence DB"
@sqbs
sqbs / docker-compose.yaml
Last active June 19, 2024 04:08 — forked from darth-veitcher/docker-compose.yaml
Traefik v2.2 with Cloudflare Wildcard
version: "3"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
# Globals
- "--log.level=DEBUG"
- "--api=true"
@pascalandy
pascalandy / compose-caddy.yml
Last active March 31, 2025 16:35
Traefik V2 / my docker compose files
version: "3.3"
services:
caddy:
image: abiosoft/caddy:1.0.3-no-stats
container_name: caddy
hostname: caddy
restart: unless-stopped
volumes:
@bengry
bengry / app.module.ts
Created December 26, 2019 07:32
Nest.js request context workaround
import { MiddlewareConsumer, Module, NestModule } from "@nestjs/common";
import { APP_INTERCEPTOR } from "@nestjs/core";
import { RequestContextMiddleware } from "./request-context/request-context.middleware";
import { RequestContextModule } from "./request-context/request-context.module";
@Module({
imports: [
ConfigModule.load(path.resolve(__dirname, "config", "**/!(*.d).{ts,js}")),
WebappUsersModule,
RequestContextModule,
@khairulcs
khairulcs / deployment.sh
Last active March 21, 2023 04:03
Configuring traefik zero downtime
#!/bin/sh
if [ $(docker ps -f name=blue-cms -q) ]
then
BG_NEW="green-cms"
BG_OLD="blue-cms"
else
BG_NEW="blue-cms"
BG_OLD="green-cms"
fi
version: '3'
services:
traefik:
image: traefik:v2.0
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
@travelhawk
travelhawk / ffmpeg_commands.md
Last active November 19, 2025 20:20
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@pilatuspc12ng
pilatuspc12ng / crypt.py
Last active December 21, 2022 11:51 — forked from ricardojba/crypt.py
Decrypt Laravel-encrypted value
import base64
import json
from phpserialize import loads
import hashlib
import hmac
from Crypto.Cipher import AES
def decrypt(payload, key):
"""
Decrypt strings that have been encrypted using Laravel's encrypter (AES-256 encryption).