Skip to content

Instantly share code, notes, and snippets.

View GustavoKatel's full-sized avatar
👨‍🚀
🌌

Gustavo Sampaio GustavoKatel

👨‍🚀
🌌
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gustavokatel on github.
  • I am gustavokatel (https://keybase.io/gustavokatel) on keybase.
  • I have a public key ASAQBybT7vXXyy5zKFyq25YZCZgrVdexjWWCapROuA3t2go

To claim this, I am signing this object:

@GustavoKatel
GustavoKatel / ppt_to_latex.vb
Created October 5, 2018 16:04
PPT to LaTex
' this code extracts text from PPT(X) and saves to latex beamer body
' Provided for free with no guarantees or promises
'WARNING: this will overwrite files in the powerpoint file's folder if there are name collisiona
' Original version by Louis from StackExchange (https://tex.stackexchange.com/users/6321/louis) available here: (https://tex.stackexchange.com/questions/66007/any-way-of-converting-ppt-or-odf-to-beamer-or-org)
' Modified by Jason Kerwin (www.jasonkerwin.com) on 20 February 2018:
' Takes out extra text that printed in the title line
' Switches titles to \frametitle{} instead of including them on the \begin{frame} line (sometimes helps with compiling)
' Changes the image names to remove original filename, which might have spaces
' Removes "\subsection{}" which was printing before each slide
' Modified by Gustavo Sampaio (gbritosampaio@gmail.com):
@GustavoKatel
GustavoKatel / jail.local
Last active May 11, 2017 05:09 — forked from Nihisil/jail.local
Send notifications to the Slack from fail2ban
...
action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)s"]
slack[name=%(__name__)s]
action = %(action_with_slack_notification)s
...
@GustavoKatel
GustavoKatel / SSLBuffer.cpp
Created September 9, 2016 00:30 — forked from roxlu/SSLBuffer.cpp
libuv + openssl + SSLBuffer
#include "SSLBuffer.h"
SSLBuffer::SSLBuffer()
:ssl(NULL)
,read_bio(NULL)
,write_bio(NULL)
,write_to_socket_callback(NULL)
,write_to_socket_callback_data(NULL)
,read_decrypted_callback(NULL)
,read_decrypted_callback_data(NULL)
@GustavoKatel
GustavoKatel / youtube_embed.rb
Last active August 29, 2015 14:01
youtube_embed: Jekyll plugin for embedding youtube videos
#
# Youtube Embed Tag for Jekyll
#
# @version: 0.1
# @author: SAMPAIO Gustavo (@GustavoKatel)
#
module Jekyll
class YoutubeEmbedTag < Liquid::Tag
@GustavoKatel
GustavoKatel / wav_clean.m
Created February 13, 2014 03:54
This function cleans a slice of the spectrum according to the values on 'start_freq' and 'end_freq' (optional)
function [ wav ] = wav_clean( wav_in, start_freq, end_freq )
%wav_clean This function cleans a slice of the spectrum according to the
%values on 'start_freq' and 'end_freq' (optional)
wav = wav_in;
if nargin == 2
end_freq = size(wav, 1);
end
@GustavoKatel
GustavoKatel / wav_translate.m
Created February 13, 2014 03:21
This function translates the signal with the offset value
function [ wav ] = wav_translate( wav_in, offset )
%wav_translate This function translates the signal with the offset value
wav = wav_in;
for i=1:offset
wav(i) = 0;
end
s = size(wav_in);