Skip to content

Instantly share code, notes, and snippets.

@rickbau5
rickbau5 / gcp-cloud-run-function-deploy.sh
Created April 22, 2025 16:35
Experimenting with Cloud Run function deploy options
export REGION=us-central1
export PROJECT_ID=$(gcloud config get-value project)
export BASE_IMAGE="nodejs22"
export FUNCTION_ENTRYPOINT="helloGET"
gcloud services enable artifactregistry.googleapis.com \
cloudbuild.googleapis.com \
run.googleapis.com \
logging.googleapis.com
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Airplane {
protected:
string model;
int capacity;
function New-LegalNotice {
<#
.SYNOPSIS
Installs or Uninstalls the legal notice at logon that is used to prevent users from logging on to a computer that is currently upgrading.
.DESCRIPTION
Installs or Uninstalls the legal notice at logon that is used to prevent users from logging on to a computer that is currently upgrading.
@helium-service
helium-service / detekt-report-1745339621.md
Created April 22, 2025 16:34
Detekt Report for PR #2112 Timestamp 1745339621

detekt

Metrics

  • 56 number of properties

  • 31 number of functions

  • 10 number of classes

@choco-bot
choco-bot / Install.txt
Created April 22, 2025 16:34
morsetest v4.6 - Failed - Package Tests Results
2025-04-22 16:33:25,299 4884 [DEBUG] - XmlConfiguration is now operational
2025-04-22 16:33:25,908 4884 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,924 4884 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,940 4884 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,940 4884 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,955 4884 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,971 4884 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-04-22 16:33:25,987 4884 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-04-22 16:33:26,002 4884 [DEBUG] - Adding new typ
@v-jacob
v-jacob / whitelist.txt
Created April 22, 2025 16:33
AdGuard Home Whitelist
!Google Maps and other Google Services
@@||clients4.google.com
@@||clients2.google.com
!Google Play
@@||android.clients.google.com
!Google Keep
@@||reminders-pa.googleapis.com
@@||firestore.googleapis.com
@choco-bot
choco-bot / FilesSnapshot.xml
Created April 22, 2025 16:33
xamarin-visualstudio v4.0.3.214 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\xamarin-visualstudio\ChocolateyInstall.ps1" checksum="A853C8A9735531427F86EA6F1630EAB7" />
<file path="C:\ProgramData\chocolatey\lib\xamarin-visualstudio\xamarin-visualstudio.nupkg" checksum="1F2A3EE40D161258BDD13969E3E0B6CC" />
<file path="C:\ProgramData\chocolatey\lib\xamarin-visualstudio\xamarin-visualstudio.nuspec" checksum="71A32687F545CE20F5F8F44FE87BE7B8" />
</files>
</fileSnapshot>
@mohilcode
mohilcode / result.ts
Created April 22, 2025 16:33
typescript implementation of the result pattern for functional error handling. provides type-safe alternatives to try/catch with monadic operations for composition. use this to make error handling explicit in your function signatures and avoid throwing exceptions
export type Success<T> = {
readonly type: 'success'
readonly data: T
readonly error?: never
}
export type Failure<E> = {
readonly type: 'failure'
readonly data?: never
readonly error: E
@Assassin1024
Assassin1024 / pump_amm.json
Created April 22, 2025 16:33 — forked from daog1/pump_amm.json
PumpSwap IDL
{
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",
"metadata": {
"name": "pump_amm",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
{
"success": true,
"credits_left": 100,
"rate_limit_left": 100,
"person": {
"publicIdentifier": "eden-marco",
"linkedInIdentifier": "ACoAABx4394BeQhL15XiUqnQf7d9fobHXw13SMo",
"memberIdentifier": "477683678",
"linkedInUrl": "https://www.linkedin.com/in/eden-marco",
"firstName": "Eden",