Skip to content

Instantly share code, notes, and snippets.

@severo
severo / set_gated.py
Created August 12, 2022 16:00
A function to set the gated parameter on a HF repository
from huggingface_hub.hf_api import ( # type: ignore
REPO_TYPES,
REPO_TYPES_URL_PREFIXES,
HfApi,
_raise_for_status,
)
def update_repo_settings(
hf_api: HfApi,
repo_id: str,
@severo
severo / thumbnail.png
Last active January 8, 2020 19:29
Test image upload
TEST
@severo
severo / .block
Created January 7, 2020 18:18
fresh block
license: mit
@severo
severo / README.md
Last active October 30, 2019 08:53
Observable

Observable

We can't make this file beautiful and searchable because it's too large.
"ibge_code","substance_code","is_detected","is_quantized","value","date"
"330590","10",TRUE,TRUE,0.1,"20140416"
"330590","12",TRUE,TRUE,0.1,"20140416"
"521980","11",FALSE,TRUE,0,"20140416"
"354150","20",TRUE,FALSE,NA,"20140402"
"352180","02",FALSE,TRUE,0,"20140531"
"350310","02",FALSE,TRUE,0,"20140531"
"351840","21",TRUE,FALSE,NA,"20140521"
"351840","02",TRUE,FALSE,NA,"20140521"
"330590","14",TRUE,TRUE,5,"20140416"
We can't make this file beautiful and searchable because it's too large.
"ibge_code","substance_code","value"
"330590","10",0.1
"330590","12",0.1
"521980","11",0
"354150","20",NA
"352180","02",0
"350310","02",0
"351840","21",NA
"351840","02",NA
"330590","14",5
{
"log": {
"version": "1.1",
"creator": {
"name": "Firefox",
"version": "65.0"
},
"browser": {
"name": "Firefox",
"version": "65.0"

# Diagnostic sonde Atlas Bolivie

Les ping depuis la sonde Atlas 23967 (https://atlas.ripe.net/probes/23967/) avec des longs paquets n'arrivent pas. On regarde une route, par exemple ver mamot.fr, depuis un ordinateur situé dans le même réseau local que la sonde (chez moi) :

$ traceroute -A mamot.fr
traceroute to mamot.fr (185.34.33.7), 30 hops max, 60 byte packets
 1  192.168.1.1 (192.168.1.1) [*]  4.432 ms  6.156 ms  8.457 ms
 2  192.168.101.101 (192.168.101.101) [*]  10.667 ms  23.265 ms  25.142 ms
 3  190.129.248.130 (190.129.248.130) [AS6568]  25.137 ms  25.130 ms  28.985 ms
@severo
severo / traceroute_bolivia_onlinenet.md
Last active August 30, 2017 16:47
Traceroute depuis l'AS 6568 (Entel - Bolivie) jusqu'à une IP de Online.net
$ sudo traceroute -I -A 212.83.181.142 15000
traceroute to 212.83.181.142 (212.83.181.142), 30 hops max, 15000 byte packets
 1  gateway (192.168.1.15) [*]  2.074 ms  3.287 ms  4.522 ms
 2  190.129.176.193 (190.129.176.193) [AS6568]  6.394 ms  7.783 ms  8.900 ms
 3  172.17.19.97 (172.17.19.97) [*]  31.049 ms  166.158 ms  300.613 ms
 4  190.129.251.49 (190.129.251.49) [AS6568]  435.664 ms  570.159 ms  705.160 ms
 5  te0-0-0-0.lpzcrs02.entelnet.bo (200.87.253.93) [AS6568]  840.272 ms  976.247 ms  1112.276 ms
 6  190.129.250.82 (190.129.250.82) [AS6568]  1243.978 ms  22.519 ms  27.759 ms
 7  84.16.9.116 (84.16.9.116) [AS12956]  209.046 ms  333.962 ms  468.386 ms

Keybase proof

I hereby claim:

  • I am severo on github.
  • I am severo (https://keybase.io/severo) on keybase.
  • I have a public key whose fingerprint is E6F2 0619 05B1 65FC CBAA DE94 B25F D122 2596 C92F

To claim this, I am signing this object: