<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3981&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / post your interesting bashrc commands]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3981</link>
		<description><![CDATA[The most recent posts in post your interesting bashrc commands.]]></description>
		<lastBuildDate>Fri, 04 Jun 2021 14:18:22 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=30024#p30024</link>
			<description><![CDATA[<p>8.8GB/s on a ThinkPad T60. Not bad for 2007.</p><div class="codebox"><pre><code>starbreaker@netzach:~$ time dd if=/dev/zero of=/dev/null bs=1M count=65536
65536+0 records in
65536+0 records out
68719476736 bytes (69 GB, 64 GiB) copied, 7.80361 s, 8.8 GB/s</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (starbreaker)]]></author>
			<pubDate>Fri, 04 Jun 2021 14:18:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=30024#p30024</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29955#p29955</link>
			<description><![CDATA[<p>I got 2.9 GB/s with radio stream playing, 3.5 GB/s with radio stream stopped.</p>]]></description>
			<author><![CDATA[dummy@example.com (MLEvD)]]></author>
			<pubDate>Sat, 29 May 2021 15:15:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29955#p29955</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29952#p29952</link>
			<description><![CDATA[<p>^ faster than mine <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>i got 10.0 GB/s</p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Fri, 28 May 2021 10:33:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29952#p29952</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29951#p29951</link>
			<description><![CDATA[<div class="quotebox"><cite>dice wrote:</cite><blockquote><div><p>How fast is your system?</p><p>Read 32GB zero’s and throw them away.</p><div class="codebox"><pre><code>dd if=/dev/zero of=/dev/null bs=1M count=32768</code></pre></div></div></blockquote></div><p>How fast is fast? :-)</p><div class="codebox"><pre><code>glenn@GamesBox ~ $ dd if=/dev/zero of=/dev/null bs=1M count=32768
32768+0 records in
32768+0 records out
34359738368 bytes (34 GB, 32 GiB) copied, 1.45917 s, 23.5 GB/s</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Thu, 27 May 2021 22:46:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29951#p29951</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29950#p29950</link>
			<description><![CDATA[<p>How fast is your system?</p><p>Read 32GB zero’s and throw them away.</p><div class="codebox"><pre><code>dd if=/dev/zero of=/dev/null bs=1M count=32768</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Thu, 27 May 2021 14:09:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29950#p29950</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=29949#p29949</link>
			<description><![CDATA[<p>create a binary clock.</p><div class="codebox"><pre><code>watch -n 1 &#039;echo &quot;obase=2;`date +%s`&quot; | bc&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Thu, 27 May 2021 14:07:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=29949#p29949</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26402#p26402</link>
			<description><![CDATA[<p>Other than coloured user, I have this...</p><div class="codebox"><pre><code>	alias su=&#039;su -&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 25 Dec 2020 02:09:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26402#p26402</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26363#p26363</link>
			<description><![CDATA[<p>messing around with a minimal exit menu script.</p><div class="codebox"><pre><code>get_exit () {
read -n 1 -p &quot;(e)xit, (r)eboot, (s)hutdown, (l)ock  &quot; exit;

case $exit in
    e)
       pkill xinit;;
    r)
        sudo reboot;;
    s)
        sudo poweroff;;
    l)
       xscreensaver-command -l;;
esac

}</code></pre></div><p>this could be a separate script as well, ive called an xterm using the following line as a keybind from my window manager. This places a small xterm in the center of the screen and all i need do is press whatever button needed or press escape to quit the xterm.</p><p><span class="bbc">xterm -geo 50x1+400+300 -e exit-menu</span></p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Tue, 22 Dec 2020 14:19:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26363#p26363</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26109#p26109</link>
			<description><![CDATA[<p>No, Korn Shell only offers simple completion and has no command option completion (AFAIK). I&#039;ve never really missed it though.</p><p>If you want a fully featured interactive shell then you should try zsh instead, especially with either <a href="https://pkginfo.devuan.org/cgi-bin/package-query.xml?c=package&amp;q=fizsh=1.0.9-1" rel="nofollow">fizsh</a> or <a href="https://grml.org/zsh/" rel="nofollow">grml&#039;s sublime configuration</a>. The latter&#039;s completion system is *much* better than the one offered with bash.</p><p>EDIT: but don&#039;t bother with oh-my-zsh, that&#039;s a buggy pile of shite.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 05 Dec 2020 12:47:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26109#p26109</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26108#p26108</link>
			<description><![CDATA[<p>Thanks for contributing. </p><p>Ive only played around in qemu a handful of times, im not one for virtualization, id rather use bare metal. Not trying to take away from qemu, it has its place and is a useful piece of software. </p><p>As for bash, well it does the job head on a stick. Lazy reply here but ive always found ksh lacking in regards to tab completion, i suppose there is some nifty tricks to be learned to get the functionality of bash-completion. How would one implement equivalents to bash-completion and inputrc for better user interaction or are these more of a limitation / security risk ?</p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Sat, 05 Dec 2020 12:19:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26108#p26108</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26102#p26102</link>
			<description><![CDATA[<p>I use this to launch a QEMU/KVM virtual machine along with virt-viewer and a shared directory (with the path to the disk image as the argument):</p><div class="codebox"><pre><code>function vlaunch {
   qemu-system-x86_64 -enable-kvm \
                      -m 4G \
                      -cpu host \
                      -smp cores=4 \
                      -drive file=&quot;$1&quot;,format=raw,cache=none,if=virtio \
                      -soundhw hda \
                      -vga qxl \
                      -device virtio-serial-pci \
                      -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
                      -chardev spicevmc,id=spicechannel0,name=vdagent \
                      -spice unix,addr=/tmp/vm_spice.socket,disable-ticketing \
                      -device nec-usb-xhci,id=usb \
                      -chardev spicevmc,name=usbredir,id=usbredirchardev1 \
                      -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \
                      -chardev spicevmc,name=usbredir,id=usbredirchardev2 \
                      -device usb-redir,chardev=usbredirchardev2,id=usbredirdev2 \
                      -fsdev local,id=qemu_dev,path=/home/empty/Public,security_model=none \
                      -device virtio-9p-pci,fsdev=qemu_dev,mount_tag=qemu_mount &amp;
   remote-viewer &quot;spice+unix:///tmp/vm_spice.socket&quot;
}</code></pre></div><p>See <a href="http://forums.debian.net/viewtopic.php?f=16&amp;t=144775" rel="nofollow">http://forums.debian.net/viewtopic.php?f=16&amp;t=144775</a> for more on this.</p><p>But that&#039;s in $ENV (<span class="bbc">~/.kshrc</span>) because I use Korn Shell rather than bloaty old bash :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Dec 2020 21:47:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26102#p26102</guid>
		</item>
		<item>
			<title><![CDATA[Re: post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26100#p26100</link>
			<description><![CDATA[<p>i use this one to open iso images or usb devices that contain bootable distros with qemu</p><div class="codebox"><pre><code>check_kvm() { [ -e /dev/kvm ] &amp;&amp; KVM_FLAG=&quot;-enable-kvm -cpu host&quot; }
emu32() { ISO=&quot;$1&quot;; check_kvm; QEMU_CMD=&quot;sudo qemu-system-i386 ${KVM_FLAG} -m 2560 -drive format=raw,file=$ISO&quot;; `echo $QEMU_CMD` }
emu64() { ISO=&quot;$1&quot;; check_kvm; QEMU_CMD=&quot;sudo qemu-system-x86_64 ${KVM_FLAG} -m 2560 -drive format=raw,file=$ISO&quot;; `echo $QEMU_CMD` }
alias emu=&quot;emu64&quot;</code></pre></div><p>and this one to search and open files in my archives</p><div class="codebox"><pre><code>find-open() {
if [ &quot;$1&quot; ]; then
  [ &quot;$2&quot; ] &amp;&amp; DIR=&quot;$2&quot; || DIR=&quot;.&quot;
  STRING=&quot;$(find &quot;$DIR&quot; -iname &quot;*$1*&quot; | fzf)&quot;
  [ &quot;$STRING&quot; ] &amp;&amp; xdg-open &quot;$STRING&quot;
else
  echo &quot;Example: find-open &#039;STRING&#039; &#039;PATH&#039; -&gt; lists all matches of &#039;STRING&#039; in &#039;PATH&#039; and opens the selection&quot;
  echo &quot;         if &#039;PATH&#039; is not defined, find will look in the working directory&#039;&quot;
fi
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (alphalpha)]]></author>
			<pubDate>Fri, 04 Dec 2020 21:21:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26100#p26100</guid>
		</item>
		<item>
			<title><![CDATA[post your interesting bashrc commands]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26093#p26093</link>
			<description><![CDATA[<p>Thought this might be a fun thread or is this forum just about devuan in general and no community off topic banter?</p><p>either way i found these few interesting, lets see yours.</p><div class="codebox"><pre><code>bash-history-top()
{
        history | awk &#039;{a[$2]++}END{for(i in a){print a[i] &quot; &quot; i}}&#039; | sort -rn | head
}

cl()
{
    echo &quot;$(tput cols)x$(tput lines)&quot;
}

man-to-pdf()
{
    man -t &quot;$1&quot; | ps2pdf - &quot;$1.pdf&quot;
}</code></pre></div><p>Last one (man-to-pdf) needs ghostscript installed.</p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Fri, 04 Dec 2020 12:56:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26093#p26093</guid>
		</item>
	</channel>
</rss>
