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
wget https://github.com/sdepold/pHash/archive/master.zip | |
unzip master.zip | |
cd pHash-master | |
./configure --enable-video-hash=no --enable-audio-hash=no | |
make | |
make install | |
cd bindings/php | |
./configure --disable-video_hash --disable-audio_hash |
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 | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', |
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 | |
echo $1 | sudo tee /sys/class/backlight/intel_backlight/brightness |
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
sudo apt-get install gnustep gnustep-devel gobjc |
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 | |
header(“HTTP/1.1 503 Service Temporarily Unavailable”); | |
header(“status: 503 Service temporarily Unavailable”); | |
header(“Retry-After: Mon 1 April 2013 00:00 GMT”); | |
?> |
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
Unfortunately, our mpeg demux is having problems parsing multiple audio streams out of a file and selecting the appropriate stream to play. We will enable the parsing of multiple audio streams in the future. | |
There is a work around you can use today. If you have access to the content, you can strip the excess streams using a transcoding tool like ffmpeg: | |
% ffmpeg -i MyMultiTracAudio.m4a | |
.... | |
Duration: 00:59:06.98, start: 0.000000, bitrate: 71 kb/s | |
Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 | |
Stream #0.1(eng): Data: mp4s / 0x7334706D | |
Stream #0.2(eng): Data: mp4s / 0x7334706D |
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
[ Handfull things ] | |
* I use sublime text with vintage mode active, takes your speed to next level. | |
* Wordpress package for submime text. There is snippet that will help you to create custom post and widget within seconds. https://github.com/purplefish32/sublime-text-2-wordpress | |
* Sublime linter for checking errors http://www.sublimelinter.com/ | |
* Prepros for compiling sass compressing css and javascript. https://prepros.io/ | |
[ Things to keep in mind ] | |
* Follow WordPress Coding Standards. http://codex.wordpress.org/WordPress_Coding_Standards | |
* Use WordPress APIs when neccesarry. http://codex.wordpress.org/WordPress_APIs | |
* Think about the security. http://codex.wordpress.org/Hardening_WordPress |
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
@TargetApi(Build.VERSION_CODES.HONEYCOMB) | |
private void downloadFile(Context context, String file, String title, String subtitle) { | |
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(file)); | |
request.setTitle(title); | |
request.setDescription(subtitle); | |
//request.setAllowedNetworkTypes(DownloadManager.Request.NETWORK_WIFI); //to allow download while using WIFI only | |
request.allowScanningByMediaScanner(); | |
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); | |
String nameOfFile = URLUtil.guessFileName(file, null, MimeTypeMap.getFileExtensionFromUrl(file)); | |
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, nameOfFile); |
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
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse | |
# deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse | |
# deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse | |
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse | |
# deb-src http://security.ubuntu.com/ubuntu precise-security main restricted universe multiverse |
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
" Vim Settings | |
filetype off | |
filetype plugin indent on | |
syntax on | |
set encoding=utf-8 | |
" Pathogen load | |
execute pathogen#infect() | |
execute pathogen#helptags() |