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/bash | |
HOSTSFILE="/etc/hosts" | |
BAKFILE="$HOSTSFILE.bak" | |
DOMAINREGEX="^[a-zA-Z0-9]{1}[a-zA-Z0-9\.\-]+$" | |
IPREGEX="^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | |
URLREGEX="^https?:\/\/[a-zA-Z0-9]{1}[a-zA-Z0-9\/\.\-]+$" | |
backup() | |
{ |
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
server { | |
listen 80; | |
server_name campus.vincoorbis.com; | |
location / { | |
proxy_pass http://localhost:2368; | |
} | |
} |
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
vagrant@vagrant:~$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/vagrant--vg-root 39G 1.3G 36G 4% / | |
none 4.0K 0 4.0K 0% /sys/fs/cgroup | |
udev 169M 4.0K 169M 1% /dev | |
tmpfs 37M 348K 37M 1% /run | |
none 5.0M 0 5.0M 0% /run/lock | |
none 183M 0 183M 0% /run/shm | |
none 100M 0 100M 0% /run/user | |
/dev/sda1 236M 40M 184M 18% /boot |
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>My fist AngularJS app</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body ng-app> | |
<div ng-controller="miPrimerControlador"> | |
<p>{{ modelo.texto }}</p> |
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>My fist AngularJS app</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
</head> | |
<body ng-app> | |
<div ng-controller="miPrimerControlador"> | |
<p>{{ modelo.texto }}</p> |
NewerOlder