Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lukepolo
lukepolo / Dockerfile
Created April 3, 2024 12:39
CSS Mutli Server Setup
FROM mcr.microsoft.com/dotnet/sdk:8.0-bookworm-slim AS build
WORKDIR /mod
COPY src/*.csproj .
RUN dotnet restore
COPY . .
- role_name: role-1
role_set:
- user
- search
- role_name: role-2
role_set:
- user
- clips
- role_name: role-3
role_set:
@lukepolo
lukepolo / example.html
Created July 15, 2021 01:09 — forked from steve228uk/example.html
Deeplink Youtube
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
window.onload = function() {
2021-02-18 21:58:43.147 VERB [1368] [rtc::PeerConnection::PeerConnection@74] Creating PeerConnection
2021-02-18 21:58:43.147 VERB [1368] [rtc::PeerConnection::setRemoteDescription@215] Setting remote description: v=0
o=- 3753231095255967450 0 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0
a=msid-semantic:WMS *
a=setup:actpass
a=ice-ufrag:0MtQ
@lukepolo
lukepolo / minikube logs
Created January 23, 2021 22:54
minikube logs
minikube logs
==> Docker <==
-- Logs begin at Sat 2021-01-23 22:47:37 UTC, end at Sat 2021-01-23 22:54:11 UTC. --
Jan 23 22:47:38 minikube systemd[1]: Starting Docker Application Container Engine...
Jan 23 22:47:38 minikube dockerd[189]: time="2021-01-23T22:47:38.871746677Z" level=info msg="Starting up"
Jan 23 22:47:38 minikube dockerd[189]: time="2021-01-23T22:47:38.874181010Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Jan 23 22:47:38 minikube dockerd[189]: time="2021-01-23T22:47:38.874204218Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Jan 23 22:47:38 minikube dockerd[189]: time="2021-01-23T22:47:38.874227218Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
Jan 23 22:47:38 minikube dockerd[189]: time="2021-01-23T22:47:38.874236260Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Jan 23 22:47:38 minikube dockerd[189]: time="2021-
@lukepolo
lukepolo / minikube start
Created January 23, 2021 22:53
minikube m1 Error
minikube start --alsologtostderr
I0123 17:52:07.096178 29153 out.go:229] Setting OutFile to fd 1 ...
I0123 17:52:07.096710 29153 out.go:281] isatty.IsTerminal(1) = true
I0123 17:52:07.096718 29153 out.go:242] Setting ErrFile to fd 2...
I0123 17:52:07.096722 29153 out.go:281] isatty.IsTerminal(2) = true
I0123 17:52:07.096812 29153 root.go:280] Updating PATH: /Users/lukepolicinski/.minikube/bin
I0123 17:52:07.097280 29153 out.go:236] Setting JSON to false
I0123 17:52:07.133284 29153 start.go:106] hostinfo: {"hostname":"Lukes-MacBook-Pro.local","uptime":9069,"bootTime":1611433258,"procs":505,"os":"darwin","platform":"darwin","platformFamily":"Standalone Workstation","platformVersion":"11.1","kernelVersion":"20.2.0","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"","hostId":"48f71db3-6c91-3e62-9576-3a1dcef2b536"}
W0123 17:52:07.133510 29153 start.go:114] gopshost.Virtualization returned error: not implemented yet
I0123 17:52:07.175382 29153 out.go:119] 😄 minikube v1.17.0 o
@lukepolo
lukepolo / VagrantFile
Created November 24, 2020 13:51
Vagrant Port Forwarding Bug
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
VAGRANTFILE_API_VERSION ||= "2"
confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))
require File.expand_path(File.dirname(__FILE__) + '/scripts/localDev.rb')
version: "3.7"
services:
expose:
ports:
- 8080:${PORT}
environment:
port: ${PORT}
auth_required: ${AUTH_REQUIRED}
build:
context: ./
@lukepolo
lukepolo / PostgreSQL - Google Storage URL Signer
Last active June 17, 2020 16:20
google-storage-url-signer.sql
create or replace function qx.create_google_storage_url(
file_path text,
bucket text default 'qx-media-unstable',
request_location text default 'auto',
request_service text default 'storage',
request_type text default 'goog4_request'
)
returns text
volatile
language plpgsql
@lukepolo
lukepolo / README.md
Created February 26, 2020 19:58
SquidMan Local Dev Setup