This file contains 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 | |
############################################################################### | |
# | |
# Description: | |
# Script generates Nimble session-friendly playlists | |
# (parent playlist with sub-playlists inside) and supervisor program/job | |
# of ffmpeg process which pulls from provided source address $ch_source and | |
# pushes to localhost nibmle-origin server as a name $ch_res for later HLS transmuxing | |
# |
This file contains 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
/* ----------- iPad 1, 2, Mini and Air ----------- */ | |
/* Portrait and Landscape */ | |
@media only screen | |
and (min-device-width: 768px) | |
and (max-device-width: 1024px) | |
and (-webkit-min-device-pixel-ratio: 1) { | |
} |
This file contains 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 fs = require('fs'), | |
stub = require('./stub'), | |
_ = require('underscore'), | |
request = require('request'); | |
// config for local file | |
var basePath = "images/", | |
data = stub.data, | |
urlRoot = "http://cdn.catalogs.com/"; |
This file contains 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 | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
This file contains 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
//Devuelve el registro que más respuestas VÁLIDAS tiene y menos SEGUNDOS, agrupado por email. Ordenado por VALIDAS DESC y | |
db.myDBTrivia.aggregate( | |
[ | |
{ | |
$group: | |
{ | |
_id: "$email", | |
validas: { $max: "$respuesta.validas"}, | |
segundos: { $min: "$respuesta.segundos"} | |
} |
This file contains 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
( function(){ | |
var __x = Function.prototype.call; | |
Function.prototype.call = function( thisArg ){ | |
if( arguments[1] && arguments[1].indexOf && | |
arguments[1].indexOf( "with (__commandLineAPI" ) !== -1 ) { | |
throw "Sorry, Execution via Console has been disabled!"; | |
} | |
__x.apply( this, arguments ); | |
}; |
This file contains 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
(function (){ | |
var processing = false; | |
if( !(FileAPI.support.html5 || FileAPI.support.flash) ){ | |
alert('Ooops, your browser does not support Flash and HTML5 :['); | |
} | |
function thumb(file, width, height, type){ | |
var image = FileAPI.Image(file), label = width+'x'+height, callback; |
This file contains 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
/*! jquery.getJSONP */ | |
var jsonp={_config:{id:"fileName"},_callback:{},_params:{},init:function(a){jsonp.parse(a)},parse:function(a){if(!a.hasOwnProperty("meta")||!a.meta.hasOwnProperty(this._config.id)||!jsonp._callback.hasOwnProperty(a.meta[this._config.id]))return"error: jsonp malformed. Wrong meta";var b=jsonp._callback[a.meta.fileName];var p=jsonp._params[a.meta.fileName];delete jsonp._callback[a.meta.fileName];delete jsonp._params[a.meta.fileName];return b(a,p)}}; | |
(function(a){a.getJSONP=function(b,c,d,p){return a.fn.getJSONP(b,c,d,p)};a.fn.getJSONP=function(b,c,d,p){b=b||!1;c=c||!1;d=d||!1;p=p||!1;"function"==a.type(c)&&(p=d,d=c,c={});if(!b||!d)return"getJSONP error: not url or callback";var e=b.split("/").reverse()[0];jsonp._callback[e]=d;jsonp._params[e]=p;a.getJSON(b+"?callback=?&_="+$.now(),c)}})(jQuery); |
This file contains 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 nano /etc/xdg/lxsession/LXDE/autostart | |
@xset s off | |
@xset -dpms | |
@xset s noblank | |
#@midori -e Fullscreen -a https://www.leftronic.com/app/#Csmygr/aglYsPYxq | |
@midori -e Fullscreen https://www.leftronic.com/app/#Csmygr/aglYsPYxq |
This file contains 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
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { | |
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; | |
window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] | |
|| window[vendors[x]+'CancelRequestAnimationFrame']; | |
} | |
if (!window.requestAnimationFrame) |
NewerOlder