Skip to content

Instantly share code, notes, and snippets.

View bernadinm's full-sized avatar

Miguel Bernadin bernadinm

  • Pulze.ai
  • San Francisco, California
  • 22:10 (UTC -07:00)
View GitHub Profile
@bernadinm
bernadinm / untilited0.ipynb
Last active December 3, 2023 01:44
Hello Pulze.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bernadinm
bernadinm / README.md
Created November 1, 2022 08:07
Home-manger MacOS Nix Installation Instruction

Nix MacOS Home Manager Installation Guide

Prequisite

Install Nix with the following command

sh <(curl -L https://nixos.org/nix/install)
@bernadinm
bernadinm / miguel.bernadin.id_ed25519
Created January 28, 2022 22:33
Miguel Bernadin's ssh public key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINqgRfblq8qT8u60vcfUEWo5aAy0GsnM4onnzDYRejNj openpgp:0xC106861E
@bernadinm
bernadinm / miguel.bernadin.pub.asc
Created January 28, 2022 22:27
Miguel Bernadin's public gpg key.
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFtRGFABEAD31S3wVmOfxe3TX4uyFGJSiRQ+qt41W3atDivZsCmp/JUuIKaI
NA4xZOfQM1F44hPsTheiOP35000wyXYxHm6uV//LZfIGmqxwectZGA/26eXAKQVP
Wp67vf2OdOsDbhX7q6N8vsYKETtPlG2wNBOgtkuWNu2lJT0nOJjTgKkKU+5GupLZ
f2+c51qF2yBZSyRb0uhSc3U/Lvf+outoEmUuk7oBWVTMSNS9SYXLlcUbV+7JqZ2M
ELaYt1aCgotxZ/YgQ5G2LTK0ysHaIRdYdC34Eue2H5SSdKMws0sQnWTM1DM0k2H8
UE7bZXcC54NpSp8LM/ivgZ9baSR+3MW1RLPd6Ba5mzsDPV8fuZ5bqKNZhylcJ2Lx
m56DQKkCL1IfR35P+y99wke8TCau46inehWodkH2tDx2XYjKzACS8QnmA6YeIo8b
3XgVH0IiqUXt55nzuCxLT9anXDkejShuj2z5p2jO0QI6xJMmVGNaQn62DDUMrW8S
@bernadinm
bernadinm / ksonnet-dot-notation.out
Created October 16, 2019 23:54
ksonnet dot notation
admissionregistration.v1alpha1.initializerConfiguration.initializersType
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.initializers.mixinInstance(initializers)
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.initializers.pendingType
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.initializers.withPending(pending)
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.initializers.withPendingMixin(pending)
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.initializersType
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.mixinInstance(metadata)
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.ownerReferencesType
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.withAnnotations(annotations)
admissionregistration.v1alpha1.initializerConfiguration.mixin.metadata.withAnnotationsMixin(annotations)
@bernadinm
bernadinm / README.md
Created February 5, 2019 19:50
dcos-terraform folder structure

dcos-terraform folder structure

[mb@miguel-nixos:~/Sites/bernadinm/dcos-terraform]$ tree -d -I 'templates|dcos-bootstrap|dcos-mesos-agent|dcos-mesos-master|dcos-mesos-agent-public' modules/
modules/
├── aws
│   ├── bootstrap
│   ├── dcos
│   │   ├── docs
│   │   │   └── published
@bernadinm
bernadinm / README.md
Last active February 5, 2019 15:59
How to make a site-wide dcos-terraform change

github changes

User Dan finds the changes to make

[mb@miguel-nixos:~/Sites/jieyu/dcos-terraform]$ grep -A1 -r . -e "aws_ami" | grep "AMI that will be used" | sed 's/tf-/tf:/g'
./modules/aws/infrastructure/variables.tf:  description = "AMI that will be used for the instances instead of Mesosphere provided AMIs"
./modules/aws/infrastructure/README.md:| aws_ami | AMI that will be used for the instances instead of Mesosphere provided AMIs | string | `` | no |
./modules/aws/public-agents/variables.tf: description = "AMI that will be used for the instances instead of Mesosphere provided AMIs"
@bernadinm
bernadinm / apply.log
Created January 2, 2019 19:52
terraform apply | terraform-aws-provider GH issue
$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
~ update in-place
Terraform will perform the following actions:
~ data.aws_security_group.peer
@bernadinm
bernadinm / plan.out
Created January 2, 2019 19:50
terraform plan | terraform-aws-provider GH issue
$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
@bernadinm
bernadinm / providerVariableDescription.tsv
Last active December 12, 2018 19:52
dcos-terraform: Provisioner Variable Descriptions for major convenience wrappers
Variables Description AWS Appendix GCP Appendix Azure Appendix
additional_listener List of additional listeners
additional_rules List of additional rules
admin Firewall rules for debuging access
admin_ips List of CIDR admin IPs
admin_username SSH User
agent_cidr_range Agent CIDR Range
agent_subnetwork_name Agent Subnetwork Name
allow_ports ports to allow
allow_stopping_for_update If true, allows Terraform to stop the instance to update its properties