Skip to content

Instantly share code, notes, and snippets.

View junibrosas's full-sized avatar
🎯
Create! create! create!

Juni Brosas junibrosas

🎯
Create! create! create!
View GitHub Profile
@junibrosas
junibrosas / docker-help.md
Created August 4, 2020 04:13 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

/**
* Component that loads script.
* It gives you a callback, so you can continue doing stuff once script get loaded.
*/
export interface mapWrapperProps{
asyncScriptOnLoad?:()=>void;
libraries?:string;
}
<?php
$random = rand();
$date = date('Y-m-d H:i:s');
$report_to_file = true;
$report_page = "./csp.php?report=1";
$report_file_name = "report.txt";
$intercom_app_id = "YOUR_APP_ID";
@junibrosas
junibrosas / .gitlab-ci.yml
Created October 11, 2020 16:28 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:6
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
@junibrosas
junibrosas / .dockerignore
Created October 25, 2020 16:43 — forked from ksmithut/.dockerignore
Node Docker Compose nodemon
node_modules
@junibrosas
junibrosas / launch.json
Last active January 13, 2021 07:06
VSCode debugging launch configuration examples
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch via npm",
"type": "node",
"request": "launch",
@junibrosas
junibrosas / docker-compose.yml
Created February 28, 2022 13:46
Docker with Redis
redis:
image: redis
container_name: cache
expose:
- 6379
app:
build: ./
volumes:
- ./:/var/www/app
links:
@junibrosas
junibrosas / install-LAMP-stack.md
Last active November 22, 2022 02:24
Installing LAMP Stack

Installing Apache and Updating the Firewall

sudo apt update

sudo apt install apache2

sudo ufw app list

sudo ufw allow in "Apache"
@junibrosas
junibrosas / installing-php-7.md
Last active November 22, 2022 08:53
Installing PHP 7.4

Update Ubuntu

sudo apt update && sudo apt upgrade

Install Required Packages

sudo apt install software-properties-common apt-transport-https -y
@junibrosas
junibrosas / multiple_ssh_setting.md
Last active November 25, 2022 12:58
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"