Skip to content

Instantly share code, notes, and snippets.

View emberian's full-sized avatar

emberian

View GitHub Profile
@emberian
emberian / devnetstopslot.md
Created April 3, 2024 22:30 — forked from amc-ie/devnetstopslot.md
Mina Devnet 1.5.0 Stop Slot Release

❗ This release is only to be used as part of the Devnet Upgrade ❗


This release is the first phase of the Devnet upgrade that specifies the stop slot in the codebase that formally begins the process. This isthe first stage in a two stage process; the next devnet release will usher in the start of the new Devnet and as such the new era of Berkeley functionality on our Devnet!


Supported environments include macOS, Linux (Debian 10, 11 and Ubuntu 20.04 LTS), and any host machine with Docker.

@emberian
emberian / migrationrelease.md
Last active March 29, 2024 22:53 — forked from amc-ie/preupgraderelease.md
Migration Tooling Release

April Fool's! These release notes are from ChatGPT.

You might want to read the real deal.

🚀💥 O(1) Labs Team is ALL FIRED UP to Drop the LATEST Devnet Archive Migration Tools! 💥🚀

🎉 BIG NEWS, Friends! 🎉 We're thrilled to bits to unveil the shiny new gadgets you'll need for a smooth sail through the Devnet Archive Database Migration! Get ready to kick things up a notch before the Berkeley Upgrade hits Devnet. 🚀

What's Cooking? 🔥

@emberian
emberian / xfrm.py
Last active January 17, 2024 21:22 — forked from Grissess/xfrm.py
import sys
from collections import defaultdict
hosts_by_pkg = defaultdict(set)
for line in sys.stdin:
line = line.strip()
if not line:
continue
host, pkg = line.split()
use std::os;
#[allow(unused_variables)]
fn main() {
let width = 2u8;
let height = 3u8;
let size = 4u8;
let pitch = width * size;
let (mut x_offset, mut y_offset) = (0u8, 0u8);
@emberian
emberian / baz.rs
Last active January 1, 2016 19:49 — forked from klutzy/trace.rs
pub fn h(x: ||) { x() }
@emberian
emberian / main.rs
Last active December 31, 2015 22:59 — forked from smvv/main.rs
use std::run::{Process, ProcessOptions};
struct Gdb {
process: Process,
}
impl Gdb {
fn new(debuggee: ~str) -> Gdb {
let args = [~"gdb", ~"--return-child-result", ~"--quiet", ~"--nx",
@emberian
emberian / rustbot.rs
Last active December 31, 2015 20:39
use std::fmt;
use std::io::net::tcp::TcpStream;
use std::io::net::ip::{Ipv4Addr, SocketAddr};
use std::io::buffered::BufferedStream;
#[deriving(Clone)]
pub struct RustBot {
nick: ~str,
user: ~str,
stream: BufferedStream<TcpStream>,
@emberian
emberian / flist.rs
Created August 15, 2013 16:22 — forked from anonymous/flist.rs
#[deriving(Clone)]
enum List<T> {
Empty,
Cons(T, ~List<T>)
}
impl<T: Eq + Clone> List <T> {
fn map(&self, f: &fn(T)->T)->List<T>{
match *self {
Empty => Empty,
Cons(ref x, ref xs) => Cons(f(x.clone()),~xs.map(f))
@emberian
emberian / bf.rs
Last active December 20, 2015 21:08 — forked from tiffany352/bf.rs
use std::uint;
use std::io;
use std::str;
enum Token {
Add,
Sub,
Inc,
Dec,
Out,
use std::os;
enum Token {
Add,
Sub,
Mul,
Div,
Mod,
Func {name: ~str, args: ~[~str]},
Num (int),