Skip to content

Instantly share code, notes, and snippets.

View paolobarbolini's full-sized avatar
🦀
Update dependecies and support IPv6

Paolo Barbolini paolobarbolini

🦀
Update dependecies and support IPv6
View GitHub Profile
@paolobarbolini
paolobarbolini / crates.tsv
Last active April 17, 2024 11:06
crates.io top 20k crates by recent download count as of ~2024-04-17 10:50 UTC - results sorted by popularity
syn 2.0.59
bitflags 2.5.0
hashbrown 0.14.3
regex-syntax 0.8.3
proc-macro2 1.0.81
indexmap 2.2.6
base64 0.22.0
regex-automata 0.4.6
libc 0.2.153
quote 1.0.36
@paolobarbolini
paolobarbolini / repos.txt
Created March 31, 2024 17:16
Archived repositories from https://gist.github.com/paolobarbolini/39d71835218eff19637f8c1ab47b705b - scraped from the GitHub API in the course of 3 hours
https://github.com/abonander/buf_redux
https://github.com/abonander/multipart
https://github.com/abonander/safemem
https://github.com/arkworks-rs/curves
https://github.com/bbqsrc/mio-named-pipes
https://github.com/BurntSushi/regex-automata
https://github.com/bytecodealliance/regalloc.rs
https://github.com/ctz/ct-logs
https://github.com/cybergeek94/const-cstr
https://github.com/docopt/docopt.rs
@paolobarbolini
paolobarbolini / repos.txt
Created March 31, 2024 15:28
Repositories from the top 5k crates by recent downloads (some may be missing)
https://bitbucket.org/marshallpierce/line-wrap-rs/src
https://codeberg.org/jssfr/rxml
https://codeberg.org/valpackett/devd-rs
https://codeberg.org/xfix/array-macro
https://codeberg.org/xfix/enum-map
https://fuchsia.googlesource.com/garnet/
https://github.com/01mf02/hifijson.git
https://github.com/06chaynes/http-cache.git
https://github.com/10xGenomics/lz4-rs.git
https://github.com/1aim/rust-regex-cache.git
@paolobarbolini
paolobarbolini / crates.csv
Last active April 7, 2024 09:25
Notes taken while analyzing the crates.io scraping results for the top 5000 crates by recent downloads
crate notes
inflections Unmaintaned. No apparent repository. May be replaced by heck
str_inflector Same as inflections
convert_case Passively maintained. May be replaced by heck
simple-mutex Repository apparently deleted
varint-rs Repository apparently deleted
json-pointer Broken repository link. Found repository https://github.com/remexre/json-pointer but it doesn't contain the latest releases
osmesa-sys Repository apparently deleted
repng Repository apparently deleted
retain_mut Deprecated - The API is now available in the std
@paolobarbolini
paolobarbolini / .gitlab-ci.yml
Created November 12, 2023 17:27
Gitlab CI example for MultiArch images
image: docker:latest
variables:
DOCKER_BUILDKIT: 1
services:
- docker:dind
build:
before_script:
@paolobarbolini
paolobarbolini / README.md
Last active August 25, 2023 02:42
Top crates by crates.io reverse dependencies count

Top crates by crates.io reverse dependencies count

As of the database dump from 2023-08-12-020056.

File on GitHub Gist truncated to 2000 to make file rendering smoother.

Exported with query
CREATE MATERIALIZED VIEW all_versions AS (
@paolobarbolini
paolobarbolini / explain.txt
Last active August 2, 2023 05:52
crates.io `serde` reverse dependencies query EXPLAIN ANALYZE output
Limit (cost=513870.08..534308.54 rows=10 width=99) (actual time=10808.569..12615.884 rows=10 loops=1)
-> Unique (cost=513870.08..3444730.43 rows=1434 width=99) (actual time=10808.566..12615.851 rows=10 loops=1)
-> Nested Loop (cost=513870.08..3444723.26 rows=1434 width=99) (actual time=10808.562..12615.801 rows=13 loops=1)
Join Filter: (versions.crate_id = crates.id)
Rows Removed by Join Filter: 887880
-> Index Scan using idx3 on crates (cost=0.42..54507.51 rows=121264 width=20) (actual time=0.031..0.344 rows=31 loops=1)
-> Materialize (cost=513869.66..781830.70 rows=1434 width=83) (actual time=261.982..373.001 rows=28642 loops=31)
-> Nested Loop (cost=513869.66..781823.53 rows=1434 width=83) (actual time=8121.412..10487.713 rows=29474 loops=1)
-> Subquery Scan on versions (cost=513869.23..740005.96 rows=4002 width=8) (actual time=8121.369..10121.764 rows=29753 loops=1)
@paolobarbolini
paolobarbolini / crates.sh
Last active May 14, 2022 06:30
An experiment at an idea of checking crates.io releases against the files on the corresponding git revision
#!/bin/bash
# An experiment at an idea of checking crates.io releases against the files
# on the corresponding git revision (and in the future maybe even complaining
# if there's no tag associated to it, or giving you a diff since the last release IDK)
#
# Depends on curl, jq, tar and diff
#
# I'm not very good at bash, so you'll have to excuse the mess :)
# Still very useless, as it doesn't handle workspaces
@paolobarbolini
paolobarbolini / webcam.sh
Last active April 28, 2023 13:40
My Logitech C920 configuration via v4l2-ctl
# v4l2-ctl -d /dev/video2 --list-ctrls-menus
v4l2-ctl -d /dev/video2 --set-ctrl=sharpness=140
v4l2-ctl -d /dev/video2 --set-ctrl=focus_auto=0
v4l2-ctl -d /dev/video2 --set-ctrl=focus_absolute=10
v4l2-ctl -d /dev/video2 --set-ctrl=power_line_frequency=1
v4l2-ctl -d /dev/video2 --set-ctrl=exposure_auto=1
v4l2-ctl -d /dev/video2 --set-ctrl=exposure_absolute=550
v4l2-ctl -d /dev/video2 --set-ctrl=contrast=130
v4l2-ctl -d /dev/video2 --set-ctrl=saturation=120
v4l2-ctl -d /dev/video2 --set-ctrl=white_balance_temperature_auto=0
@paolobarbolini
paolobarbolini / paolo565.org.conf
Created September 7, 2017 18:52
Nginx configuration for www.paolo565.org
# WARNING: This is the nginx configuration i use for https://www.paolo565.org
# You may have to do some tweaking to make it work for you
# Take a look at this post if you want to know more about my configuration
# https://www.paolo565.org/blog/creating-my-blog/
# How i generate my certificate using certbot
# certbot certonly --webroot -w /var/www/ssl-challenge/ -d paolo565.org,www.paolo565.org --must-staple
# Things i put inside the http block
# server_tokens off;