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
*Step 1, Get the confirmation code:* | |
wget --save-cookies cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILE_ID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/Code: \1\n/p' | |
*Step 2, Get the file:* | |
wget --load-cookies cookies.txt 'https://docs.google.com/uc?export=download&confirm=CODE_HERE&id=FILE_ID' | |
---- |
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
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType text/x-javascript "access 1 month" |
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 | |
for file in *.mp3; | |
do | |
# ext=${file##*.} | |
# fname=`basename $file .$ext` | |
# filename without extension | |
base=${file%.*} | |
# json | |
python -m aeneas.tools.execute_task ${base}.mp3 ${base}.txt "task_language=eng|os_task_file_format=json|is_text_type=plain" ${base}.json |
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 | |
i=0; | |
for file in *.mp3; | |
do | |
i=$((i+1)); | |
ffmpeg -loop 1 -i cover.jpg -i $file -c:a copy -c:v libx264 -shortest $file.mp4 | |
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
#!/bin/bash | |
DIR="$@" | |
for f in $DIR*.NEF | |
do | |
name=`echo "$f" | sed -e "s/.NEF$//g"` | |
exiftool -b -JpgFromRaw "$f" > "${name}.jpg" | |
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
<select class="chosen-select" id="hello_chosen"> | |
<option name=""></option> | |
</select> | |
$(function(){ | |
$("#hello_chosen").chosen({ | |
width:"400px", | |
allow_single_deselect: true |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -s [OR] | |
RewriteCond %{REQUEST_FILENAME} -l [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^.*$ - [NC,L] | |
RewriteRule ^.*$ /public/index.php [NC,L] |
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
var casper = require('casper').create(); | |
casper.userAgent('AdsBot-Google-Mobile (+http://www.google.com/mobile/adsbot.html) Mozilla (iPhone; U; CPU iPhone OS 3 0 like Mac OS X) AppleWebKit (KHTML, like Gecko) Mobile Safari'); | |
casper.start("http://glimmering.eu/", function() { | |
this.echo(this.getTitle()); | |
}); | |
casper.run(); |
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
#! /usr/bin/phantomjs | |
var page = require('webpage').create(); | |
var system = require('system'); | |
var args = system.args; | |
if(args[1]==''){ | |
console.log('Url parameter is missign!') | |
console.log('Important to call this file for four parameters.'); | |
console.log('phantomjs url w h output file 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
<?php | |
$rssUrl = "http://arth2o.com/rss.xml"; | |
/** | |
* Load xml use PHP yield Generator | |
**/ | |
class GetRss | |
{ | |
private $url; |