Skip to content

Instantly share code, notes, and snippets.

View bpmooch's full-sized avatar
🫥
crafting

Chris Mucciolo bpmooch

🫥
crafting
View GitHub Profile
@bpmooch
bpmooch / models.md
Last active April 30, 2023 22:52
Detecting Bugs in C++ Code

Detecting Bugs in C++ Code

These are interesting but ultimately throwaway numbers. However, I think benchmarks like these suggest that the value provided by giving your data to openai can outweigh the costs. Prompt engineering provides an avenue to prevent leaking sensitive data into the system while still creating value with openai projects

llm model false alarms detections
#!/bin/bash
# only run as root
if [ "$EUID" -ne 0 ] ; then
echo "Please run as root"
exit
fi
HOME="/home/$SUDO_USER"
# only run if .bashrc exists
@bpmooch
bpmooch / ssh-github.sh
Created June 4, 2020 02:05
create rsa ssh key and copy the key pub to your clipboard
#!/bin/bash
# generate key
ssh-keygen -t rsa -b 4096 -C "[email protected]" -f "$HOME/.ssh/id_rsa" -P "" -q
# start ssh agent
RESULT=$(eval "$(ssh-agent -s)")
echo $RESULT
# add key to ssh-agent
@bpmooch
bpmooch / keybase.md
Created April 23, 2019 19:39
keybase verification

Keybase proof

I hereby claim:

  • I am chrism00ch on github.
  • I am chrismooch (https://keybase.io/chrismooch) on keybase.
  • I have a public key ASDYPW6sRk7NWjJeY_wHsg5kxgucKCl0U86cISJuChk_1Ao

To claim this, I am signing this object:

@bpmooch
bpmooch / NvmlWrapper.cs
Created December 12, 2018 20:29
Thin NVML Wrapper for C#
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace NvmlWrapper
{
/// <summary>
/// Nvml return codes
/// </summary>
public enum nvmlReturn_t
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace yeeticus
{