Skip to content

Instantly share code, notes, and snippets.

View TrevorRashid's full-sized avatar
🧘‍♀️
#Mindfulness

Trevor TrevorRashid

🧘‍♀️
#Mindfulness
View GitHub Profile
Task 1: Create a project jumphost instance
Navigation menu > Compute engine > VM Instance
Task 2: Create a Kubernetes service cluster
gcloud config set compute/zone us-east1-b
gcloud container clusters create nucleus-webserver1
@TrevorRashid
TrevorRashid / centerLeafletMapOnMarker.js
Created May 8, 2023 12:39 — forked from jeffreymorganio/centerLeafletMapOnMarker.js
Zoom and center a Leaflet map on a single marker.
function centerLeafletMapOnMarker(map, marker) {
var latLngs = [ marker.getLatLng() ];
var markerBounds = L.latLngBounds(latLngs);
map.fitBounds(markerBounds);
}
# Read more about setting it up
# https://medium.com/@ljmocic/deploying-react-application-to-aws-s3-using-github-actions-85addacaeace
on:
push:
tags:
- '*'
jobs:
build:
#!/bin/sh
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
@TrevorRashid
TrevorRashid / Kubernetes - Tips.md
Last active May 11, 2021 09:16 — forked from savishy/Kubernetes - Tips.md
Kubernetes Cheatsheet

About kubeconfig and Sharing kubeconfigs

When you create a Google Cloud Container cluster with gcloud container clusters create it also generates a kubeconfig entry. See the output below:

Creating cluster petclinic...done.
Created [https://container.googleapis.com/v1/projects/gcloud-testing-vish/zones/asia-east1-a/clusters/petclinic].
kubeconfig entry generated for petclinic.
NAME       LOCATION      MASTER_VERSION  MASTER_IP       MACHINE_TYPE   NODE_VERSION  NUM_NODES  STATUS
@TrevorRashid
TrevorRashid / mongodb_pass_reset.md
Created March 26, 2021 13:02 — forked from shivampip/mongodb_pass_reset.md
MongoDB shell admin password reset
  • open mongod.conf
cd /etc/mongod.conf
  • Comment security
#security:
#  authroization: "enabled"
@TrevorRashid
TrevorRashid / ip_instance.md
Last active August 24, 2020 10:33 — forked from francois-blanchard/ip_instance.md
Google cloud - Manage ip instance with gcloud

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@TrevorRashid
TrevorRashid / Lists.scala
Created December 21, 2019 16:32 — forked from zezutom/Lists.scala
Coursera, progfun1: Solution to the Example assignment
package example
import java.util.NoSuchElementException
object Lists {
/**
* This method computes the sum of all elements in the list xs. There are
* multiple techniques that can be used for implementing this method, and