https://twitter.com/trey/status/377144951370694656
I should look into these projects:
| # How to install the hhvm package using yum on CentOS 6.6 with Plesk 11.5 | |
| # Note that you can also install hhvm from source. For that check the official guides here: | |
| # https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-CentOS-6.6#13-install-ocaml | |
| cd /etc/yum.repos.d | |
| sudo wget http://www.hop5.in/yum/el6/hop5.repo | |
| yum clean all |
| <?php | |
| function shst($url){ | |
| $apiurl="https://api.shorte.st/v1/data/url"; | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_HEADER, 0); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. | |
| curl_setopt($ch, CURLOPT_URL, $apiurl); | |
| curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT' ); | |
| // Agregamos el Token que copiamos de la pagina. | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array('public-api-token: XXXXXXXXXXXXXXXXXXX','X-HTTP-Method-Override: PUT')); |
This is all the media that I would like, have but need to be converted to *.m4a or *.m4v, and holes in my collection. To see what I currently do have, look at Tree.txt.
In order to create the directory tree, use the following command in the Media directory.
ls -R | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/' > Tree.txt && mv Tree.txt .Manifest/
| <?php | |
| /* | |
| * YOURLS : sample file showing how to use the API | |
| * This shows how to tap into your YOURLS install API from *ANOTHER* server | |
| * not from a file hosted on the same server. It's just a bit dumb to make a | |
| * remote HTTP request to the server the request originates from. | |
| * | |
| * Rename to .php | |
| * |
| <?php | |
| if(!isset($_GET['a'])) { | |
| die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>'); | |
| } | |
| $url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline"; | |
| stream_context_set_default(array( | |
| 'http' => array( | |
| 'method' => 'GET', | |
| 'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]' |
| <?php | |
| $year = 2014; | |
| $month = 10; | |
| $day = 21; | |
| $hour = 14; | |
| $min = 00; | |
| $sec = 00; | |
| $target = mktime($hour, $min, $sec, $month, $day, $year); | |
| $current = time(); |
| yum -y install gcc make glib2-devel libcurl-devel openssl-devel gmp-devel tar automake autoconf libtool wget asciidoc -y | |
| wget https://megatools.megous.com/builds/megatools-1.10.0-rc1.tar.gz | |
| tar -xzvf megatools*.tar.gz | |
| cd megatools* | |
| ./configure | |
| make | |
| make install |
| <?php | |
| // | |
| // taken from http://stackoverflow.com/questions/4357073/on-the-fly-zipping-streaming-of-large-files-in-php-or-otherwise | |
| // | |
| // make sure to send all headers first | |
| // Content-Type is the most important one (probably) | |
| // | |
| header('Content-Type: application/octet-stream'); | |
| header('Content-disposition: attachment; filename="file.zip"'); |
| // CountryCode.h | |
| // (c) 2013 Bacon Coding Company, LLC. | |
| // Licensed under the MIT License. | |
| // I lost my time scripting this dictionary in Python than I'd have writing it. | |
| // Regardless, it was some fun. | |
| #import <Foundation/Foundation.h> | |
| // Reference: http://www.apple.com/itunes/affiliates/resources/documentation/linking-to-the-itunes-music-store.html#appendix |