Skip to content

Instantly share code, notes, and snippets.

View rubiojr's full-sized avatar
🚀
>>>>>>>>> ⚠️ 💥 ☠️

Sergio Rubio rubiojr

🚀
>>>>>>>>> ⚠️ 💥 ☠️
View GitHub Profile
@olov
olov / gist:eb60ab878eb73a7c5e22
Created October 15, 2014 08:55
listenandservetls_nossl30.go
// You don't want to serve HTTPS supporting for SSL3.0 any longer, see:
// http://googleonlinesecurity.blogspot.de/2014/10/this-poodle-bites-exploiting-ssl-30.html
import (
"crypto/tls"
"net/http"
)
// This code supports SSL3.0, TLS1.0, TLS1.1 and TLS1.2
// Chances are you currently do this but want to stop due to the POODLE
err := http.ListenAndServeTLS(addr, "crtfile", "keyfile", handler)
@tobstarr
tobstarr / Makefile
Created July 22, 2013 10:15
Golang SSH client
default:
@go get code.google.com/p/go.crypto/ssh
go build -o bin/test_ssh_client *.go
@isaiah
isaiah / player
Created June 3, 2013 17:33
An audio player in golang.
package main
import (
"bytes"
"code.google.com/p/portaudio-go/portaudio"
"encoding/binary"
"fmt"
"io"
"log"
"os"
@juanje
juanje / Berksfile
Last active April 10, 2017 07:27
Simplified Vagrant config for setting up a logstash server with Chef solo
cookbook 'apt'
cookbook 'monit'
cookbook 'logstash', git: 'git://github.com/lusis/chef-logstash.git'
@petterl
petterl / create_repo.sh
Created November 28, 2012 05:30
Sync of repo from bzr (lauchpad) to git (github) (manually since some commits where bad according to github)
# Create repo
mkdir eventum
cd eventum
git init
# Prepare for bzr
mkdir .git/bzr
mkdir .git/bzr/repo
mkdir .git/bzr/map
bzr init-repo --no-trees .git/bzr/repo
@rubiojr
rubiojr / pro-shell.sh
Created October 27, 2012 13:12
Unix Shell Pro-tips
# Print the config file of every package installed
for pkg in `dpkg -l|grep ii|awk '{print $2}'`;do
dpkg-query --showformat='${Conffiles}\n' --show $pkg | sed '/^$/d'
done
# dpigs - Show which installed packages occupy the most space
apt-get install debian-goodies && dpigs
@cpu
cpu / pushoverbooted.conf
Created May 2, 2012 14:21
Simple Upstart Script to send a PushOver notification when the machine boots.
#
# pushoverbooted service
#
# Sends a PushOver notification when the box has finished booting. To
# install, place this file in /etc/init/ You can test the service by
# running 'start pushoverbooted'
#
# You will need to replace TOKEN with the value you get upon following the
# registration process for a pushover application detailed at:
# https://pushover.net/api#registration
@rubiojr
rubiojr / playrepo-uploader.rb
Created November 17, 2011 18:24
Abiquo playrepo-uploader
#!/usr/bin/env ruby
#
# Needs ruby and rubygems installed
#
# Install deps first:
#
# apt-get install ruby rubygems
#
# gem install --no-ri --no-rdoc clamp curb diskid
#
@rubiojr
rubiojr / repo_feeds.txt
Created August 11, 2011 09:22
RPM Repo Feeds for Fedora/RHEL
#
# Compilation of Yum Repositories for RHEL/Fedora
#
#
# Fedora
#
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/os, f15-x86_64, fedora-15
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/i386/os, f15-i386, fedora-15
http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Fedora/source/SRPMS, f15-src, fedora-15