Skip to content

Instantly share code, notes, and snippets.

@fenrig
fenrig / common_kernel.h
Created March 19, 2015 17:27
Histogram
#define COEFFICIENT 64
@fenrig
fenrig / up_down_counter.vhd
Created March 9, 2015 20:22
up down counter prob
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.std_logic_unsigned.all;
entity up_down_counter is
port(
clk: in std_logic;
clock_enable: in std_logic;
rst: in std_logic;
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
use IEEE.std_logic_unsigned.all;
entity pn_generator is
port(
clk: in std_logic;
clock_enable: in std_logic;
rst: in std_logic;
@fenrig
fenrig / wandboard.h
Created February 3, 2014 12:01
<uboot>/include/configs/
/*
* Copyright (C) 2012 Freescale Semiconductor, Inc.
*
* Configuration settings for the MX6Solo SABRE-AI Freescale board.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
@fenrig
fenrig / log
Created October 18, 2013 09:01
systemctl status postfix -l
Oct 18 04:47:58 linuxWEBSERVICES postfix/smtpd[1127]: >>> CHECKING RECIPIENT MAPS <<<
Oct 18 04:47:58 linuxWEBSERVICES postfix/smtpd[1127]: ctable_locate: leave existing entry key fenrig@lin.fen_domain.be
Oct 18 04:47:58 linuxWEBSERVICES postfix/smtpd[1127]: NOQUEUE: reject: RCPT from lin.fen_domain.be[127.0.0.1]: 451 4.3.0 <fenrig@lin.fen_domain.be>: Temporary lookup failure; from=<test@testmail.org> to=<fenrig@lin.fen_domain.be> proto=ESMTP helo=<testmail.org>
Oct 18 04:47:58 linuxWEBSERVICES postfix/smtpd[1127]: > lin.fen_domain.be[127.0.0.1]: 451 4.3.0 <fenrig@lin.fen_domain.be>: Temporary lookup failure
Oct 18 04:47:58 linuxWEBSERVICES postfix/smtpd[1127]: watchdog_pat: 0x1e85050
Oct 18 04:48:04 linuxWEBSERVICES postfix/smtpd[1127]: < lin.fen_domain.be[127.0.0.1]: quit
Oct 18 04:48:04 linuxWEBSERVICES postfix/smtpd[1127]: > lin.fen_domain.be[127.0.0.1]: 221 2.0.0 Bye
Oct 18 04:48:04 linuxWEBSERVICES postfix/smtpd[1127]: match_hostname: lin.fen_domain.be ~? 127.0.0.0/8
Oct 18 04:48:04 linuxWEBSERVICES pos
@fenrig
fenrig / gist:7033445
Created October 17, 2013 22:29
postconf -n
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/bin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_interfaces = all
@fenrig
fenrig / dnsmasq.conf
Created October 2, 2013 09:30
dnsmasq.conf
interface=enp5s0
bind-interfaces
dhcp-range=192.168.111.50,192.168.111.100,12h
DEBUG: Executing shell function do_rootfs
Downloading file:/mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/../../deploy/eglibc/ipk/Packages.
Updated list of available packages in /mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/raspberrypi-angstrom-linux-gnueabi/robby-rp5/1.0-2/rootfs//var/lib/opkg/lists/oe.
Downloading file:/mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/../../deploy/eglibc/ipk/all/Packages.
Updated list of available packages in /mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/raspberrypi-angstrom-linux-gnueabi/robby-rp5/1.0-2/rootfs//var/lib/opkg/lists/oe-all.
Downloading file:/mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/../../deploy/eglibc/ipk/armv6-vfp/Packages.
Updated list of available packages in /mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/work/raspberrypi-angstrom-linux-gnueabi/robby-rp5/1.0-2/rootfs//var/lib/opkg/lists/oe-armv6-vfp.
Downloading file:/mnt/hdd/setup-scripts/build/tmp-angstrom_v2013_06-eglibc/../
@fenrig
fenrig / qmake
Created September 10, 2013 13:31
Segmentatiefout (geheugendump gemaakt)
@fenrig
fenrig / strace
Created September 10, 2013 02:34
execve("/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/qmake", ["/usr/local/oecore-i686/sysroots/"...], [/* 52 vars */]) = 0
[ Process PID=2416 runs in 32 bit mode. ]
brk(0) = 0x9879000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff77b4000
readlink("/proc/self/exe", "/usr/local/oecore-i686/sysroots/"..., 4096) = 69
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/../../usr/lib/tls/i686/sse2/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/../../usr/lib/tls/i686/sse2", 0xffb852f0) = -1 ENOENT (No such file or directory)
open("/usr/local/oecore-i686/sysroots/i686-angstromsdk-linux/usr/bin/../../usr/lib/tls/i686/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat64("/usr/local/oecore-i686/sysroots/i