Skip to content

Instantly share code, notes, and snippets.

View rhysparry's full-sized avatar

Rhys Parry rhysparry

View GitHub Profile
@rhysparry
rhysparry / docker-compose.yml
Created October 23, 2024 23:25
Jaeger all-in-one with SPM
services:
otel_collector:
image: otel/opentelemetry-collector-contrib:0.111.0
volumes:
- "./otel-collector-config.yml:/etc/otelcol/otel-collector-config.yml"
command:
- "--config"
- /etc/otelcol/otel-collector-config.yml
ports:
- "8889:8889"
" Disable things we don't need
noremap <left> <nop>
noremap <right> <nop>
noremap <up> <nop>
noremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>

Keybase proof

I hereby claim:

  • I am rhysparry on github.
  • I am rhysparry (https://keybase.io/rhysparry) on keybase.
  • I have a public key whose fingerprint is 7A9B A00C D982 624C F726 5956 BD00 CD1E BC49 7CFD

To claim this, I am signing this object:

@rhysparry
rhysparry / Paste.cs
Created September 4, 2012 00:25
Pastes the clipboard contents to standard out
namespace ConsolePaste
{
using System;
using System.Linq;
using System.Threading;
using System.Windows.Forms;
public class Paste
{
[STAThread]
@rhysparry
rhysparry / Get-TotalPrivateBytes.ps1
Created January 25, 2012 21:31
Gets the total memory usage of a process or set of processes
function Get-TotalPrivateBytes($Name)
{
Get-Process $Name | Measure-Object -Sum -Maximum -Minimum -Average PrivateMemorySize64
}
@rhysparry
rhysparry / GetMoreMemoryThanVisualStudio.ps1
Created January 25, 2012 00:03
Processes using more memory than Visual Studio
function Get-MoreMemoryThanVisualStudio()
{
$d = (Get-Process devenv | Measure-Object -Sum PrivateMemorySize64);
Get-Process | Where-Object {$_.PrivateMemorySize64 -gt $d.Sum}
}