Fulltext results:
- ZFS Playground @blog:2009
- e disks, 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 status </code> <code> pool: demo state: ONLINE scrub: none
- Formatting Syntax @wiki
- nd_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> <?php /** * Customizati... be modified */ $lang['js']['nosmblinks'] = ''; </code> ==== Image Links ==== You can also use an imag... t use indention for deeper levels - That's it <code> * This is a list * The second item * You... t use indention for deeper levels - That's it </code> Also take a look at the [[doku>faq:lists|FAQ on
- Cleanup Packages @info:linux:debian
- ed (but not purged) packages with this command: <code bash> dpkg --get-selections | grep 'deinstall$' </code> You can feed this list directly to aptitude to purge the packages: <code bash> aptitude purge $(dpkg --get-selections | grep 'deinstall$' | cut -f1) </code> ===== Remove Orphans ===== If a packages is in
- How To Create a Moveable VM with VirtualBox @blog:2010
- '' is the extensions for the generated scripts. <code bash> VBOX="/usr/bin/VBoxManage" SCRIPT_EXT="command" </code> Next, there are defaults for the VMs parameters in case the user enters no value. <code bash> RAM="512" DISK_SIZE="8196" DISK_TYPE="vdi" </code> The script asks for the parameters and uses the
- localeadm @info:solaris
- o mount it (insert your path in the first line. <code bash> ISOIMG="/share/iso/sol-10-u8-ga-sparc-dvd.i... OFIDEV=${LOFIDEV} mount -F hsfs ${LOFIDEV} /mnt </code> Note: If you're using the bourne shell (instead... xamples ===== ==== List Installed Locales ==== <code bash> localeadm -lc </code> Example output: <code> Checking for installed packages. This could take a
- Mercurial @info
- s ==== Ignore ''.DS_Store'' and ''._*'' files: <code> (^|/)\._[^/]+$ (^|/)\.DS_Store$ </code> ==== NetBeans ==== These expressions exclude the directories... n the top directory, but not in subdirectories: <code> ^build$ ^dist$ ^nbproject/private$ </code> Only in the second level directory, but not in subdirector
- Travian Map Download Script @z:travian
- port it to the database. ===== config.inc ===== <code bash> # # database DB_USER="travian" # set this t... "/usr/bin/curl --silent --show-error --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} done </code> ===== get.sh ===== <code bash> #! /bin/sh BIN_
- 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 ===== When ports are updated, the old port is onl
- Oracle: Recovery Manager @info:oracle
- ager ====== ===== Start Recovery Manager ===== <code bash> rman target / </code> ===== Delete Archive Logs ===== Delete all archive logs but keep the last 45 days: <code sql> DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE -45'; </code> To remove archive logs older than 3 days withou
- Setting the Timezone @info:linux:debian
- etc/timezone''. ===== Check the Timezone ===== <code bash> cat /etc/timezone </code> Example: <code> # cat /etc/timezone Europe/London </code> ===== Set the Timezone ===== You can use ''vi'': <code b
- Oracle: SPFile and PFiles @info:oracle
- o a PFile, just enter the following in SQLplus: <code sql> CREATE PFILE FROM SPFILE; </code> It will create a PFile ''${ORACLE_HOME}/dbs/init${ORACLE_SID}.o... path to the PFile instead of ${PATH_TO_PFILE}. <code sql> SHUTDOWN IMMEDIATE; STARTUP NOMOUNT PFILE='$... ' CREATE SPFILE FROM PFILE; SHUTDOWN IMMEDIATE; </code> If your PFile is located at ''/db/oracle/config
- jps - Java Virtual Machine Process Status Tool @info:java
- more examples: List all java processes: ''jps'' <code> 55719 hourglass.jar 51299 jEdit 51610 Main 56026 Jps </code> Long listing: ''jps -l'' <code> 55719 /Users/andreas/.my/pkg/hourglass-0.6.1/lib/hourglass.jar 51299 ... 56042 sun.tools.jps.Jps 51610 org.netbeans.Main </code> List arguments: ''jps -m'' <code> 55719 hourgla
- Disable a Service @info:linux:debian
- Disable a Service ====== To disable a service: <code bash> service <service> stop update-rc.d <service> enable|disable </code> With ''systemd'' (starting with Debian 8): <code bash> systemctl disable <service> </code> To (re)enable a service: <code bash> update-rc.d <service>
- OpenSolaris / VirtualBox: Mount Shared Folder @blog:2009
- the file system type ''vboxfs''. The Usage is: <code bash> mount -F vboxfs <share> <mountpoint> </code> If you want to share the filesystem ''/share'' from... sn't exist. You will have to do this only once. <code bash> pfexec mkdir /share </code> Now, mount the share. <code bash> pfexec mount -F vboxfs share /sha
- Virtual Network Visualization @info:solaris
- tual Wire Demo Tool]]. ===== dladm2dot.pl ===== <code perl> #! /usr/bin/perl $STYLE{'etherstub'} = "sh... = \"$2\"; }\n"; } } close INPUT; print "}\n"; </code> ===== Example ===== {{ dladm2dot.png|Example's Result}} === Input === == dladm show-link == <code> LINK CLASS MTU STATE OVER e1000g... 0 isc2 vnic 9000 up isc_net0 </code> == dladm show-linkprop -o link,value -p zone ==