Create an .htaccess file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/.htpasswd [username]
| ### commands | |
| #start the avd manager | |
| $ ./android avd | |
| #list available avds | |
| $ ./android list avd | |
| #Start an emulator with a target avd: | |
| $ ./emulator -avd <avdname> |
| $ adb remount | |
| $ adb pull /system/etc/hosts tmp/hosts | |
| $ vi tmp/hosts | |
| $ adb push tmp/hosts /system/etc |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>MSHPIconsRegular</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet" href="//i.s-microsoft.com/fonts/segoe-ui/west-european/normal/latest.css" /> | |
| </head> | |
| <body> | |
| <style type="text/css"> |
| <!doctype html> | |
| <html ng-app="selectExample"> | |
| <head> | |
| <title></title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script> | |
| <script src="select.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div ng-controller="selectController"> |
| Response.Write(new Uri(HttpContext.Current.Request.Url.AbsoluteUri).GetLeftPart(UriPartial.Path)); |
| var cookie = { | |
| //session cookies | |
| setCookie: function(name, value) { | |
| document.cookie = name + "=" + escape(value) + ';path=/'; | |
| }, | |
| getCookie: function(name) { | |
| var key, val; | |
| var cookies = document.cookie.split(";"); | |
| var cookiesLength = cookies.length; | |
| for (var i=0; i < cookiesLength; i++) { |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| </head> | |
| <body> | |
| <style type="text/css" media="screen"> | |
| html,body { |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div id="pulser"> | |
| <div class="pulse pulse1"></div> | |
| <div class="pulse pulse2"></div> | |
| <div class="pulse pulse3"></div> |
Create an .htaccess file in the webroot:
AuthUserFile /app/www/.htpasswd
AuthType Basic
AuthName "Restricted Access"
Require valid-user
Create a .htpasswd file:
htpasswd -c /app/www/.htpasswd [username]