Skip to content

Instantly share code, notes, and snippets.

View lastknight's full-sized avatar

Matteo Flora lastknight

View GitHub Profile
@lastknight
lastknight / clouded-bootstrap.sh
Last active March 26, 2026 13:26
clouded-bootstrap: one-curl Claude Code setup with skills
#!/usr/bin/env bash
# clouded-bootstrap.sh — Setup/migrazione Claude Code su qualsiasi macchina
# Idempotente: funziona su macchina nuova E su macchina esistente da aggiornare.
# Usage: curl -fsSL https://gist.githubusercontent.com/lastknight/f21271d761a86a5ab2b6a5f2e73256d5/raw/clouded-bootstrap.sh | bash
set -euo pipefail
# ── colori ────────────────────────────────────────────────────────────────────
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; BOLD='\033[1m'; NC='\033[0m'
log() { echo -e "${GREEN}▸${NC} $*"; }
# Il codice delle statistiche del talk "Data Driven Bullshit" di pane Web e Salame 2016
# Maggiori info qui: http://mgpf.it/2016/09/30/daradrivenbullshit2016.html
require "fb_graph2"
require "pp"
require "csv"
require "unidecoder"
FbGraph2.api_version = 'v2.7'
FbGraph2.http_config do |config|
require 'anemone'
Anemone.crawl("http://stackoverflow.com/", {:proxy_host => 'proxy.xyz.com', :proxy_port => '9999'}) do |anemone|
anemone.on_every_page do |page|
puts page.url
end
end