This is for troubleshooting/fixing redis that is already running or failing to start.
This is necessary because the PVC is RW once
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:| #!/usr/bin/env bash | |
| # open-prs.sh | |
| __gh=/opt/homebrew/bin/gh | |
| __jq=/opt/homebrew/bin/jq | |
| while IFS= read -r -d '' dir | |
| do | |
| dir=$(dirname "$dir") | |
| cd "$dir" || continue |
| #!/usr/bin/env bash | |
| BUCKET=abc/def | |
| REGION=us-east-1 | |
| PROFILE=my_profile | |
| for key in "vault-root" "vault-unseal-0" "vault-unseal-1" "vault-unseal-2" "vault-unseal-3" "vault-unseal-4" | |
| do | |
| aws s3 cp s3://${BUCKET}/${key} . --profile "$PROFILE" --region "$REGION" |
| SELECT u.usename AS username, | |
| c.relname, | |
| n.nspname, | |
| pg_catalog.pg_table_is_visible(c.oid) as table_name, | |
| has_table_privilege(c.oid, 'SELECT') as select_access, | |
| has_table_privilege(c.oid, 'INSERT') as insert_access, | |
| has_table_privilege(c.oid, 'UPDATE') as update_access, | |
| has_table_privilege(c.oid, 'DELETE') as delete_access | |
| FROM pg_catalog.pg_user u | |
| CROSS JOIN pg_catalog.pg_class c |
| { | |
| "tasks": { | |
| "dev": "deno run --watch main.ts" | |
| }, | |
| "imports": { | |
| "@googlemaps/google-maps-services-js": "npm:@googlemaps/google-maps-services-js@^3.4.0", | |
| "@std/assert": "jsr:@std/assert@1", | |
| "@types/node": "npm:@types/node@^22.10.7" | |
| } | |
| } |
| internal class RowVersionInterceptor : SaveChangesInterceptor | |
| { | |
| public override InterceptionResult<int> SavingChanges(DbContextEventData eventData, InterceptionResult<int> result) | |
| { | |
| DbContext dbContext = eventData.Context!; | |
| foreach (EntityEntry entry in dbContext.ChangeTracker.Entries().Where(e => e.State is EntityState.Added or EntityState.Modified)) | |
| { | |
| IEnumerable<PropertyEntry> concurrencyTokens = entry.Properties.Where(p => p.Metadata.IsConcurrencyToken); |
This is from https://stackoverflow.com/a/67700916/93940
Original author: https://stackoverflow.com/users/362377/conrado
| repos: | |
| - repo: local | |
| hooks: | |
| - id: prevent-commits-to-default-branch | |
| name: prevent commits to default branch | |
| entry: prevent-commits-to-default-branch.sh | |
| language: script | |
| require_serial: true |
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFramework>netstandard2.0</TargetFramework> | |
| <RootNamespace>Demos.OAS.Client</RootNamespace> | |
| <GenerateAssemblyInfo>true</GenerateAssemblyInfo> | |
| <FileVersion>0.1.0.0</FileVersion> | |
| <LangVersion>latest</LangVersion> | |
| <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | |
| <Version>0.1.0</Version> |
| kubectl get REPLACE_WITH_KIND -o name | xargs -n1 kubectl patch --type merge --patch '{"metadata":{"finalizers":null}}' |