~# lxc profile device show default
# (...sic...)
console:
path: /dev/console
type: unix-char
tty:
path: /dev/tty
type: unix-char
tty0:
This file contains hidden or 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/share/libalpm/hooks/99-99-aur.hook | |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = * | |
[Action] | |
Description = "Check non-repo packages integrity" | |
Depends = auracle | |
When = PostTransaction |
This file contains hidden or 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 | |
# | |
## -------------------------------=[ Info ]=--------------------------------- ## | |
# | |
# Generate letsencrypt cert on local server and scp to esxi target. | |
# Designed and tested on Ubuntu 16.04LTS. | |
# Assumes you have upnp control over local network. Tested with Ubiquiti USG. | |
# | |
# Dependencies: | |
# miniupnpc (sudo apt install miniupnpc) |
This file contains hidden or 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
# Generated by iptables-save v1.4.7 on Sun Feb 24 00:48:11 2013 | |
*mangle | |
:PREROUTING ACCEPT [756:54757] | |
:INPUT ACCEPT [756:54757] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [578:527896] | |
:POSTROUTING ACCEPT [578:527896] | |
-A INPUT -s 1.1.1.2/32 -j CHECKSUM --checksum-fill | |
-A OUTPUT -s 1.1.1.2/32 -j CLASSIFY --set-class 0004:0056 | |
COMMIT |
The general goal of this doc is to show how to use qemu, ipxe and tgt to test iscsi and iBFT.
There are loads of things that could be done to make this test environment. But for now, it just shows a simple case to show parameters necessary.
In examples here, the iscsi server is available at 192.168.1.10
. The qemu host system is available at 192.168.1.11
. We assume port 9999 is available to run a python simple web server.
This file contains hidden or 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 | |
# This can be run as: | |
# bash -i -c "source <(curl -L 'https://gist.githubusercontent.com/tsjk/4b387dd685b9942bcc23497fd3345b99/raw')" | |
LTS_KERNEL_VERSION=$(wget -qO- 'https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=zfs-linux-lts' | \ | |
grep -oP '(?<="linux-lts=)[0-9\.-]+(?=")' | head -n 1) | |
LTS_KERNEL_VERSION_ESCAPED=$(echo "${LTS_KERNEL_VERSION}" | sed 's@\.@\\\.@g') | |
LTS_KERNEL_REVISION=$(wget -qO- 'https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=zfs-linux-lts' | \ | |
grep -oP '(?<=-)[0-9]+(?=-lts\/build)' | head -n 1) |
This file contains hidden or 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
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
This file contains hidden or 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
[root@rescue ~]# kldload zfs | |
[root@rescue ~]# sysctl kern.geom.label.gptid.enable=0 | |
kern.geom.label.gptid.enable: 1 -> 0 | |
[root@rescue ~]# gpart destroy -F nvd0 | |
nvd0 destroyed | |
[root@rescue ~]# gpart destroy -F nvd1 | |
nvd1 destroyed | |
# Getting "gpart: arg0 'nvdN': Invalid argument" is alright as it means that there was no partition table on the disk anyway. | |
[root@rescue ~]# gpart create -s gpt nvd0 |
This file contains hidden or 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 sh | |
# Location of executables | |
IPSET=/usr/sbin/ipset | |
IPTABLES=/sbin/iptables | |
# Common definitions | |
COMMENT="-m comment --comment" | |
LOG="ULOG --ulog-nlgroup 1 --ulog-prefix" | |
DONT_LOG="" |
NewerOlder