Skip to content

Instantly share code, notes, and snippets.

View rgilton's full-sized avatar

Rob Gilton rgilton

  • Adventurous Machines Ltd
  • UK
View GitHub Profile
@rgilton
rgilton / uvs
Last active April 26, 2024 12:17
uvs: A stand-in for the yet-to-exist `uv shell` command
#!/usr/bin/env python3
#
# uvs: A stand-in for the yet-to-exist `uv shell` subcommand
#
# Copyright 2024 Rob Gilton
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
-*- mode: compilation; default-directory: "~/proj/rust/beep/src/" -*-
Compilation started at Wed Jan 2 13:07:48
cargo rustc --bin beep --message-format\=json -- --test
Compiling beep v0.1.0 (/home/rob/proj/rust/beep)
{"reason":"compiler-message","package_id":"beep 0.1.0 (path+file:///home/rob/proj/rust/beep)","target":{"kind":["bin"],"crate_types":["bin"],"name":"beep","src_path":"/home/rob/proj/rust/beep/src/main.rs","edition":"2018"},"message":{"message":"variable `x` is assigned to, but never used","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"src/main.rs","byte_start":21,"byte_end":22,"line_start":3,"line_end":3,"column_start":9,"column_end":10,"is_primary":true,"text":[{"text":" let x = 1;","highlight_start":9,"highlight_end":10}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"#[warn(unused_variables)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":
0
### Keybase proof
I hereby claim:
* I am rgilton on github.
* I am rspanton (https://keybase.io/rspanton) on keybase.
* I have a public key whose fingerprint is BC1D 6A38 EBCE 925F A9FD 3EE5 B9C9 5EEC 5E33 176E
To claim this, I am signing this object:
[rob@zarniwoop tmp(master)]$ gdb ./test
GNU gdb (GDB) Fedora 7.10.1-31.fc23
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
### Keybase proof
I hereby claim:
* I am rspanton on github.
* I am rspanton (https://keybase.io/rspanton) on keybase.
* I have a public key whose fingerprint is BC1D 6A38 EBCE 925F A9FD 3EE5 B9C9 5EEC 5E33 176E
To claim this, I am signing this object:
-bash-4.2$ ab -c 10 -n 10000 https://www.studentrobotics.org/comp-api/config
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.studentrobotics.org (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
ab -c 400 -n 10000 https://www.studentrobotics.org/comp-api/config
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.studentrobotics.org (be patient)
Completed 1000 requests
SSL handshake failed (5).
SSL handshake failed (5).
Completed 2000 requests
Server Software: Apache/2.4.10
Server Hostname: www.studentrobotics.org
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Document Path: /comp-api/matches
Document Length: 142001 bytes
Concurrency Level: 400
Time taken for tests: 20.131 seconds
Server Software: Apache/2.4.10
Server Hostname: www.studentrobotics.org
Server Port: 443
SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES256-GCM-SHA384,2048,256
Document Path: /comp-api/config
Document Length: 282 bytes
Concurrency Level: 400
Time taken for tests: 62.305 seconds