This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$facts['networking']['interfaces'].each() |$name, $values| { | |
$bindings = $values.filter |$key,$value| { | |
$key =~ /^bindings6?$/ | |
} | |
$bindings.each |$bindingtype,$addresses| { | |
$addresses.each |$value| { | |
notice( "${name} with ip ${value['address']}" ) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone -b 1.22 https://github.com/crosstool-ng/crosstool-ng.git | |
$ cd crosstool-ng | |
$ ./bootstrap | |
$ ./configure --prefix=/usr/local | |
$ make | |
$ sudo make install | |
$ cd .. | |
$ mkdir ctng | |
$ cd rpi1 | |
$ ct-ng menuconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copyright: © 2015 Jeffrey Clark <https://github.com/h0tw1r3/> | |
# License: GPLv3 (http://www.gnu.org/licenses/gpl-3.0.html) | |
# | |
set -o errtrace | |
error() { | |
echo "ERROR in $0 : line $1 exit code $2" | |
exit $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# Recursively change dynamic library link paths for non-system libraries | |
# to be relative to the linked program and copy them to <program>/../libs | |
# | |
# TODO: parse individual architectures (ever necessary?) | |
# modify temp lib instead of assuming path changes work | |
# | |
# Copyright: © 2015 Jeffrey Clark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur a/mlnx-en-2.3/dkms.conf b/mlnx_en-2.3/dkms.conf | |
--- a/mlnx-en-2.3/dkms.conf 2014-11-19 03:56:27.000000000 -0600 | |
+++ b/mlnx_en-2.3/dkms.conf 2015-01-06 10:52:04.171696932 -0600 | |
@@ -20,7 +20,7 @@ | |
DEST_MODULE_LOCATION[3]=/kernel/drivers/net/ethernet/mellanox/mlx4 | |
STRIP[3]=$STRIP_MODS | |
PRE_BUILD="./scripts/mlnx_en_patch.sh ${MLNX_EN_PATCH_PARAMS}" | |
-MAKE="make -j`grep ^processor /proc/cpuinfo | wc -l`" | |
+MAKE="make -j`grep ^processor /proc/cpuinfo| wc -l` EXTRA_CFLAGS+='-Wno-error=date-time' " | |
CLEAN="make clean" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \Phalcon\Db\Column as Column; | |
use \Phalcon\Db\Index as Index; | |
use \Phalcon\Db\Reference as Reference; | |
$config = new Phalcon\Config\Adapter\Ini(__DIR__ . '/../app/config/config.ini'); | |
$connection = new \Phalcon\Db\Adapter\Pdo\Sqlite(array('name' => $config->database->name)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
continue | |
dir=/var/www/downloads | |
file-allocation=falloc | |
max-connection-per-server=4 | |
max-concurrent-downloads=2 | |
max-overall-download-limit=0 | |
min-split-size=25M | |
rpc-allow-origin-all=true | |
rpc-secret=YouShouldChangeThis | |
input-file=/var/tmp/aria2c.session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/ash | |
# | |
# DNS Ad/Malware blocker for Tomato/DD-Wrt based routers | |
# | |
# Requires: DNSmasq and Pixelserv | |
# | |
# Merges block lists: | |
# * Winhelp2002 | |
# * Pgl Yoyo | |
# * Malware Domains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# You must set a domain access password in the eNom control panel. | |
# | |
ENOMURL="http://dynamic.name-services.com" | |
if [ "$METHOD" = loopback ]; then | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Device specific stuff | |
# Wandboard | |
pacman -Sy uboot-wandboard | |
pacman -Sy firmware-imx | |
pacman -Sy firmware-brcm43xx | |
curl https://raw.githubusercontent.com/Freescale/meta-fsl-arm-extra/master/recipes-bsp/broadcom-nvram-config/files/wandboard/nvram.txt \ | |
> /lib/firmware/brcmfmac-sdio.txt | |
ln -s /lib/firmware/brcmfmac4329-sdio.bin /lib/firmware/brcmfmac-sdio.bin |