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:
| #!/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 |
I hereby claim:
To claim this, I am signing this object:
| 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 |
| #!/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| |
| package main | |
| import( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| func random(min, max int) int { | |
| rand.Seed(time.Now().Unix()) | |
| return rand.Intn(max - min) + min |
| # 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 } |
| 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; | |
| } | |
| } |