Skip to content

Instantly share code, notes, and snippets.

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <errno.h>
#! /bin/bash
ROOTFS_DIR="rootfs"
ROOTFS_TAR=""
METADATA_YAML="metadata.yaml"
METADATA_TAR=""
if [ -z "$METADATA_TAR" ]
then
echo "Generate METADATA_TAR"
/tmp # balena pull registry-1.docker.io/v2/debian
Using default tag: latest
Error response from daemon: pull access denied for registry-1.docker.io/v2/debian, repository does not exist or may require 'balena login'
/tmp # balena login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
@fenrig
fenrig / statem.c
Created July 19, 2017 22:03
openssl function fixed by adding print ( printtest() )
/*
* The main message flow state machine. We start in the MSG_FLOW_UNINITED or
* MSG_FLOW_RENEGOTIATE state and finish in MSG_FLOW_FINISHED. Valid states and
* transitions are as follows:
*
* MSG_FLOW_UNINITED MSG_FLOW_RENEGOTIATE
* | |
* +-----------------------+
* v
* MSG_FLOW_WRITING <---> MSG_FLOW_READING
@fenrig
fenrig / statem.c
Created July 19, 2017 20:12
statem.c
// <opensslroot>/ssl/statem/statem.c
/*
* The main message flow state machine. We start in the MSG_FLOW_UNINITED or
* MSG_FLOW_RENEGOTIATE state and finish in MSG_FLOW_FINISHED. Valid states and
* transitions are as follows:
*
* MSG_FLOW_UNINITED MSG_FLOW_RENEGOTIATE
* | |
* +-----------------------+
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
@fenrig
fenrig / npm-debug.log
Created August 28, 2016 10:00
error aur 2.10.2652-2 [wire-desktop]
This file has been truncated, but you can view the full file.
42021 silly gunzTarPerm extractEntry fp/always.js
42022 silly gunzTarPerm extractEntry fp/wrapperChain.js
42023 silly gunzTarPerm extractEntry fp/always.js
42024 silly gunzTarPerm extractEntry fp/wrapperChain.js
42025 silly gunzTarPerm extractEntry fp/always.js
42026 silly gunzTarPerm extractEntry node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/array/#/values/implement.js
42027 silly gunzTarPerm extractEntry node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/array/#/values/index.js
42028 silly gunzTarPerm extractEntry fp/wrapperLodash.js
42029 silly gunzTarPerm extractEntry fp/allPass.js
42030 silly gunzTarPerm extractEntry fp/wrapperLodash.js
#include <GL/glut.h>
#define DEBUG 1
// display globals
unsigned int height = 400, width = 400;
int xmin = -100, xmax = 100, ymin = -100, ymax = 100, nearVal = 1, farVal = 100;
// camera globals
float x = 5.0f, y = 0.0f, z = 5.0f;
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.std_logic_unsigned.all;
entity access_layer_send is
port(
clk: in std_logic;
clock_enable: in std_logic;
rst: in std_logic;
__kernel void parse_bin(__const unsigned int stap_teller, __const unsigned int num_bins, __global int *result){
unsigned int teller = 0;
unsigned int work_index = (unsigned int) get_global_id(0);
unsigned int index = (work_index << stap_teller) * num_bins;
unsigned int indexwith = index + (stap_teller * num_bins);
for(teller = 0; teller < num_bins; teller++, index++, indexwith++){
result[index] = result[index] + result[indexwith];