Skip to content

Instantly share code, notes, and snippets.

Jim P jim-p

Block or report user

Report or block jim-p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4204901
Something went wrong, check errors!
Log saved on /usr/obj./usr/home/pfsense/freesbie2/.tmp_buildkernel
mfi.o(.text+0x5480): In function `mfi_attach':
: undefined reference to `mfi_tbolt_alloc_cmd'
mfi.o(.text+0x54a8): In function `mfi_attach':
: undefined reference to `mfi_intr_tbolt'
mfi.o(.text+0x5716): In function `mfi_attach':
: undefined reference to `mfi_intr_tbolt'
mfi.o(.text+0x593c): In function `mfi_attach':
: undefined reference to `mfi_tbolt_sync_map_info'
View gist:4659354
vlanmtu, vlanhwtag, vlanhwfilter, vlanhwcsum, vlanhwtso
If the driver offers user-configurable VLAN support, enable
reception of extended frames, tag processing in hardware, frame
filtering in hardware, checksum offloading, or TSO on VLAN,
respectively. Note that this must be issued on a physical inter-
face associated with vlan(4), not on a vlan(4) interface itself.
-vlanmtu, -vlanhwtag, -vlanhwfilter, -vlanhwtso
If the driver offers user-configurable VLAN support, disable
reception of extended frames, tag processing in hardware, frame
@jim-p
jim-p / gist:5579101
Created May 14, 2013
change to ufsid format. Should be scriptable.
View gist:5579101
: cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1b none swap sw 0 0
: dumpfs /dev/ad0s1a | head -n 2 | tail -n 1 | cut -f2 -d'[' | cut -f1 -d ']' | sed -e 's/[[:blank:]]//g'
51928c99a471c440
: swapoff -a
: glabel label swap /dev/ad0s1b
@jim-p
jim-p / gist:5984177
Created Jul 12, 2013
safe mode tweaks
View gist:5984177
dup bootsafekey @ = if
s" arch-i386" environment? if
drop
s" acpi_load" unsetenv
s" 1" s" hint.acpi.0.disabled" setenv
s" 1" s" loader.acpi_disabled_by_user" setenv
s" 1" s" hint.apic.0.disabled" setenv
then
s" 0" s" hw.ata.ata_dma" setenv
s" 0" s" hw.ata.atapi_dma" setenv
View gist:6057410
diff --git a/scripts/build/build_installer_packages.sh b/scripts/build/build_installer_packages.sh
index 1bb3555..e403ab5 100755
--- a/scripts/build/build_installer_packages.sh
+++ b/scripts/build/build_installer_packages.sh
@@ -65,7 +65,7 @@ rebuild_port()
make makesum && \
make patch && \
chmod -R 777 work && \
- make $WITH_NLS_DEF $WITH_CURSES_DEF $WITH_CGI_DEF $WITH_QT_DEF \
+ make options_UNSET="${options_UNSET}" options_SET="${options_SET}" $WITH_NLS_DEF $WITH_CURSES_DEF $WITH_CGI_DEF $WITH_QT_DEF \
View gist:6453942
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index cfea703..889ff83 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -34,6 +34,7 @@
*/
+global $g;
$g = array(
View gist:7788826
dnsmasq: started, version 2.66 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-DBus i18n IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset auth
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 8.8.8.8#53
dnsmasq: using nameserver 8.8.4.4#53
dnsmasq: using nameserver 192.168.130.1#53
/usr/local/lib/libidn.so.17: Undefined symbol "iconv_open"
View gist:9002864
if [ `env | grep SSH_TTY | wc -l` -gt 0 ] || [ `env | grep cons25 | wc -l` -gt 0 ]; then
/etc/rc.initial
exit
fi
View gist:9076408
sysctl kern.geom.debugflags=16
boot0cfg -v -s 1 ad0
fdisk -a /dev/ad0
sysctl kern.geom.debugflags=0
/etc/rc.reboot
View gist:9760728
$config['system']['enableserial'] = true;
write_config("Enable Serial Port");
require_once("pfsense-utils.inc");
setup_serial_port();
You can’t perform that action at this time.