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
+-----------------------------------------------------------------------------------------+ | |
|Ena änden av vår lokal Andra änden av vår lokal | | |
| | | |
| | | |
| | | |
+------------+ +-------------------+ | |
|| Upplänk | 1Gbit/s CAT 6.e/CAT 7 kabel |Switch med || | |
|| + +--------------------------------------------------------+anslutning till || | |
|| LAN Router| |alla accesspunkter|| | |
|| 1 Gbit/s | +-------------------+ |
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 | |
cat > "cloud-config.yaml" <<EOF | |
#cloud-config | |
ssh_authorized_keys: | |
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwYfh0FG1DK+VIePvOGKaU/maBFYppeZ8CtwlzSaemx0t8ZjUBkzgXZKiqdqWkm2TR713UHCa2d0ZV4168XaEBrnRHk+zJoH5yOInaByMJ30bR1SDI850adi7Wu6Lp3qwvyW5DLMfAX9gOXFrD40MQyetSNnazEFDuNG0knOTlGeKR5O2aTiQTVI8ich3e35DESS3COmo3gdI7zCJas9sQ5jsDa Macbook" | |
- "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwSQ36wK1WJIdJBECFL92F0CjKH5u7jYdZ9MEv9wKOzmeFpbw9qWwAjrW++kcj3Kg5QoieYqGDDPvaFlfuH32G8WhXrRPXykjxaNbsylKPtVmpjB9cr6JZ8GhzZW+hdeDx2O2nx8xZikxV08+D/fzqyV5+0OcfY1Q/ooLGtnkVO8wUw30WJp7Wbt9JTUxCpp0hQVVfXkpwIWIF7vKLpOG+QbIkSGzVTwJg95h0gIvkpWdyYF4eK0whYAwR3/rzchvPRsyQJnS9sdWYYBl/wvvFxNUFA05KFxw7r4LUPmw+vzPdYJP0m0uXvw9IgGGTM/3ntPMa1rgoJnBQI1G7bqmFw== Windows" | |
coreos: |
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
./consul kv get -http-addr=[CONSUL ADDR]:8500 -recurse | grep : | cut -d: -f1 | while read line ; do ./consul kv get -http-addr=[CONSUL ADDR]:8500 $line |head -c-1 | ./etcdctl --endpoints http://[ETCD ADDR]:2379 set $line ; done |
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 | |
AMBARI_USER='admin' | |
AMBARI_PASSWORD='PWPWPW' | |
AMBARI_HOST='ambari.local' | |
CLUSTER_NAME='hdp' | |
MOVE_FROM='node1.local' | |
MOVE_TO='node2.local' | |
SSH_USER=john.doe |
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
augeas { "ntp.conf": | |
context => "/files/etc/ntp.conf", | |
changes => [ | |
"rm server[.]", | |
"set server timehost.tconet.net", | |
"clear server[. = 'timehost.tconet.net']/iburst", | |
"set server[. = 'timehost.tconet.net']/maxpoll 9", | |
"clear server[. = 'timehost.tconet.net']/prefer", | |
], | |
require => Package["ntp"], |
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 | |
#DEBUG_INFO= &>> debug.log | |
TERM_APP=gnome-terminal | |
DESKTOP=`xdotool get_desktop` | |
echo Desktop: $DESKTOP $DEBUG_INFO | |
SEARCH_CMD="xdotool search --onlyvisible --desktop $DESKTOP --limit 1 --class $TERM_APP" | |
#SEARCH_CMD="xdotool search --onlyvisible --desktop $DESKTOP --limit 0 --class $TERM_APP" | |
echo Search command: $SEARCH_CMD $DEBUG_INFO |
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/ruby | |
require 'socket' | |
abort('Upgrade ruby or die...') if RUBY_VERSION < "1.9" | |
pidfile = '/var/run/haproxy_gmetric.pid' | |
if File.exist?(pidfile) | |
pid = File.read(pidfile).to_i | |
begin | |
Process.kill(0, pid) |
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
$ emerge --oneshot --nodeps sys-devel/binutils | |
--- snip --- | |
>>> Unpacking binutils-2.22-patches-1.2.tar.bz2 to /usr/local/gprefix/var/tmp/portage/sys-devel/binutils-2.22-r1/work | |
* Applying various patches (bugfixes/updates) ... | |
* 03_all_binutils-2.15.92.0.2-ppc64-pie.patch ... [ ok ] | |
* 08_all_binutils-RPATH_ENVVAR-smack.patch ... [ ok ] | |
* 10_all_binutils-2.22-ppc-textrels.patch ... [ ok ] | |
* 12_all_sh-targets.patch ... [ ok ] |
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 return array ( | |
'group' => array ( | |
'users' => array ( | |
'/$user/files/149999_w' => array ( 'class' => 'OC_Filestorage_Local', 'options' => array ( 'datadir' => '/mnt/w', ),), | |
), | |
), | |
); |
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
root@virtual:/etc/pve/nodes/virtual/qemu-server# cat 105.conf | |
args: -uuid f160a786-2bc4-4dfd-a031-b979a9aad519 | |
bootdisk: virtio0 | |
cores: 4 | |
ide2: local:iso/rhel-server-6.2-x86_64-dvd.iso,media=cdrom | |
memory: 2048 | |
name: vguest06.unixwarez.org | |
net0: virtio=7A:1A:67:FF:13:53,bridge=vmbr0 | |
ostype: l26 | |
sockets: 1 |