I hereby claim:
- I am toniher on github.
- I am toniher (https://keybase.io/toniher) on keybase.
- I have a public key whose fingerprint is A3B2 B108 0990 FB04 454E F32E BB7E 8E7B 8D1C C5BE
To claim this, I am signing this object:
#!/usr/bin/env python | |
from py2neo import neo4j | |
import sys | |
import logging | |
import argparse | |
from inspect import getmembers | |
from pprint import pprint | |
parser = argparse.ArgumentParser() | |
parser.add_argument("acc1", |
I hereby claim:
To claim this, I am signing this object:
#!/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 \ |
[Unit] | |
Description=hls: starts hls service | |
After=nginx.service | |
[Service] | |
Type=forking | |
User=www-data | |
ExecStart=/usr/local/bin/hls.sh | |
Restart=on-failure | |
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 |
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) |
#!/usr/bin/env perl | |
use Data::Dumper; | |
use Text::Trim; | |
use POSIX; | |
use List::Util qw(shuffle); | |
my $file = shift; | |
my @struct; | |
my @groups; |
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
<?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(); |
#!/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} |