Fulltext results:
- Travian Map Download Script @z:travian
- to the database. ===== config.inc ===== <code bash> # # database DB_USER="travian" # set this to you... MAP_DIR=${HOME}/opt/travian DUMP_DIR=/srv/glassfish/domains/domain1/docroot/sql # # executables MYSQL... output " </code> ===== cron.hourly ===== <code bash> #! /bin/sh echo `date +'%Y-%m-%d %H:%M'`: $0 for w in de7 do ${HOME}/opt/travian/bin/get.sh ${w}
- ZFS Playground @blog:2009
- , but they are only files for this demo. <code bash> cd /var/tmp mkfile 200m c0d0 c0d1 c0d2 c1d0 c1d1 c1d2 </code> ===== Create Pool ===== <code bash> pfexec zpool create demo /var/tmp/c0d0 zpool st... disk to the existing, creating a mirror. <code bash> pfexec zpool attach demo /var/tmp/c0d0 /var/tmp/... llers. So, let's replace c0d1 with c1d0. <code bash> pfexec zpool replace demo /var/tmp/c0d1 /var/tmp
- localeadm @info:solaris
- it (insert your path in the first line. <code bash> ISOIMG="/share/iso/sol-10-u8-ga-sparc-dvd.iso" L... e: If you're using the bourne shell (instead of bash or ksh), then use backticks in the second line: ''LOFIDEV=`lofiadm -a ${ISOIMG}`'' Now you can use l... ===== ==== List Installed Locales ==== <code bash> localeadm -lc </code> Example output: <code> C
- root login with bash @info:script
- ====== root login with bash ====== On our systems, the ''root'' account is set to be a role, so you c... o, the ''root'' user has the bourne shell (''/bin/sh''), but working with ''/bin/bash'' is much easier. Using this command, you can directly log in as ''root'' with a ''bash'' shell. ssh demo.lab.example.com -t "su - roo
- How To Create a Moveable VM with VirtualBox @blog:2010
- he extensions for the generated scripts. <code bash> VBOX="/usr/bin/VBoxManage" SCRIPT_EXT="command" ... meters in case the user enters no value. <code bash> RAM="512" DISK_SIZE="8196" DISK_TYPE="vdi" </cod... example, the question for the disk size: <code bash> echo -n "Enter disk size in MiB [${DISK_SIZE}]: ... gured according to the parameters above. <code bash> mkdir -p "${VM_DIR}" ${VBOX} -q createvm --nam
- Formatting Syntax @wiki
- ssible, too. Just add the section name behind a hash character as known from HTML. This links to [[syn... /lang.php> <?php /** * Customization of the english language file * Copy only the strings that needs... 4'' | | Audio | ''ogg'', ''mp3'', ''wav'' | | Flash | ''swf'' | If you specify a ... toconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf
- Cleanup Packages @info:linux:debian
- not purged) packages with this command: <code bash> dpkg --get-selections | grep 'deinstall$' </code... ectly to aptitude to purge the packages: <code bash> aptitude purge $(dpkg --get-selections | grep 'd... First, you have to install ''deborpan'': <code bash> aptitude install deborphan </code> Then you can get the list of orphans: <code bash> deborphan </code> If you want, you can even mor
- SSH @info:sysadmin
- ====== SSH ====== ===== SSH with Public Key Authentication only ===== === /etc/ssh/sshd_config === Make sure that your SSH config file (''sshd_config'') contains these settings: <cod
- Shell Script Variables @info:script
- ===== Get the last character of ''$a'': <code bash> ${a: -1} </code> ===== Remove Slash from the End of a Variable ===== Remove a trailing slash from ''$a'': <code bash> a=${a%/} </code> {{tag>scripting bash sysadmin variable}}
- DynDNS Updates without a Client @info:script
- ent for my OpenSolaris Home Server, but a small bash script does the job as good as any other client. <code bash dyndns-update.sh> #! /bin/bash . ${HOME}/.dyndns.cfg DOMAINS=$(cat ${HOME}/.dyndns.domains) echo "$(date '+%Y-%m-%
- IPS Repository Appliance @blog:2010
- terminal and check the repository path. <code bash> df -h ls -d /media/*/repo </code> {{osolrepo06.... ds with adequate privileges. Use "su", "sudo", "pfsh" or "pfexec" to obtain root privileges. <code bash> svccfg -s application/pkg/server setprop pkg/ins... nd replace ''{IP}'' with the IP address. <code bash> pkg set-publisher -O http://{IP} opensolaris.org
- rmdir for OSX @info:mac
- from the command line quite complicated: <code bash> $ rmdir test rmdir: test: Directory not empty $ ... ore $ /bin/rmdir test </code> I wrote a small bash function to remove directories together with the contained ''.DS_Store'' file: <code bash> rmdir() { for d in "$@" do f="${d%/}/.DS_Store"... ion you can remove the directory at once: <code bash> $ rmdir test removing test/.DS_Store </code> {{
- MacPorts @info:mac
- = List Ports ===== list requested ports: <code bash> port echo requested | cut -d ' ' -f 1 | uniq </code> list installed ports: <code bash> port -qv installed </code> ===== Housekeeping =... ou can see a list of all installed ports: <code bash> port echo installed </code> After you run MacPo... of duplicate ports. You can clean these: <code bash> sudo port uninstall inactive </code> {{tag>admi
- base-ssh-login @z:relax:api:base
- ====== base-ssh-login ====== Logs into a remote host using ssh. This can be used to open a remote sesssion, but usus... ly execute a command. ===== Usage ===== base-ssh-login SERVICE [ COMMAND ] * ''SERVICE'': a key... resent, an interactive shell will be opened by ''ssh''. ===== Returns ===== Returns the output of th
- Git @info:code
- ch -d BRANCH === Delete Remote Branch === git push origin -d BRANCH === List unmerges branches === L... flow feature start FEATURE git flow feature finish FEATURE === Release === git flow release start RELEASE [BASE] git flow release finish RELEASE === Hotfix === git flow hotfix start VERSION [BASENAME] git flow hotfix finish VERSION ===== Diff ===== If you only want the cha