- Bonus: SSHD lives on its own network connected to the Inet-NATted LAN, so that
[public IP]:443
| #!/bin/bash | |
| site=$1; shift | |
| hostname=$1; shift | |
| mk_file="/opt/omd/sites/$site/etc/check_mk/conf.d/wato/hosts.mk" | |
| wato_file="$(dirname $mk_file)/.wato" | |
| ## exit with code 1 if host exists | |
| ( |
| #!/bin/bash | |
| # | |
| # Sylinux Installer / Updater Scripts | |
| # Copyright (C) 2011 Matthew Gyurgyik <[email protected]> | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. | |
| # |
| #!/bin/bash | |
| set -e | |
| FETCHCOMMAND='wget -t 3 -T 5 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"' | |
| RESUMECOMMAND='wget -c -t 3 -T 5 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"' | |
| export FETCHCOMMAND RESUMECOMMAND | |
| emerge --usepkg --buildpkg --update \ | |
| app-emulation/qemu \ | |
| net-misc/curl \ | |
| sys-block/parted \ | |
| sys-fs/multipath-tools |
| augtool -s set /files/etc/sudoers/spec[user='ubuntu']/user ubuntu | |
| augtool -s set /files/etc/sudoers/spec[user='ubuntu']/host_group/host ALL | |
| augtool -s set /files/etc/sudoers/spec[user='ubuntu']/host_group/command ALL | |
| augtool -s set /files/etc/sudoers/spec[user='ubuntu']/host_group/command/runas_user ALL | |
| augtool -s set /files/etc/sudoers/spec[user='ubuntu']/host_group/command/tag NOPASSWD |
| ## how i verified hwe-t kernel boots / functions. | |
| $ sudo apt-get update | |
| $ sudo apt-get install qemu-system-x86 | |
| $ sudo chmod 666 /dev/kvm | |
| $ burl="http://archive.ubuntu.com/ubuntu/dists/precise-proposed/main/installer-amd64/current/images/trusty-netboot/ubuntu-installer/" | |
| $ wget "$burl/amd64/linux" -O kernel | |
| $ wget "$burl/amd64/initrd.gz" -O initrd |
| import suds | |
| import re | |
| import sys | |
| import os | |
| #Enter WSDL Url here | |
| url='http://....:8000//aspx_pages/TM_WebServices.asmx?WSDL' | |
| #All Global variables | |
| users={}; datatype_values={}; report={} |
| #!/usr/bin/env bash | |
| # Generates gource video (h.264) out of multiple repositories. | |
| # Pass the repositories in command line arguments. | |
| # Example: | |
| # <this.sh> /path/to/repo1 /path/to/repo2 | |
| OUTFILE="gource.mp4" | |
| set -x |
| #!/bin/sh | |
| resolution=1360x720 | |
| seconds_per_day=0.01 | |
| auto_skip_seconds=0.1 | |
| elasticity=0.05 | |
| fps=25 | |
| bitrate=4000K | |
| extension=webm | |
| input=8bit.gource |
| ################################ | |
| gource commands | |
| ################################ | |
| # basic command for big and long projects | |
| gource --max-user-speed 500 --seconds-per-day 0.05 --file-idle-time 10 -e 0.005 -f --max-files 300 --hide-files | |
| # some easy to understand commands | |
| # for output file | |
| --output-ppm-stream ~/ppm/ppm-kohana |