Skip to content

Instantly share code, notes, and snippets.

View TheButlah's full-sized avatar
🦀
Oxidize everything

Ryan Butler TheButlah

🦀
Oxidize everything
View GitHub Profile
#include <unistd.h>
#include <stdio.h>
extern char** environ;
int main() {
printf("(%d->%d):(%d->%d)\n", getuid(), geteuid(), getgid(), getegid());
setuid(geteuid());
setgid(getegid());
printf("(%d->%d):(%d->%d)\n", getuid(), geteuid(), getgid(), getegid());
@TheButlah
TheButlah / config.py
Last active November 26, 2018 22:45
Config File for PtPython
"""
Configuration for ``ptpython``.
Copy this file to ~/.ptpython/config.py
"""
from __future__ import unicode_literals
from ptpython.layout import CompletionVisualisation
__all__ = (
@TheButlah
TheButlah / config
Created November 26, 2018 22:48
SSH config
Host gpu1
HostName gpu-server-1.cds.engineering.cornell.edu
User ryan
Host gpu1 master slave-1 slave-2 slave-3
User hduser1
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
[tool.poetry]
authors = ["Ryan Butler <[email protected]>"]
description = ""
name = "robotics"
version = "0.1.0"
[tool.poetry.dependencies]
mujoco-py = { git = "https://github.com/adipandas/mujoco-py" }
open3d = "0.10.0"
python = "^3.6"
scipy = "^1.3"
checkpoint loaded
WARNING:tensorflow:From /opt/chatbot/main.py:24: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
[2021-04-27 07:27:48,434] DEBUG in main: Received request with text: Hey
2021-04-27 07:28:59.898336: E tensorflow/stream_executor/cuda/cuda_blas.cc:428] failed to run cuBLAS routine: CUBLAS_STATUS_EXECUTION_FAILED
2021-04-27 07:28:59.898614: E tensorflow/stream_executor/cuda/cuda_blas.cc:2301] Internal: failed BLAS call, see log for details
172.17.0.1 - - [27/Apr/2021 07:28:59] "POST /generate HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call
return fn(*args)
Current flatbuffers version: v22.10.26
Currently in rust, flatbuffers exposes two APIs for constructing a table:
```rust
let t1 = MyTable::create(&mut fbb, &MyTableArgs{ field1: None, field2: Some(10) };
let t2 = MyTableBuilder::new(&mut fbb)
.add_field2(10)
.finish();
//! Warning! This code is probably overcomplicated. I'm questioning if specifically the size
//! tests are worth the complexity. I decided "yes" because its generic enough that it can
//! be turned into a library and used throughout the codebase anywhere where ffi-safe closures
//! must be used.
//!
//! There are two main sections:
//! - The [`make_ffi_fn`] and [`ffi_fn`] functions
//! - Compile-time checks to make sure that trait object vtables are not being sliced off when we
//! cast to a pointer.
//!
@TheButlah
TheButlah / Nexus protocol.md
Last active August 12, 2023 00:42
Nexus protocol

Nexus Protocol

An open source federated social network protocol specifically for video games.

We believe that this social protocol is the first step to enable a new generation of Social VR games, with many clients (godot, bevy, unity) all able to talk to each other, and users able to hop from game to game while bringing their friends and data with them.

It was inspired by [ActivityPub] (what mastodon uses) and [Matrix], but greatly simplified. It was also designed so that users have privacy and most importantly, the ability to change