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
# | |
# Original code copied from @ http://www.boback.com/2013/how-to-convert-flac-to-mp3-ubuntu-command-line/ | |
# | |
# Install lame and flac | |
sudo apt-get install lame flac | |
# For each file in the current directory, pass it through lame and output as MP3 | |
for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done |
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
$country_codes = array( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', | |
'AO' => 'Angola', | |
'AI' => 'Anguilla', | |
'AQ' => 'Antarctica', |
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 | |
# ----------------------------------------------- # | |
# Restart AMP | |
# ----------------------------------------------- # | |
sudo service apache2 stop | |
sudo service mysql restart | |
sudo service apache2 start |
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 | |
# ----------------------------------------------- # | |
# Install an AMP environment on Ubuntu 14.04 | |
# ----------------------------------------------- # | |
# Update the system's repositories | |
sudo apt-get update | |
# Install apache2, mysql-server and PHP5 | |
sudo apt-get install apache2 mysql-server libapache2-mod-auth-mysql php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-cli php5-gd php5-curl php5-imagick mcrypt phpmyadmin |
NewerOlder