Skip to content

Instantly share code, notes, and snippets.

View finsterdexter's full-sized avatar

George Walker finsterdexter

  • Sioux Falls, SD
  • 05:56 (UTC -06:00)
View GitHub Profile
@timothywarner
timothywarner / decontainer.json
Created October 21, 2024 17:36 — forked from Marin-Kitagawa/decontainer.json
My complete `DevContainer` configuration with all the 798 features configured (as of 07th December 2023)
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/anaconda:1": { "version": "latest" },
"ghcr.io/devcontainers/features/aws-cli:1": { "version": "latest" },
"ghcr.io/devcontainers/features/azure-cli:1": {
"installBicep": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/common-utils:2": {
@a9udn9u
a9udn9u / geforce-now-resolution-interceptor.py
Last active November 3, 2025 00:01
GeForce Now 1440P on Linux Chrome
import json
import re
from mitmproxy import http
url_pattern = re.compile(r"^.*\.nvidiagrid.net/v2/session")
user_agent_pattern = re.compile(r"(Mozilla\/[\d\.]+) \(.+?\)")
def request(flow: http.HTTPFlow) -> None:
# Check if the request matches the regex pattern
if url_pattern.match(flow.request.pretty_url):
@err0r500
err0r500 / main.go
Last active May 24, 2024 02:37
gin gonic with jwt from auth0 (and CORS enabled)
package main
import (
"github.com/auth0/go-jwt-middleware"
"github.com/dgrijalva/jwt-go"
"gopkg.in/gin-gonic/gin.v1"
)
func main() {
startServer()
@pdwetz
pdwetz / gist:5368441
Last active August 15, 2021 10:12
Outputs a POCO for a given MySql table. Based on http://stackoverflow.com/a/13918084/21865 with mild formatting changes and additional types added.
select 'replacewithtablename' into @table;
select 'replacewithdatabasename' into @schema;
select concat('public class ',@table,'{')
union
select concat('public ',tps.dest,' ',column_name,'{get;set;}')
from information_schema.columns c
join (
select 'char' as orign ,'string' as dest union all