Skip to content

Instantly share code, notes, and snippets.

puterr: '\0' 0
puterr: '\u{1}' 1
puterr: '\u{2}' 2
puterr: '\u{3}' 3
puterr: '\u{4}' 4
puterr: '\u{5}' 5
puterr: '\u{6}' 6
puterr: '\u{7}' 7
puterr: '\u{8}' 8
puterr: '\t' 9
@computermouth
computermouth / ok
Last active September 15, 2022 13:35
2022-09-15T06:35:05-07:00
struct Mytype {
a: isize,
}
fn inc_mytype(m: Mytype) -> isize {
m.a + 1
}
fn inc_isize(i: isize) -> isize {
PC - 192.168.0.11 Handheld - 192.168.172.11
┌──────────────────────────────────┐ ┌─────────────────────────────────┐
│ Browser: crunchi.com/somegame │ │ Device: golang server │
│ ┌──────────────────────────────┐ │ │ │
│ │ │ │ │ ┌────────────────────────────┐ │
│ │SOMEGAME! │ │ │ │ /games │ │
│ │ │ │ USB(eth0) │ │ /games/new │ │
│ │like doom, │ │ │ │ /games/[id]/status │ │
│ │but not. ┌──────────────┐ │ ├─────────────────► │ │ │ │
@computermouth
computermouth / sleepandready.c
Created April 20, 2022 18:48
Simple systemd sample of notifying systemd when the daemon is truly "active", with included units in comments
#include <systemd/sd-daemon.h>
#include <time.h>
int main(){
nanosleep(&(struct timespec){.tv_sec = 10}, NULL);
sd_notify(1, "READY=1");
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
typedef enum {
NO_STATE,
INTRO,
CLOSE,
END_STATE
use std::env;
use std::process;
use rand;
#[derive(Debug)]
struct Bullet {
x: isize,
y: isize,
vx: isize,
vy: isize
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int x;
int y;
int vx;
int vy;
} Bullet;
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
)
func main() {
---
AWSTemplateFormatVersion: 2010-09-09
Description: >
Sample ECS Service
Parameters:
Tier:
Description: Git repository to retrieve source from