| ❗ IMPORTANT: This gist is not actively maintained anymore. See https://github.com/cednore/ubuntu |
|---|
My personal environment setup guide on Ubuntu
| ❗ IMPORTANT: This gist is not actively maintained anymore. See https://github.com/cednore/ubuntu |
|---|
My personal environment setup guide on Ubuntu
| # syntax=docker/dockerfile:1 | |
| FROM ubuntu:20.04 | |
| LABEL org.opencontainers.image.authors="Anele 'ace' M <[email protected]>" | |
| LABEL version="1.0" | |
| LABEL "com.acemedia.vendor"="Ace Media Incorporated" | |
| LABEL description="ace Media Docker Image to build PHP, NODE APPS" | |
| # replace shell with bash so we can source files |
| function reversePolish(newExpr) { | |
| let expr = newExpr.split(" "); | |
| let stack =[]; | |
| if(expr === ''){ | |
| return 0; | |
| } | |
| for(let i=0; i<expr.length; i++) { | |
| if(!isNaN(expr[i]) && isFinite(expr[i])) { | |
| stack.push(expr[i]); |
| #Angular 2:the last RC version before switching to angular 4 as far as I can tell — based on this and the next version now depends on angular | |
| npx -p @angular/[email protected] ng new angular2app | |
| #Angular 4: the last CLI version before angular 5 | |
| npx -p @angular/[email protected] ng new angular4app | |
| #Angular 5: the last CLI version before 6 | |
| npx -p @angular/[email protected] ng new angular5app | |
| #Angular 6: the last CLI version before 7 |
| loadCartItems() { | |
| this.cartService.getCartItems() | |
| .then(val => { | |
| this.cartItems = val; | |
| if (this.cartItems.length > 0) { | |
| this.cartItems.forEach((value, index) => { | |
| console.log(value); | |
| this.totalAmount += parseInt(value.amount); | |
| console.log(this.totalAmount); | |
| }); |
| class DatabaseSeeder extends Seeder { | |
| /** | |
| * Run the database seeds. | |
| * | |
| * @return void | |
| */ | |
| public function run() | |
| { | |
| Eloquent::unguard(); |
| #!/bin/bash | |
| commonname=apachehttps.lab | |
| country=FR | |
| state=IDF | |
| locality=Panam | |
| organization=cciethebeginning.wordpress.com | |
| organizationalunit=IT | |
| [email protected] |
| #!/bin/sh | |
| # Copyright (C) 2009-2017 Three Nine Consulting | |
| # Always good practice to update packages. However ask user if they would like to do so | |
| # For explanation on how this works and why check out https://garywoodfine.com/use-pbcopy-on-ubuntu/ | |
| read -p "Do you want to update your package repositories before proceeding ? " -n 1 -r | |
| echo #adding new line | |
| if [[ $REPLY =~ ^[Yy]$ ]] | |
| then | |
| sudo apt update |