- Using a ready-to-use Ubuntu image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
yum update -y | |
yum install -y wget unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | |
yum install -y ./google-chrome-stable_current_*.rpm | |
curl https://chromedriver.storage.googleapis.com/73.0.3683.20/chromedriver_linux64.zip > ~/chromedriver.zip | |
unzip -o ~/chromedriver.zip -d /usr/local/bin/chromedriver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Router, CanActivate } from '@angular/router'; | |
import { Injectable } from '@angular/core'; | |
/** **/ | |
class UserToken {} | |
/** **/ | |
class Permissions { | |
canActivate(user: UserToken, id: string): boolean { | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/network/interfaces | |
# | |
auto lo | |
iface lo inet loopback | |
# device: eth0 | |
iface eth0 inet manual | |
# IPv4 bridge | |
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!) |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"