Răzvan Cosma's scratchpad

random scripts of random value

Browsing Posts in Uncategorized

Expects some env vars defined in the GoCD environment or pipeline definition: Jenkins HTTP address, login, name of job to build, polls for a successful exit code then downloads the artifacts zip.

AIX: lsconf ll /var/adm/ras/bosinstlog ESXi: get-vmhost | sort name | foreach {$h = $_.Name; $d = (Get-EsxCli -VMHost $h).software.vib.list() | sort InstallDate | select -first 1; write-host $h,$d.InstallDate;} HP-UX: ll /dev/config echo “sel dev 1;info;wait;il”|/usr/sbin/cstm Linux: rpm -qi basesystem rpm -qi filesystem head /var/log/installer/syslog Solaris: showrev ll /var/sadm/system/logs /usr/sbin/prtconf | head Windows: systeminfo | findstr […]

# mencoder infile.avi -ovc lavc -oac copy -lavcopts vcodec=mpeg4:threads=2:autoaspect:turbo:mbd=2:trell=1 -ffourcc xvid -mc 0 -vf softskip,harddup -o outfile.avi

sysprep -pnp -mini -reinstall -nosidgen -reseal -forceshutdown

PacketDam has reached an important milestone with the addition of IPv6 support. As native deployments are becoming the norm, it is only a matter of time before attacks switch to the new transport. http://www.packetdam.com/features/

Media coverage and public interest in Julian Assange’s latest uncovering of a shitload of documents concerning the American-Afghan war seem to be way overblown, for what appears (after a cursory glance, there are more than 70 thousand of them) to be just accounting paperwork. Accounting of lost lives and destruction, but accounting nevertheless. America’s war […]

select the rows and columns you want to switch, cut, paste special, transpose

@echo off for /f %%f in (‘ls -1 *avi’) do c:\mplayer\mencoder.exe -ovc copy -nosound %%f -o %%~nf.dump for /f %%f in (‘ls -1 *wav’) do c:\mplayer\ffmpeg.exe -i %%f -acodec libmp3lame -ar 44100 -ab 64k -ac 1 %%~nf.mp3 avi for /f %%f in (‘ls -1 *dump’) do c:\mplayer\mencoder.exe -ovc copy -oac copy -audiofile %%~nf.mp3 %%f -o […]

Brilliant motherfucker 🙂 I get the impression that the Windows 7 launch is a lot like seeing an old girlfriend suddenly show up on your doorstep wanting to get back together. She’s had some work done, apparently: stomach stapling to take off some of the weight, breast augmentation, and a radical nosejob to make her […]

Quote from some unknown person that struck a nerve at the time read When did the userbase of linux go so wrong? When did it start? Those of us that have been around for quite a while have watched the rockstar rise and subsequent plummet in the communities surrounding it. 10+ years ago you could […]

Bad Behavior has blocked 42 access attempts in the last 7 days.