Skip to content

Instantly share code, notes, and snippets.

View martip07's full-sized avatar

Joseph martip07

View GitHub Profile
@martip07
martip07 / sendy-server
Created March 29, 2022 07:08 — forked from refringe/sendy-server
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen 80;
listen [::]:80;
server_name domain.com;
autoindex off;
index index.php index.html;
root /srv/www/domain.com/public;
@martip07
martip07 / sendy-server
Created March 29, 2022 07:08 — forked from refringe/sendy-server
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen 80;
listen [::]:80;
server_name domain.com;
autoindex off;
index index.php index.html;
root /srv/www/domain.com/public;
{
"__inputs": [],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.3.4"
},
{
@martip07
martip07 / thanos-s3-storage.yaml
Created February 21, 2020 05:29
thanos-object-storage-s3
type: S3
config:
bucket: "nombre-del-bucket"
endpoint: "endpoint-del-bucket"
access_key: "access-key-iam-aws"
secret_key: "access-key-iam-aws"
@martip07
martip07 / self_route.vcl
Created August 23, 2019 20:07 — forked from rezan/self_route.vcl
Self routing Varnish Cache cluster example
# Self routing cluster example
vcl 4.0;
import directors;
backend node1 {
.host = "node1.example.com";
.port = "80";
}
@martip07
martip07 / migrate-bitbucket.sh
Created July 17, 2019 20:33 — forked from kostajh/migrate-bitbucket.sh
Migrate repositories from gitolite (or somewhere else) to Bitbucket
#!/bin/bash
# Usage: ./bitbucket-migrate.sh repos.txt
#
# repos.txt should have one repository per line.
echo "Reading $1"
while read line
do
@martip07
martip07 / ffmpeg_check.py
Last active February 8, 2021 23:10
monit-proc
def check_regexVolume(out_value):
for volume_i in out_value:
if "mean_volume" in volume_i:
print(volume_i)
return volume_i
def ffmpeg_checkaudio(station, audio_uri):
cmd = ["ffmpeg", "-t", "10", "-i", audio_uri, "-af", "'volumedetect'", "-f", 'null', "\/dev\/null"]
@martip07
martip07 / hosts
Created February 4, 2019 20:21
ayuda-nginxapp1-2
ip-privada cualquiernombre
@martip07
martip07 / nginx.conf
Created November 19, 2018 22:06 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs=-lpthread \
--extra-libs=-lm \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libfdk_aac \