Skip to content

Instantly share code, notes, and snippets.

View railsstudent's full-sized avatar
🏠
Researching third-party library

Connie Leung railsstudent

🏠
Researching third-party library
View GitHub Profile
@railsstudent
railsstudent / keycloak-docker-compose.yaml
Last active February 29, 2024 03:03
Docker compose for creating a keycloak
version: '3.8'
services:
keycloak:
image: quay.io/keycloak/keycloak:latest
container_name: keycloak
ports:
- "${KEYCLOAK_PORT}:8080"
environment:
- KEYCLOAK_ADMIN=${KEYCLOAK_USER_NAME}
@railsstudent
railsstudent / alert.rules.yml
Created February 19, 2024 13:37 — forked from krisek/alert.rules.yml
Prometheus alert rules for node exporter
groups:
- name: node_exporter_alerts
rules:
- alert: Node down
expr: up{job="monitoring-pi"} == 0
for: 2m
labels:
severity: warning
annotations:
title: Node {{ $labels.instance }} is down
@railsstudent
railsstudent / empty-example.md
Created January 24, 2024 10:53 — forked from subfuzion/empty-example.md
Protocol Buffer example of importing and using empty

How to import and indicate empty request or reply messages:

import "google/protobuf/empty.proto";

service SomeService {
    rpc SomeOperation (google.protobuf.Empty) returns (google.protobuf.Empty) {}
}
@railsstudent
railsstudent / signal-onpush-cd-resources.md
Created December 22, 2023 20:02 — forked from ilirbeqirii/signal-onpush-cd-resources.md
Signal & OnPush Change Detection in v17 resources

Local Change Detection

Tomas Trajan:

            https://www.youtube.com/watch?v=sbIlz-yuxQI&t=2513s

Kevin Kreuzer:

            https://www.youtube.com/watch?v=fAFKK8JnPkI
@railsstudent
railsstudent / featured-products.json
Created December 20, 2023 03:39
Create featured products for my demo
@railsstudent
railsstudent / npx command to run angular cli
Created November 1, 2023 13:44 — forked from ddieppa/npx command to run angular cli
This is the npx command to run angular cli new project without install it globally
npx -p @angular/cli ng new hello-world-project
then locally can run
npx ng g c hello-world-component
{
"techStack": [
"Angular",
"Vue",
"CSS",
"TypeScript",
"JavaScript",
"NestJS",
"NodeJS",
"PostgreSQL",
@railsstudent
railsstudent / preferences.json
Last active September 22, 2023 00:48
Create user preferences for demo
{
"preferences": {
"top": {
"backgroundColor": "yellow",
"border": "1px solid black",
"color": "rebeccapurple",
"fontSize": "36px",
"textAlign": "center"
},
"content": {
@railsstudent
railsstudent / messages.json
Last active February 20, 2023 23:39
messages.json
{
"messages":[
{
"id":1,
"description":"This is an inbox layout.",
"isChecked":false
},
{
"id":2,
"description":"Check one item",
{
"videos":[
{
"name":"Video 1",
"time":"5:43"
},
{
"name":"Video 2",
"time":"2:33"
},