Skip to content

Instantly share code, notes, and snippets.

View fzipi's full-sized avatar

Felipe Zipitría fzipi

View GitHub Profile
#!/usr/bin/env bash
# The MIT License (MIT)
#
# Copyright (c) 2014 Arun Babu Neelicattu
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@fzipi
fzipi / gist:e9c6354ef33f02c95925
Created April 28, 2015 18:14
Problem with syncronization using davdroid 0.7.2 and horde
D/Wire (29964): http-outgoing-0 << "BEGIN:VTIMEZONE[\n]"
D/Wire (29964): http-outgoing-0 << "TZID:America/Montevideo[\n]"
D/Wire (29964): http-outgoing-0 << "BEGIN:STANDARD[\n]"
D/Wire (29964): http-outgoing-0 << "DTSTART:18980628T000000[\n]"
D/Wire (29964): http-outgoing-0 << "TZOFFSETFROM:-0344[\n]"
D/Wire (29964): http-outgoing-0 << "TZOFFSETTO:-0344[\n]"
D/Wire (29964): http-outgoing-0 << "TZNAME:MMT[\n]"
D/Wire (29964): http-outgoing-0 << "END:STANDARD[\n]"
D/Wire (29964): http-outgoing-0 << "BEGIN:STANDARD[\n]"
D/Wire (29964): http-outgoing-0 << "TZOFFSETFROM:-0330[\n]"
@fzipi
fzipi / ardour5.sh
Created August 15, 2016 20:47
Compile Ardour 5 on fedora 24
#!/bin/bash
# Ardour 5 in Fedora 24
sudo dnf install -y aubio aubio-devel dnf fftw-devel flac-devel gtkmm gtkmm24 gtkmm-2.4 \
gtkmm24-devel jack-audio-connection-kit-devel jack-devel libflac-devel liblo-devel liblrdf-devel \
liblv2-devel libogg-devel libsamplerate-devel libsndfile-devel lilv-devel lrdf-devel lv2-devel \
rubberband-devel samplerate-devel serd-0 serd-devel sord-devel sratom-devel taglib-devel vamp-plugin-sdk-devel
./waf configure
umask 022; sudo ./waf install
@fzipi
fzipi / README.md
Last active November 9, 2016 21:38 — forked from hwdsl2/README.md
My IPTables rules for securing the Asterisk VoIP server
@fzipi
fzipi / sites-enabled-certbot-test
Created October 29, 2017 18:22
certbot not working with nginx
server {
listen 80;
listen [::]:80;
root /var/www/owaspsummit.org;
index index.html
server_name owaspsummit-test.org;
@fzipi
fzipi / nginx.conf
Created November 2, 2017 01:54
Base nginx
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@fzipi
fzipi / participant.html
Created December 7, 2017 18:19
Hugo Template for Participant
<!DOCTYPE html>
<html>
<head>
{{ partial "header.html" . }}
</head>
<body>
{{ partial "menu.html" . }}
<div class="page-content">
<div class="participants">
<div class="container">
@fzipi
fzipi / openvpn.md
Created February 18, 2018 01:58 — forked from Morley93/openvpn.md
This is how you can take an openvpn .ovpn config file and extract the certificates/key required to import the profile into NetworkManager.

OpenVPN .ovpn manipulation.

This is how you can take an OpenVPN .ovpn config file and extract the certificates/keys required to import the profile into NetworkManager.

  • Download the .ovpn file. Save it somewhere you can store it permanently (I use ~/.vpn).
  • Copy from between <ca> tags into ca.crt, remove <ca> tags.
  • Copy from between <cert> tags into client.crt, remove <cert> tags.
  • Copy from between <key> tags into client.key, remove <key> tags.
  • Copy from between <tls-auth> tags into ta.key, remove <tls-auth> tags.
  • Remove the line "key-direction 1"
  • Above "# -----BEGIN RSA SIGNATURE-----" insert the following lines.
@fzipi
fzipi / ssl.cnf
Created March 27, 2018 21:33 — forked from WebPlatformDocs/ssl.cnf
Create MariaDB/MySQL self-signed SSL certificates through Salt. Full procedure at https://renoirboulanger.com/blog/2015/01/create-mariadb-cluster-replication-ssl-salt-stack/
[client]
ssl
ssl-cert=/etc/mysql/client-cert.pem
ssl-key=/etc/mysql/client-key.pem
[mysqld]
ssl
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=/etc/mysql/ca-cert.pem
ssl-cert=/etc/mysql/server-cert.pem

Keybase proof

I hereby claim:

  • I am fzipi on github.
  • I am fzipitria (https://keybase.io/fzipitria) on keybase.
  • I have a public key ASB_oHz2d172tw2zDZy5B5BoIIE4bzWu-_FMINhOZU6bPgo

To claim this, I am signing this object: