Skip to content

Instantly share code, notes, and snippets.

View jsoref's full-sized avatar
📕
Saving the word one project at a time

Josh Soref jsoref

📕
Saving the word one project at a time
View GitHub Profile
source projects/some-project/locations/global/keyRings/default-keyring/cryptoKeys/some-key/cryptoKeyVersions/1 has value DESTROYED in field crypto_key_version.state., failedPrecondition
2020/08/17 16:10:44 [ERROR] <root>: eval: *terraform.EvalSequence, err: googleapi: Error 400: The request cannot be fulfilled. Resource projects/some-project/locations/global/keyRings/default-keyring/cryptoKeys/some-key/cryptoKeyVersions/1 has value DESTROYED in field crypto_key_version.state., failedPrecondition
2020/08/17 16:10:44 [ERROR] <root>: eval: *terraform.EvalOpFilter, err: googleapi: Error 400: The request cannot be fulfilled. Resource projects/some-project/locations/global/keyRings/default-keyring/cryptoKeys/some-key/cryptoKeyVersions/1 has value DESTROYED in field crypto_key_version.state., failedPrecondition
2020-08-17T16:10:44.428-0400 [DEBUG] plugin.terraform-provider-google_v3.27.0_x5: 2020/08/17 16:10:44 [DEBUG] Google API Response Details:
2020-08-17T16:10:44.428-0400 [DEBUG] plugin.terraform-provider-google
@jsoref
jsoref / urls-a1.txt
Last active April 27, 2020 17:45
llvm strings
https://github.com/llvm/llvm-project/search?q=abbrevation
https://github.com/llvm/llvm-project/search?q=abiguous
https://github.com/llvm/llvm-project/search?q=abnormaly
https://github.com/llvm/llvm-project/search?q=absense
https://github.com/llvm/llvm-project/search?q=absolete
https://github.com/llvm/llvm-project/search?q=absoulte
https://github.com/llvm/llvm-project/search?q=absoute
https://github.com/llvm/llvm-project/search?q=abstact
https://github.com/llvm/llvm-project/search?q=abstraciton
https://github.com/llvm/llvm-project/search?q=abstruct
@jsoref
jsoref / journal-first-restart-of-postgres12
Created February 13, 2020 19:10
pdns will die when postgres restarts
pdns_server[8776]: Backend reported permanent error which prevented lookup (GSQLBackend lookup query:Fatal error during query: SELECT content,ttl,prio,type,domain_id,disabled::int,name,auth::int FROM records WHERE disabled=false and name=$1 and domain_id=$2: FATAL: terminating connection due to administrator command
pdns_server[8776]: server closed the connection unexpectedly
pdns_server[8776]: This probably means the server terminated abnormally
pdns_server[8776]: before or while processing the request.
pdns_server[8776]: ), aborting
pdns_server[8776]: gpgsql Connection failed: Unable to connect to database, connect string: dbname=pdns user=pdns host=localhost password=<HIDDEN>: could not connect to server: Connection refused
pdns_server[8776]: Is the server running on host "localhost" (::1) and accepting
pdns_server[8776]: TCP/IP connections on port 5432?
pdns_server[8776]: could not connect to server: Connection refused
pdns_server[8776]: Is the server running on ho
@jsoref
jsoref / gist:861d5584b4b1af9c7248884d5d51ddf2
Last active August 27, 2019 04:31 — forked from magopian/gist:6128849
Local git mirror of github used by private Jenkins
So I've installed a dead simple backup, in /home/USER/git_backup/:
git clone --mirror [email protected]:USER/PROJECT.git
update.sh (launched every 5 minutes by cron):
#/bin/sh
cd /home/USER/git_backup/PROJECT.git
LINES=`git remote update 2>&1 | wc -l`
@jsoref
jsoref / gist:07beed504e05495f11d8d8fd1712a9ff
Created August 27, 2019 04:30 — forked from magopian/gist:6128849
Local git mirror of github used by private Jenkins
So I've installed a dead simple backup, in /home/USER/git_backup/:
git clone --mirror [email protected]:USER/PROJECT.git
update.sh (launched every 5 minutes by cron):
#/bin/sh
cd /home/USER/git_backup/PROJECT.git
LINES=`git remote update 2>&1 | wc -l`
class Foo {
// this is a complicated definition that I haven't finished parsing
typedef std::function<
int(
const ComboAddress& ip,
const DNSName& qdomain,
int qtype,
bool doTCP,
bool sendRDQuery,
int EDNS0Level,
@jsoref
jsoref / stick.js
Last active October 8, 2018 19:46 — forked from kmaher9/stick.js
function Stick() {
this.pos = createVector(width/2, height) // the position of the stick
this.vel = createVector() // the velocity of the stick
this.acc = createVector() // the acceleration rate of the stick
this.dna = new dna() // one strand of DNA to last the lifespan of the stick
this.applyForce = function(force) {
this.acc.add(force) // this allows for movement
}
@jsoref
jsoref / Debian_Mail_Server_with_Anti-Virus.md
Last active March 5, 2025 18:39 — forked from taotao/Debian_Mail_Server_with_Anti-Virus.md
Debian Exim4 mail server with Clamav support.

Environment

  • Debian: Jessie
  • Mail Server: Exim
  • Anti-Virus: Clamav

Install packages

  1. apt-get install clamav clamav-daemon exim4-daemon-heavy

Configuration of Clamav

  1. adduser clamav Debian-exim
@jsoref
jsoref / # pyenv-virtualenv - 2018-05-17_14-36-46.txt
Created May 17, 2018 20:00
pyenv-virtualenv on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for pyenv-virtualenv on macOS 10.13.4
Build date: 2018-05-17 14:36:46
https://github.com/mozilla/mozregression/blob/4ad1545405c364ccf1c2104314450c10956e650c/mozregression/test_runner.py#L110
This line is bad.
It hints that one can enter "broken", but it doesn't actually accept that.