phpbrew install php-7.2.28 +default +mcrypt +hash +exif +mbstring +zip +fileinfo +ctype +zlib +curl +xml +mysql +xmlrpc +iconv +intl +fpm +sqlite +openssl=shared -- --with-libdir=lib64
phpbrew ext install redis latest
# -*- coding: utf-8 -*- | |
""" | |
Pergola webservice client | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
More details at: https://pergola.crg.eu | |
Usage: python pergola-webservice.py myconfig.json myoutput.zip | |
""" | |
import requests | |
import json | |
import sys |
#!/usr/bin/env perl | |
# List of IDs - one per line | |
my $list = shift; | |
# File with potential IDs, it can be GFF but also othersH | |
my $gff = shift; | |
my @ids; | |
open( LIST, $list ) || die "Cannot open $list"; |
#!/bin/bash | |
# Based on https://github.com/sylabs/singularity/issues/1537 | |
# Usage: bash docker2singularity.sh mydockerimg mysingularity.simg | |
set -ueo pipefail | |
IMG=$1 | |
FILEOUT=$2 | |
PORT=${3:-5000} |
<?php | |
# Based on https://secure.php.net/manual/en/class.recursivedirectoryiterator.php#111142 | |
# Based on https://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php | |
$hidden = false; | |
if ( count( $argv ) > 1 ) { | |
$ritit = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($argv[1], RecursiveIteratorIterator::SELF_FIRST) ); | |
$r = array(); |
phpbrew install php-7.2.28 +default +mcrypt +hash +exif +mbstring +zip +fileinfo +ctype +zlib +curl +xml +mysql +xmlrpc +iconv +intl +fpm +sqlite +openssl=shared -- --with-libdir=lib64
phpbrew ext install redis latest
#!/usr/bin/env perl | |
use Data::Dumper; | |
use Text::Trim; | |
use POSIX; | |
use List::Util qw(shuffle); | |
my $file = shift; | |
my @struct; | |
my @groups; |
import sys | |
import requests | |
import urllib | |
pagename = str( ' '.join( sys.argv[1:] ) ) | |
wikiurl = "https://es.wikipedia.org/w/api.php?action=query&format=json&titles="+urllib.quote_plus( pagename )+"&prop=extracts&exintro&explaintext&redirects=true" | |
r = requests.get(wikiurl) |
FROM mariadb:10.1 | |
# To be changed here | |
ENV MYSQL_UID 27 | |
ENV MYSQL_GID 27 | |
RUN usermod -u $MYSQL_UID mysql; groupmod -g $MYSQL_GID mysql; | |
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld |
[Unit] | |
Description=hls: starts hls service | |
After=nginx.service | |
[Service] | |
Type=forking | |
User=www-data | |
ExecStart=/usr/local/bin/hls.sh | |
Restart=on-failure | |
#!/bin/bash | |
base=/var/hls | |
mkdir -p $base | |
cd $base | |
raspivid -n -w 720 -h 405 -fps 25 -vf -t 86400000 -b 1800000 -ih -o - \ | |
| ffmpeg -y \ |