Skip to content

Instantly share code, notes, and snippets.

View bullekeup's full-sized avatar

Axel bullekeup

  • @codium-electronics
View GitHub Profile
@bullekeup
bullekeup / install-dce-linux-1.9-ns-3.26
Last active May 17, 2018 08:41
NS3 version 3.26 with dce linux 1.9 installation script sample (to be used with relevant patches, see https://gist.github.com/bullekeup)
#!/bin/bash
[[ -e bakefile.xml ]] && rm bakefile.xml
[[ -e ./build ]] && rm -Rf ./build
bake.py configure -e dce-linux-1.9 -e netanim-3.107 -e nsc-0.5.3 -e pyviz-prerequisites \
-e click-ns-3.25 -e openflow-ns-3.25 -e gccxml-ns3 -e gawk -e wget \
-e iproute-2.6.38 -e iperf -e pybindgen-0.17.0.post57+nga6376f2 \
-e BRITE -e libaspect -e openflow-dev
@bullekeup
bullekeup / rpi-backup-system
Last active May 23, 2017 17:16
Archlinux on RPi filesystem backup script
#!/bin/bash
function usage() {
cat << EOF
- rpi-backup-system
-
- This shell script backups a complete system to a tarball from device passed as first parameter
-
- Parameters
@bullekeup
bullekeup / rpi-install-system
Last active May 23, 2017 17:15
Installation script for Archlinux rootfs image on RPi
#!/bin/bash
ROOT_USB=0
function usage() {
cat << EOF
- rpi-install-system
-
- This shell script installs a complete system from a tarball on device passed as first parameter
@bullekeup
bullekeup / bake-ubuntu-16-4.patch
Last active May 20, 2018 13:08
NS3 bakeconf.xml patch for Ubuntu 16.04 & 17.04 - Compile with DCE enabled - see https://github.com/direct-code-execution/ns-3-dce/pull/43
--- a/bakeconf.xml 2018-01-21 12:46:46.001299921 +0100
+++ b/bakeconf.xml 2018-01-21 13:08:03.477772719 +0100
@@ -168,8 +168,8 @@
<module name="ccnx">
<source type="archive">
- <attribute name="url" value="http://www.ccnx.org/releases/ccnx-0.6.2.tar.gz"/>
- <attribute name="extract_directory" value="ccnx-0.6.2"/>
+ <attribute name="url" value="https://github.com/ProjectCCNx/ccnx/archive/ccnx-0.8.2.tar.gz"/>
+ <attribute name="extract_directory" value="ccnx-ccnx-0.8.2"/>
--- a/extract-system-config.py 2018-01-21 12:48:11.678331236 +0100
+++ b/extract-system-config.py 2018-01-16 17:44:18.338270636 +0100
@@ -71,9 +71,9 @@
def find_by_name (self, type, name):
item = self.read_one ()
while item is not None:
- if item.type == type and \
+ if item.type.strip() == type and \
item.attributes.has_key ('DW_AT_name') and \
- item.attributes['DW_AT_name'] == name: