Skip to content

Instantly share code, notes, and snippets.

View officialdarnyc's full-sized avatar

Ike Daniel C. officialdarnyc

View GitHub Profile

To verify that the controller is installed

kubectl get deployment -n kube-system aws-load-balancer-controller

Install Nginx controller in your cluster

This is what i used nginx controller please update the nginx controller service controller annotations. Once the manifest is applied next

@officialdarnyc
officialdarnyc / .multi-stage-azure-pipelines.yml
Created July 20, 2022 19:03 — forked from jimmymcp/.multi-stage-azure-pipelines.yml
Example multi-stage YAML pipeline for Azure DevOps
trigger:
- '*'
pool:
name: Default
variables:
image_name: mcr.microsoft.com/businesscentral/sandbox
container_name: Build
company_name: My Company

Rocket Chat Search Basics

Introduction

Rocket Chat search supports the use of "regular expressions", the benefits of which are great search flexibility and the ability to search chat entries in any language, even ones which are traditionally a challenge for search (e.g. "CJK" languages - Chinese, Japanese, Korean).

Basic Regex Examples

Regular expressions are a deep, but admittedly geeky topic. The flexibility of "regex" search increases as you learn more about how to write regex patterns, but if you learn just a couple of simple patterns, you can benefit right away.

Let's see a few simple examples that you can try.

@officialdarnyc
officialdarnyc / note.md
Created October 30, 2021 12:42 — forked from mordr/note.md
Set Visual Studio Code as default editor for kubectl

Set KUBE_EDITOR to Visual Studio Code, assumes 'code' is in PATH

export KUBE_EDITOR='code --wait'

Running k edit ... will open up the yaml using Visual Studio Code.

@BigNerd
BigNerd / k9s.txt
Last active June 21, 2024 19:37
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod
@magodo
magodo / azure-static-web-app.tpl
Last active November 19, 2023 03:08
terraform config to automatically setup an Azure static site
name: Azure Static Web Apps CI/CD
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
global:
resolve_timeout: 1m
slack_api_url: 'https://hooks.slack.com/services/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'
route:
receiver: 'slack-notifications'
receivers:
- name: 'slack-notifications'
slack_configs:
@Nicknyr
Nicknyr / alphabeticShift.js
Created March 29, 2020 00:06
CodeSignal = Alphabetic Shift
/*
Given a string, your task is to replace each of its characters by the next one in the English alphabet; i.e. replace a with b, replace b with c, etc (z would be replaced by a).
Example
For inputString = "crazy", the output should be alphabeticShift(inputString) = "dsbaz".
*/
function alphabeticShift(inputString) {
let newStr = [];
@jimmymcp
jimmymcp / .multi-stage-azure-pipelines.yml
Created September 24, 2019 12:25
Example multi-stage YAML pipeline for Azure DevOps
trigger:
- '*'
pool:
name: Default
variables:
image_name: mcr.microsoft.com/businesscentral/sandbox
container_name: Build
company_name: My Company
@aliostad
aliostad / azure-data-centres-location-codes
Created June 18, 2017 15:53
Azure Data Centres - Location Codes
{
"value": [
{
"id": "/subscriptions/c3dfd792-49a4-4b06-80fc-6fc6d06c4742/locations/eastasia",
"name": "eastasia",
"displayName": "East Asia",
"longitude": "114.188",
"latitude": "22.267"
},
{