Skip to content

Instantly share code, notes, and snippets.

View cyberpau's full-sized avatar

cyberpau cyberpau

View GitHub Profile
@cyberpau
cyberpau / SonarQube
Last active February 20, 2024 05:32
Code Vulnerability Scanning
# SonarQube
https://docs.sonarsource.com/sonarqube/latest/try-out-sonarqube/?_gl=1*4hkicz*_gcl_aw*R0NMLjE3MDg0MDIxNzkuQ2p3S0NBaUFsY3l1QmhCbkVpd0FPR1oyU3dnVHlEMm1vOGZDN2FQU3VsVHJxOWQ3Tjd1djB6S3B0eHlicGlXanFuc25PX0YwenRPcDhCb0NMblVRQXZEX0J3RQ..*_gcl_au*ODQ4MDc3MDI4LjE3MDg0MDIxNzk.*_ga*NzMxOTMyNzk4LjE3MDg0MDIxNzk.*_ga_9JZ0GZ5TC6*MTcwODQwMjE3OC4xLjEuMTcwODQwNjQ0Ni4yMy4wLjA.
```
docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest
```
@cyberpau
cyberpau / README.txt
Last active November 18, 2022 07:24
Task 6: Create a pipeline in Jenkins to deploy your app
Run command
docker ps
### get container id
docker kill <container_id>
@cyberpau
cyberpau / gist:2690c1ac8570bf0cee3a598a1325485d
Created October 20, 2022 01:31
Project from Scratch (Vue.JS + Firebase)
# Initializing Nuxt Frontend
`npm init nuxt-app <front-end>`
# Install dependencies
`npm i firebase @nuxtjs/firebase `
## Go to Firebase and generate firebase web sdk

Get GCP project id:

export GCLOUD_PROJECT=$DEVSHELL_PROJECT_ID

Create Simple App Engine

gcloud app create --region "us-central"
@cyberpau
cyberpau / mynetwork.tf
Created October 13, 2022 04:55
GCP Terraform Templates
# Create the mynetwork network
resource "google_compute_network" "mynetwork" {
name = "mynetwork"
# RESOURCE properties go here
auto_create_subnetworks = "true"
}
@cyberpau
cyberpau / Dockerfile
Created October 13, 2022 02:59
simple nodejs-slim container
# Use the official lightweight Node.js 12 image.
# https://hub.docker.com/_/node
FROM node:12-slim
# Create and change to the app directory.
WORKDIR /usr/src/app
# Copy application dependency manifests to the container image.
# A wildcard is used to ensure copying both package.json AND package-lock.json (when available).
# Copying this first prevents re-running npm install on every code change.
COPY package*.json ./
# Install production dependencies.
@cyberpau
cyberpau / dart
Created October 3, 2022 02:47
Custom gitignores
# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
@cyberpau
cyberpau / install-k8.sh
Last active July 28, 2020 10:37
Kubernetes Installation on CentOS 7
#!/bin/bash
# Authored by John Paulo Mataac
if [[ 0 > 0 ]]
then echo "Exiting... Please run as root"
exit
fi
@cyberpau
cyberpau / dito-logo.md
Created July 17, 2020 01:53
Color Palette Cheatsheet

DITO Logo

  • Dark Blue: #0f63ab
  • Strong Pink: #d32653
  • Very Soft Blue: #aadcf5
  • Very Pale (mostly white) Cyan: #fcffff
# https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
# Copyright 2017 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#