- 
Start the Ubuntu Server VM and insert the Guest Additions CD image (Devices menu, Install Guest Additions). 
- 
Mount CD Rom: $ sudo mount /dev/cdrom /media 
- 
Install necessary build tools and dependencies: 
  
    
      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
    
  
  
    
  | <label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
| <select id="country" name="country" class="form-control"> | |
| <option value="Afghanistan">Afghanistan</option> | |
| <option value="Åland Islands">Åland Islands</option> | |
| <option value="Albania">Albania</option> | |
| <option value="Algeria">Algeria</option> | |
| <option value="American Samoa">American Samoa</option> | |
| <option value="Andorra">Andorra</option> | |
| <option value="Angola">Angola</option> | 
  
    
      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 localhost; | |
| root /usr/share/nginx/html; | |
| location ~ /.+ { | |
| try_files $uri $uri.html $uri =404; | |
| } | 
  
    
      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 | |
| # Destiny folder where backups are stored | |
| DEST=/tmp/bacula/server01 | |
| CURRDATE=$(date +"%F") | |
| # Hostname where MySQL is running | |
| HOSTNAME="srv-mysql" | |
| # User name to make backup | |
| USER="root" | 
  
    
      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 | |
| /* Simple sample USSD registration application | |
| * USSD gateway that is being used is Africa's Talking USSD gateway | |
| */ | |
| // Print the response as plain text so that the gateway can read it | |
| header('Content-type: text/plain'); | |
| /* local db configuration */ | |
| $dsn = 'mysql:dbname=dbname;host=127.0.0.1;'; //database name | 
  
    
      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
    
  
  
    
  | license: gpl-3.0 | |
| border: no | 
  
    
      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
    
  
  
    
  | ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa | 
  
    
      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 -xe | |
| API_KEY="YOUR_API_KEY_GOES_HERE" | |
| FPS="10" | |
| VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" | |
| # I don't know how this'll behave on multimon, so you might want to hard-code. | |
| # INRES='1440x900' | |
| INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3- -dx) | |
| OUTRES='1280x800' | |
| # You can change this to record microphone or something else, from man soxformat (under coreaudio): | 
  
    
      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
    
  
  
    
  | # coding=utf-8 | |
| import base64 | |
| from urllib2 import urlopen | |
| import tempfile | |
| import os | |
| import tk | |
| import json | |
| class App(tk.Tk): | 
  
    
      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
    
  
  
    
  | from datetime import datetime, timezone, timedelta | |
| def convert_timezone(dtm, z='utc'): | |
| t_utc = (dtm - (dtm.utcoffset() or timedelta())) | |
| t_utc = t_utc.replace(tzinfo=timezone.utc) | |
| z = z.lower().replace('utc', '').replace(' ', '').replace(':', '') | |
| if not z: | |
| return t_utc | |
| if len(z) == 3: | 
NewerOlder