Skip to content

Instantly share code, notes, and snippets.

@musghost
musghost / etchosts.sh
Last active August 29, 2015 14:24 — forked from mikeflynn/etchosts.sh
#!/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()
{
server {
listen 80;
server_name campus.vincoorbis.com;
location / {
proxy_pass http://localhost:2368;
}
}
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
@musghost
musghost / gist:d2adf8851aaa5e09a5c9
Created July 14, 2014 23:09
My first AngularJS application II
<!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>
@musghost
musghost / gist:789eaa17acf8b81db8a3
Last active August 29, 2015 14:03
My first AngularJS application
<!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>