Skip to content

Instantly share code, notes, and snippets.

@elcuervo
elcuervo / proxmox-configure-community-repos.sh
Created April 24, 2024 02:36 — forked from burnbrian/proxmox-configure-community-repos.sh
Configured Proxmox 8.1.3 community repositories on fresh install
#!/usr/bin/env bash
# https://pve.proxmox.com/wiki/Package_Repositories
# Tested on Proxmox 8.1.3
# https://gist.github.com/ngadmini/7f9df377999cc78c1b58e361d5425ac4
# Disable commercial and ceph
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/ceph.list
# Enable community
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
# Update and upgrade

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@elcuervo
elcuervo / Wishlist.md
Last active August 29, 2015 13:57
The email client of my dreams.
  • Gmail support
  • Gmail shortcuts support
  • Markdown only support (rendered in html & plain md)
  • Task list behaviour (http://www.mailpilot.co/)
  • Zero noise.
  • Code rendering?
require 'artoo'
connection :ardrone, :adaptor => :ardrone, :port => '192.168.1.1:5556'
connection :leapmotion, :adaptor => :leapmotion, :port => '127.0.0.1:6437'
device :leapmotion, :connection => :leapmotion, :driver => :leapmotion
device :drone, :driver => :ardrone, :connection => :ardrone
class Overlord
attr_reader :drone
@elcuervo
elcuervo / dom
Created May 29, 2013 20:38
Check domain
#!/usr/bin/env ruby
# encoding: utf-8
%w(json open-uri).each { |lib| require lib }
abort "Usage: #{File.basename __FILE__} [query]" unless ARGV.first
response = open("http://domai.nr/api/json/search?q=#{ARGV.first}").read
JSON.parse(response)["results"].each do |domain|
@elcuervo
elcuervo / rand_in_range.go
Created May 28, 2013 14:30
Random int in range
package main
import(
"fmt"
"math/rand"
"time"
)
func random(min, max int) int {
rand.Seed(time.Now().Unix())
return rand.Intn(max - min) + min
@elcuervo
elcuervo / DashCat.md
Last active October 13, 2015 23:18
Suggestions and bug reports of DashCat

What is DashCat?

It's a twitter-like GitHub browser. I've made it the last weekend for me but seems to be something cool for some people.

DashCat

What is this Gist

It's a place where I can discuss stuff of the app

@elcuervo
elcuervo / benchmarks.txt
Created November 20, 2012 18:47
Minuteman usage example
# Running benchmarks:
Minuteman 1 10 100 1000 10000
bench_AND 0.000838 0.000279 0.000287 0.000319 0.000307
bench_MINUS 0.000393 0.000490 0.000513 0.000491 0.000510
bench_NOT 0.000273 0.000269 0.000320 0.000353 0.000685
bench_OR 0.000363 0.000282 0.000356 0.000330 0.000326
bench_XOR 0.000263 0.000277 0.000308 0.000306 0.000358
bench_complex_operations 0.000389 0.000507 0.000505 0.000600 0.000725
# Autoload .env files
load_env_file() {
if [ -f ".env" ]; then export $(grep -v '#' .env); fi;
}
# Load for .env files when changing dir
chpwd() { load_env_file }
@elcuervo
elcuervo / nginx.conf
Created August 10, 2012 19:33
Nginx CORS config
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'POST, OPTIONS';
add_header 'Access-Control-Max-Age' '1728000';
add_header 'Content-Type' 'text/plain; charset=UTF-8';
return 200;
}
}