Răzvan Cosma's scratchpad

random scripts of random value

Browsing Posts in Uncategorized

Thought I’d check just how old my account is #!/usr/bin/env python3 from yahoo_oauth import OAuth1 oauth = OAuth1(None, None, from_file=’yahoo_credentials.json’) from myql import MYQL yql = MYQL(format=’xml’, oauth=oauth) response = yql.raw_query(‘select * from social.profile where guid=me’) import xml.etree.ElementTree as ET r = ET.fromstring(response.content) for a in r.iter(‘memberSince’): print(a.tag, a.text) memberSince 1998-08-24T17:51:40Z Yahoo launched in 1998, […]

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 […]

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