cd ~
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -P ~
unzip ngrok-stable-linux-amd64.zip
sudo mv ngrok /usr/local/bin/
# To test out ngrok ssh background
ngrok tcp 22 --log=stdout > ~/ngrok.log &
# To copy token goto: https://dashboard.ngrok.com/get-started
ngrok authtoken ...
nano ~/.ngrok2/ngrok.yml
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
<?php | |
Yii::$app->db->createCommand("SET foreign_key_checks = 0")->execute(); | |
$tables = Yii::$app->db->schema->getTableNames(); | |
foreach ($tables as $table) { | |
Yii::$app->db->createCommand()->dropTable($table)->execute(); | |
} | |
Yii::$app->db->createCommand("SET foreign_key_checks = 1")->execute(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test with RxJS</title> | |
</head> | |
<body> | |
<input type="text" id="txtinput" placeholder="Search in wikipedia"> | |
<button>Click me</button> | |
<select id="select"></select> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Functional Programming</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
<style type="text/css"> | |
.form-control { | |
margin-top: .5rem; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app"> | |
{{ welcome }} | |
<h2>{{ message }}</h2> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div id="app"> | |
{{ status }} | |
</div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dynamic Form With Vue Js</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<button class="btn btn-success mt-5 mb-5" | |
@click="addNewEmployeeForm">New Employee</button> |
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
:::::::::::::::::::::::::::::::::::::::::::: | |
:: Automatically check & get admin rights V2 | |
:::::::::::::::::::::::::::::::::::::::::::: | |
@echo off | |
CLS | |
ECHO. | |
ECHO ============================= | |
ECHO Running Admin shell | |
ECHO ============================= |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt-get install gdebi
gdebi google-chrome-stable_current_amd64.deb
This will install & running nginx latest on Ubuntu with ip 192.168.48.133
. Tested on Ubuntu 16.04 x64 LTS
Install on OS running Ubuntu or in VM will work also.
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update