- Olivier, Maxime
- House
- Timecode (vinyle)
- Lien (111 MB)
- Maxime
| #!/bin/ash | |
| if [ -f /etc/ssh/ssh_host_rsa_key ]; then | |
| # nothing to do, hackish way | |
| sleep 10 | |
| exit 0 | |
| fi | |
| echo "Setting up sshd" | |
| mkdir -p /run/sshd |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "fmt" | |
| "io" | |
| "sync" | |
| // "github.com/threefoldtech/zos/pkg" |
| import json | |
| import random | |
| import string | |
| import urllib.parse | |
| import pprint | |
| import requests | |
| import nacl.public | |
| import nacl.signing | |
| import base64 | |
| from flask import Flask, request, redirect |
Coucou Je suis du markdown
Ouais trop cool ?
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define discard __attribute__((cleanup(__cleanup_free))) | |
| void __cleanup_free(void *p) { | |
| free(* (void **) p); | |
| } |
| laptix /home/maxux/git/coreX # ls /tmp/new-root/ | |
| helloworld init | |
| laptix /home/maxux/git/coreX # ./poc | |
| PID: 17504 | |
| Parent: waiting... | |
| Executing init | |
| CHILD PID: 1 | |
| ---- | |
| init |
| import requests | |
| import redis | |
| import time | |
| import json | |
| RTINFO_ENDPOINT = "http://clea.maxux.net:8089/json" | |
| # This class is in another file for reusability | |
| class DashboardSlave(): | |
| def __init__(self, name): |
| #include "w5100.h" | |
| #define PIN_RED 3 | |
| #define PIN_GREEN 5 | |
| #define PIN_BLUE 6 | |
| byte macaddr[] = {0xa2, 0x43, 0x42, 0x42, 0x42, 0x01}; | |
| Wiznet5100 w5100; | |
| uint8_t buffer[512] |
| [ 0.000000] Booting Linux on physical CPU 0x0 | |
| [ 0.000000] Linux version 4.14.79-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1159 SMP Sun Nov 4 17:50:20 GMT 2018 | |
| [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d | |
| [ 0.000000] CPU: div instructions available: patching division code | |
| [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
| [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2 | |
| [ 0.000000] Memory policy: Data cache writealloc | |
| [ 0.000000] cma: Reserved 8 MiB at 0x3ac00000 | |
| [ 0.000000] On node 0 totalpages: 242688 | |
| [ 0.000000] free_area_init_node: node 0, pgdat 80c85280, node_mem_map ba39f000 |