<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://berniebernie.fr/mediawiki-1.37.1/index.php?action=history&amp;feed=atom&amp;title=Linux</id>
	<title>Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://berniebernie.fr/mediawiki-1.37.1/index.php?action=history&amp;feed=atom&amp;title=Linux"/>
	<link rel="alternate" type="text/html" href="https://berniebernie.fr/mediawiki-1.37.1/index.php?title=Linux&amp;action=history"/>
	<updated>2026-04-30T19:31:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://berniebernie.fr/mediawiki-1.37.1/index.php?title=Linux&amp;diff=668&amp;oldid=prev</id>
		<title>Bernie at 23:28, 15 March 2023</title>
		<link rel="alternate" type="text/html" href="https://berniebernie.fr/mediawiki-1.37.1/index.php?title=Linux&amp;diff=668&amp;oldid=prev"/>
		<updated>2023-03-15T23:28:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==solitaire houdini win==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	#if false; then&lt;br /&gt;
	#res=`wmctrl -lG`&lt;br /&gt;
	#res=`wmctrl -lG | grep &amp;quot;Converting geometry&amp;quot;`&lt;br /&gt;
	#res=`wmctrl -lG | grep &amp;quot;(0x\S*)\s{1,}0&amp;quot;`&lt;br /&gt;
	#win=`echo $res | awk &amp;#039;{print $1;}&amp;#039;`&lt;br /&gt;
	#fi&lt;br /&gt;
	#echo $id&lt;br /&gt;
&lt;br /&gt;
	desktop=`wmctrl -d | grep \* | awk &amp;#039;{print $1}&amp;#039;`&lt;br /&gt;
	win=`wmctrl -lG | awk &amp;#039;($2==&amp;#039;$desktop&amp;#039;) &amp;amp;&amp;amp; ($6==97) {print $0 }&amp;#039;` #get window on current desktop that has a height of 97, hope thereś only one&lt;br /&gt;
	winid=`echo $win | awk &amp;#039;{print $1;}&amp;#039;`&lt;br /&gt;
&lt;br /&gt;
	x=`echo $win | awk &amp;#039;{print $3;}&amp;#039;`&lt;br /&gt;
	y=`echo $win | awk &amp;#039;{print $4;}&amp;#039;`&lt;br /&gt;
&lt;br /&gt;
	xvel=$((5 + RANDOM % 20))&lt;br /&gt;
	yvel=$((5 + RANDOM % 10))&lt;br /&gt;
&lt;br /&gt;
	for ((i=1; i&amp;lt;=30; i++)); do&lt;br /&gt;
		yvel=`awk &amp;#039;BEGIN {print &amp;#039;$yvel&amp;#039;+&amp;#039;9.8&amp;#039;}&amp;#039;`&lt;br /&gt;
		xdif=&lt;br /&gt;
		#xdif=`awk &amp;#039;BEGIN {print &amp;#039;$xdif&amp;#039;*&amp;#039;.9&amp;#039;}&amp;#039;`&lt;br /&gt;
		#ydif=`awk &amp;#039;BEGIN {print &amp;#039;$ydif&amp;#039;*&amp;#039;1.1&amp;#039;}&amp;#039;`&lt;br /&gt;
		x=`awk &amp;#039;BEGIN{printf &amp;quot;%0.0f\n&amp;quot;, &amp;#039;$xdif&amp;#039;+&amp;#039;$x&amp;#039;}&amp;#039;`&lt;br /&gt;
		y=`awk &amp;#039;BEGIN{printf &amp;quot;%0.0f\n&amp;quot;, &amp;#039;$ydif&amp;#039;+&amp;#039;$y&amp;#039;}&amp;#039;`&lt;br /&gt;
&lt;br /&gt;
		#xdif=$(($xdif*0.9))&lt;br /&gt;
		#ydif=$(($ydif*1.3))&lt;br /&gt;
		#x=$(($x+$xdif))&lt;br /&gt;
		#y=$(($y+$ydif))&lt;br /&gt;
		wmctrl -i -r $win -e 1,$x,$y,-1,-1&lt;br /&gt;
		#echo $y		&lt;br /&gt;
		#echo $y&lt;br /&gt;
	done&lt;br /&gt;
	#echo $winid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==maya command port and telnet==&lt;br /&gt;
In maya: commandPort -n &amp;quot;:54321&amp;quot;;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i in {99..201..1}; do&lt;br /&gt;
	(&lt;br /&gt;
	echo &amp;#039;currentTime -e &amp;#039; $i&lt;br /&gt;
	sleep 1&lt;br /&gt;
	echo &amp;#039;bakeToon&amp;#039;&lt;br /&gt;
	) | telnet 127.0.0.1 54321&lt;br /&gt;
	sleep 15&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==siphoning==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for value in $(seq -f &amp;quot;%04g&amp;quot; 63 64)&lt;br /&gt;
do&lt;br /&gt;
	url=`curl http://hdrlib.com/get_info.php?id=$value | grep -o -E &amp;#039;(http://hdr)(.*)[0-9]&amp;#039;`&lt;br /&gt;
	dlurl=`curl $url | grep -o -E &amp;#039;nbsp;&amp;lt;a href(.*)(orig)&amp;quot;&amp;#039;`&lt;br /&gt;
	dlurl=http://hdrlib.rat9.com/${dlurl:14}&lt;br /&gt;
	wget -O hdrlib.com.$value.hdr ${dlurl%?}&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==misc bash==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i in $(wmctrl -l | grep &amp;#039;File Browser&amp;#039; | cut -c-10) ; do echo foo: $i ; done&lt;br /&gt;
&amp;gt; foo: 0x0180b9ae&lt;br /&gt;
&amp;gt; foo: 0x0180bd99&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==small/guff tcsh STARTUP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Define some colors first:&lt;br /&gt;
set     red=&amp;quot;%{\033[1;31m%}&amp;quot;&lt;br /&gt;
set   green=&amp;quot;%{\033[0;32m%}&amp;quot;&lt;br /&gt;
set  yellow=&amp;quot;%{\033[1;33m%}&amp;quot;&lt;br /&gt;
set    blue=&amp;quot;%{\033[1;34m%}&amp;quot;&lt;br /&gt;
set magenta=&amp;quot;%{\033[1;35m%}&amp;quot;&lt;br /&gt;
set    cyan=&amp;quot;%{\033[1;36m%}&amp;quot;&lt;br /&gt;
set   white=&amp;quot;%{\033[0;37m%}&amp;quot;&lt;br /&gt;
set     nc=&amp;quot;%{\033[0m%}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#PS1=&amp;quot;$BLUE[\h] $NC\u $GREEN\W $NC&amp;gt; &amp;quot;&lt;br /&gt;
#export LANG=en_US.UTF-8&lt;br /&gt;
#export XDG_CACHE_HOME=/var/tmp/xdg-cache-$USER&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#####&lt;br /&gt;
&lt;br /&gt;
# All user specific bash aliases and functions should go here&lt;br /&gt;
&lt;br /&gt;
#PS1=&amp;quot;$CYAN\A $BLUE[\h] $NC${USERNAME:0:5} $GREEN\W $NC: &amp;quot;&lt;br /&gt;
#set prompt=&amp;quot;${green}%n${blue}@%m ${white}%~ ${green}%%${nc} &amp;quot;&lt;br /&gt;
set prompt=&amp;quot;${green}%n${blue}%m${yellow}%~${white}&amp;gt;${nc} &amp;quot;&lt;br /&gt;
#set prompt=&amp;quot;%{\033[2;41;32m%}%m%{\033[0m%} &amp;quot;&lt;br /&gt;
&lt;br /&gt;
#CUSTOM ALIASES&lt;br /&gt;
&lt;br /&gt;
alias km &amp;#039;killall -9 maya.bin&amp;#039;&lt;br /&gt;
alias k &amp;#039;killall -9&amp;#039;&lt;br /&gt;
alias r &amp;#039;xdg-open ~/radios.m3u&amp;#039;&lt;br /&gt;
alias kall &amp;#039;killall -9 maya.bin;killall -9 houdini-bin&amp;#039;&lt;br /&gt;
alias c clear&lt;br /&gt;
alias cd &amp;#039;cd \!* &amp;amp;&amp;amp; ls -d */ --color=never&amp;#039;&lt;br /&gt;
&lt;br /&gt;
set autolist set color set colorcat &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#bnp&lt;br /&gt;
alias arte &amp;quot;---&amp;quot;&lt;br /&gt;
clear&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
alias ss &amp;#039;set t=screenshot_`date +&amp;quot;%Y%m%d_%H%M%S&amp;quot;`;import -window root -silent ~/work/$t.png&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==mikros bashrc==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
echo &amp;#039;(loading custom ubashrc)&amp;#039;&lt;br /&gt;
alias c=&amp;#039;clear&amp;#039;&lt;br /&gt;
alias e=&amp;#039;thunar&amp;#039;&lt;br /&gt;
alias h=&amp;#039;houdiniBeta&amp;#039;&lt;br /&gt;
alias ali=&amp;#039;nano ~/.userbashrc &amp;amp;&amp;amp; source ~/.userbashrc&amp;#039;&lt;br /&gt;
PI=`curl -s https://berniebernie.fr/pi`&lt;br /&gt;
alias pi=&amp;#039;ssh pi@$PI&amp;#039;&lt;br /&gt;
echo &amp;#039;(end load ubashrc)&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==bashrc==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# All user specific bash aliases and functions should go here&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#Background Colors&lt;br /&gt;
E=$(tput sgr0);    R=$(tput setab 1); G=$(tput setab 2); Y=$(tput setab 3);&lt;br /&gt;
B=$(tput setab 4); M=$(tput setab 5); C=$(tput setab 6); W=$(tput setab 7);&lt;br /&gt;
function e() { echo -e &amp;quot;$E&amp;quot;; }&lt;br /&gt;
function x() { echo -n &amp;quot;$E  &amp;quot;; }&lt;br /&gt;
function r() { echo -n &amp;quot;$R  &amp;quot;; }&lt;br /&gt;
function g() { echo -n &amp;quot;$G  &amp;quot;; }&lt;br /&gt;
function y() { echo -n &amp;quot;$Y  &amp;quot;; }&lt;br /&gt;
function b() { echo -n &amp;quot;$B  &amp;quot;; }&lt;br /&gt;
function m() { echo -n &amp;quot;$M  &amp;quot;; }&lt;br /&gt;
function c() { echo -n &amp;quot;$C  &amp;quot;; }&lt;br /&gt;
function w() { echo -n &amp;quot;$W  &amp;quot;; }&lt;br /&gt;
&lt;br /&gt;
#putpixels&lt;br /&gt;
function u() { &lt;br /&gt;
    h=&amp;quot;$*&amp;quot;;o=${h:0:1};v=${h:1}; &lt;br /&gt;
    for i in `seq $v` &lt;br /&gt;
    do &lt;br /&gt;
        $o;&lt;br /&gt;
    done &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
img=&amp;quot;\&lt;br /&gt;
x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x3 b2 x2 b2 x2 b4 x2 b2 x4 b4 x13 e1 x3 b2 y1 x1 b2 y1 b6 y1 b2 y1 x2 b6 y1 x11 e1 x3 b2 y1 x1 b2 y1 b2 y2 b2 y1 b2 y1 x2 b2 y2 b2 y1 x11 e1 x3 b6 y1 b2 y1 x1 b2 y1 b2 y1 x2 b2 y1 x1 b2 y1 x11 e1 x3 b6 y1 b2 y1 x1 b2 y1 b2 y1 x2 b2 y1 x1 b2 y1 x11 e1 x5 b2 y3 b2 y1 x1 b2 y1 b2 y1 x2 b2 y1 x1 b2 y1 x11 e1 x5 b2 y1 x2 b6 y1 b2 y1 x2 b6 y1 x11 e1 x5 b2 y1 x3 b4 y1 x1 b4 x2 b4 y1 x12 e1 x6 y2 x4 y3 x3 y4 x2 y3 x13 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40 e1 x40&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for n in $img&lt;br /&gt;
do&lt;br /&gt;
    u $n&lt;br /&gt;
done&lt;br /&gt;
e;&lt;br /&gt;
&lt;br /&gt;
#######################################################################&lt;br /&gt;
&lt;br /&gt;
PS1=&amp;quot;$CYAN\A $BLUE[\h] $NC${USERNAME:0:5} $GREEN\W $NC: &amp;quot;&lt;br /&gt;
&lt;br /&gt;
#CUSTOM ALIASES&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
alias s=&amp;quot;pp-launch-sublime-text&amp;quot;&lt;br /&gt;
alias km=&amp;quot;killall -9 maya.bin&amp;quot;&lt;br /&gt;
alias r=&amp;quot;curl http://mlkdesign.free.fr/dump/radios.m3u &amp;gt; ~/Downloads/radios.m3u &amp;amp;&amp;amp; xdg-open ~/Downloads/radios.m3u &amp;amp;&amp;amp; exit&amp;quot;&lt;br /&gt;
alias w=&amp;quot;xdg-open http://berniebernie.fr/wiki&amp;quot;&lt;br /&gt;
alias k=&amp;#039;killall&amp;#039;&lt;br /&gt;
alias kall=&amp;#039;killall -9 maya.bin;killall -9 houdini-bin&amp;#039;&lt;br /&gt;
#alias setuphoudini=&amp;#039;cd /prod/softprod/apps/houdini/14.0.395/linux ; source ./houdini_setup_bash&amp;#039;&lt;br /&gt;
#alias s=&amp;#039;/prod/softprod/apps/sublime_text/3b/linux/sublime_text&amp;#039;&lt;br /&gt;
alias ss=&amp;#039;echo | grep -o -E  &amp;quot;&amp;#039;&amp;quot;(\/.*\.[a-z]{1,3})&amp;quot;&amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
alias la=&amp;#039;ls -aF&amp;#039;&lt;br /&gt;
alias edit=&amp;#039;s ~/.bashrc_user&amp;amp;source ~/.bashrc_user&amp;#039;&lt;br /&gt;
alias log=&amp;#039;xdg-open https://wizz.shotgunstudio.com/detail/HumanUser/380&amp;#039;&lt;br /&gt;
alias c=&amp;#039;clear&amp;#039;&lt;br /&gt;
alias removemxsmxi=&amp;#039;rm -f `find . -type f -name &amp;quot;*.mxi&amp;quot; -o -name &amp;quot;*.mxs&amp;quot;`&amp;#039;&lt;br /&gt;
&lt;br /&gt;
alias brume=&amp;#039;cd /prod/project/BRUME_16_1019/sequences/030/030_0040/sfx/&amp;#039;&lt;br /&gt;
#alias tm=&amp;#039;gnome-system-monitor&amp;amp;&amp;#039;&lt;br /&gt;
alias pipi=&amp;#039;ssh &amp;quot;pi@$(curl -s https://berniebernie.fr/ip | head -1 2&amp;gt;/dev/null)&amp;quot;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
function echo_output() {&lt;br /&gt;
    echo &amp;quot;$@&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function getPath(){&lt;br /&gt;
    #grep -o -E &amp;quot;.*&amp;quot; &amp;quot;$@&amp;quot;;&lt;br /&gt;
    grep -rnI &amp;#039;.*&amp;#039; &amp;quot;$@&amp;quot; | sed;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function ro () {&lt;br /&gt;
  if [[ &amp;quot;$1&amp;quot; = &amp;quot;i&amp;quot; ]]; then&lt;br /&gt;
    printf -v a &amp;quot;%04d&amp;quot; $2&lt;br /&gt;
    printf -v b &amp;quot;%04d&amp;quot; $3&lt;br /&gt;
    echo $a $b&lt;br /&gt;
  fi&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Operating System]]&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
</feed>