Skip to content

Instantly share code, notes, and snippets.

View flopex's full-sized avatar
🦈
N/A

Francisco Lopez flopex

🦈
N/A
View GitHub Profile
// sourced from https://data.sfgov.org/Geographic-Locations-and-Boundaries/Street-Names/6d9h-4u5v
var stringsToType = ["01ST ST","02ND AVE","02ND ST","02ND TI ST","03RD AVE","03RD ST","03RD TI ST","04TH AVE","04TH ST","04TH TI ST","05TH AVE","05TH ST","05TH TI ST","06TH AVE","06TH ST","06TH HP AVE","06TH TI ST","07TH AVE","07TH ST","08TH AVE","08TH ST","08TH TI ST","09TH AVE","09TH ST","09TH TI ST","10TH AVE","10TH ST","10TH TI ST","11TH AVE","11TH ST","11TH TI ST","12TH AVE","12TH ST","12TH TI ST","13TH ST","13TH TI ST","14TH AVE","14TH ST","14TH TI ST","15TH AVE","15TH ST","16TH AVE","16TH ST","17TH AVE","17TH ST","18TH AVE","18TH ST","19TH AVE","19TH ST","20TH AVE","20TH ST","21ST AVE","21ST ST","22ND AVE","22ND ST","23RD AVE","23RD ST","24TH AVE","24TH ST","25TH AVE","SAM JORDANS WAY","25TH ST","26TH AVE","26TH ST","27TH AVE","27TH ST","28TH AVE","28TH ST","29TH AVE","29TH ST","30TH AVE","30TH ST","31ST AVE","31ST ST","32ND AVE","33RD AVE","34TH AVE","35TH AVE","36TH AVE","37TH AVE","38TH AVE","39TH AVE",
@flopex
flopex / v15_address_bind.patch
Created March 7, 2023 19:12
Vitess Patch to allow vttablets to bind to specific addresses.
diff --git a/go/cmd/vttablet/vttablet.go b/go/cmd/vttablet/vttablet.go
index f9c43bd2a2..30d6564601 100644
--- a/go/cmd/vttablet/vttablet.go
+++ b/go/cmd/vttablet/vttablet.go
@@ -136,6 +136,7 @@ func main() {
// tm uses ts. So, it should be closed after tm.
ts.Close()
})
+ servenv.Address = tablet.Hostname
0x2265a2f5ea209a2e3be19e84c0233963e938f914
0xb96f3895341706d83529f5888180459b7EBee623
@flopex
flopex / git-branch-status.sh
Created May 11, 2016 00:53
Pretty git branch overviews. Slight modification based on http://github.com/bill-auger -- Increased first-column char size and changed JOIN_CHAR from '_' to '&' which caused branches to have empty space instead of '_'
#!/bin/bash
# git-branch-status - this script prints out pretty git branch sync status reports
# * originally by http://github.com/jehiah
# * "s'all good!" message by http://github.com/kd35a
# * ANSI colors by http://github.com/knovoselic
# * formatting, filters, usage, and remotes by http://github.com/bill-auger
read -r -d '' USAGE <<-'USAGE'
@flopex
flopex / keybase.md
Last active February 8, 2017 21:56

Keybase proof

I hereby claim:

  • I am flopex on github.
  • I am flopex (https://keybase.io/flopex) on keybase.
  • I have a public key ASDEjuS_Yys23e9lSCkjP0lkWI43YMl-8Kql-ai2OdVV1Ao

To claim this, I am signing this object:

--- a/provisioner/puppet-server/provisioner.go
+++ b/provisioner/puppet-server/provisioner.go
@@ -38,6 +38,9 @@ type Config struct {
// The directory where files will be uploaded. Packer requires write
// permissions in this directory.
StagingDir string `mapstructure:"staging_dir"`
+
+ // If true, packer will ignore all exit-codes from a puppet run
+ IgnoreExitCodes bool `mapstructure:"ignore_exit_codes"`
}
### Keybase proof
I hereby claim:
* I am flopex on github.
* I am flopex (https://keybase.io/flopex) on keybase.
* I have a public key whose fingerprint is DD9E D93A E074 73BF 7280 EC80 78E7 2EA0 D0A2 A8EF
To claim this, I am signing this object: