I hereby claim:
- I am thwarted on github.
- I am thwarted (https://keybase.io/thwarted) on keybase.
- I have a public key whose fingerprint is 8CC0 42B3 3D0A CE55 5BA8 7623 0317 C210 0A72 3223
To claim this, I am signing this object:
if not ENV['AWS_ACCESS_KEY_ID'] or not ENV['AWS_SECRET_ACCESS_KEY'] | |
puts "Set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY in the environment" | |
exit | |
end | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider :aws do |aws, override| | |
#aws.region = "us-west-2" |
#!/bin/bash | |
countfile=/tmp/agentcount.${USER}.$( date +%Y%m%d ) | |
c=$( cat "$countfile" 2>/dev/null ) | |
c=$(( c + 1 )) | |
echo $c > "$countfile" | |
msg="${*/Allow use of/Using}" | |
msg="$( echo "${msg/\?/}" | fold -w 34 )" |
#include <unistd.h> | |
void main() { pause(); } |
#!/bin/bash | |
set -x | |
cd ~/rpmbuild/SOURCES | |
function doit() { | |
local gemname="$1" | |
gem2rpm --fetch $gemname --output ../SPECS/rubygem-$gemname.spec |
I hereby claim:
To claim this, I am signing this object:
# vim:ft=syslog-ng:ai:si:ts=4:sw=4:et:expandtab | |
# assumes RFC5424 format and a SD-ELEMENT "x-service" in the SD-ID "origin" | |
# customize to taste | |
@define statdprefix "service.${.SDATA.origin.x-service}." | |
# send your log data to port 8888 | |
source s_logdata { | |
udp(port(8888) flags(syslog-protocol) tags("logdata")); |
#!/bin/bash | |
TRHOME=$( readlink -f $( dirname $0 ) ) | |
# mkdir -p complete config incomplete logs torrents | |
PIDFILE=$TRHOME/logs/transmission.pid | |
dostart() { | |
cd $TRHOME | |
transmission-daemon \ | |
--config-dir $TRHOME/config \ |
Mostly gleaned from the instructions at https://wiki.archlinux.org/index.php/ISCSI_Initiator to setup the initiator.
Overview of the steps:
server1 is serving the targets and has IP 10.1.1.1/24 desktop1 is initiator. Both machines are in the 10.1.1.0/24 subnet.
yum install netbsd-iscsi
in my case for Centos 6.5)/etc/iscsi/targets
to be 10.1.1.0/24
.dd if=/dev/zero of=/tmp/iscsi-target0 bs=1024 count=100000
(this matches what's in the sample config in /etc/iscsi/targets
)type ZipP4 string | |
func (z *ZipP4) MarshalJSON() ([]byte, error) { | |
return []byte(fmt.Sprintf(`"%s"`, *z)), nil | |
} | |
func (z *ZipP4) UnmarshalJSON(b []byte) (err error) { | |
if z == nil { | |
return errors.New("ZipP4: UnmarshalJSON on nil pointer") | |
} |
#!/bin/bash | |
if [[ "$NESTED" ]]; then | |
IFS=$( echo -e '\r' ) | |
while read line; do | |
[[ -z "$line" ]] && break | |
done | |
sleep 10 |