- Olivier, Maxime
- House
- Timecode (vinyle)
- Lien (111 MB)
- Maxime
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 |
import argparse | |
import requests | |
def generatetoken(clientid, clientsecret, organization=None, validity=None): | |
params = { | |
'grant_type': 'client_credentials', | |
'client_id': clientid, | |
'client_secret': clientsecret, | |
'response_type': 'id_token', | |
'scope': 'offline_access' |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <linux/reboot.h> | |
#include <sys/reboot.h> | |
#include <sys/syscall.h> | |
#include <linux/kexec.h> | |
#include <sys/types.h> |
#!/bin/bash | |
set -ex | |
# make output directory | |
ARCHIVE=/tmp/archives | |
FLIST=/tmp/flist | |
mkdir -p $ARCHIVE | |
# install system deps | |
apt-get update |