This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vmtoolsd -v|perl -pe 's/([a-zA-Z-,()])//g;s/\s+([0-9.\s].*)/$1/g;s/([0-9.].?)([0-9.].?)([0-9.].?)([0-9.].+) (.*)/VMwareTools-$1$2$3-$5.tar.gz/g;' | |
= VMwareTools-9.4.11-2400950.tar.gz | |
if [ "$(wget -q -O - http://[your filehost]/[path]/VMwareTools-LATEST)" ne "$(vmtoolsd -v|perl -pe 's/([a-zA-Z-,()])//g;s/\s+([0-9.\s].*)/$1/g;s/([0-9.].?)([0-9.].?)([0-9.].?)([0-9.].+) (.*)/VMwareTools-$1$2$3-$5.tar.gz/g;')" ] | |
then | |
cd /tmp/ | |
wget -q http://[your filehost]/[path]/$(wget -q -O - http://[your filehost]/[path]/VMwareTools-LATEST) | |
tar xvzf VMwareTools-*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( date; echo "<br><ul>"; \ | |
(for i in 40 80 120 160 200 240 280 320 360 400 440 480 520 560 600; \ | |
do wget -O - -q "http://mobilism.me/search.php?keywords=File+Size&terms=all&author=&fid%5B%5D=1283&fid%5B%5D=424&fid%5B%5D=434&fid%5B%5D=422&fid%5B%5D=423&fid%5B%5D=428&fid%5B%5D=429&fid%5B%5D=1288&fid%5B%5D=1332&fid%5B%5D=432&fid%5B%5D=427&fid%5B%5D=435&fid%5B%5D=436&fid%5B%5D=437&fid%5B%5D=1336&fid%5B%5D=438&fid%5B%5D=442&fid%5B%5D=443&fid%5B%5D=444&fid%5B%5D=123&fid%5B%5D=124&fid%5B%5D=311&fid%5B%5D=1284&fid%5B%5D=97&fid%5B%5D=98&fid%5B%5D=100&sc=1&sf=firstpost&sr=topics&sk=t&sd=d&st=1&ch=0&t=0&submit=Search&start=$i"; done) \ | |
| grep topictitle \ | |
| perl -pe 's/.\/viewtopic.php/http:\/\/mobilism.me\/viewtopic.php/g;s/<a/<li><a/g;s/ <br \/>/<\/li>/g;s/^(.*)<li>/<li>/g;'; \ | |
echo "</ul>";) >/tmp/t.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(echo -e "<html>\n<body>\n\n<ul>"; \ | |
cat export_app_list/latest_*/app_list.csv \ | |
| grep -v 'Created by AppWererabbit' \ | |
| sort -d \ | |
| perl -pe 's/\"(.*)\",\"(.*)\"/ <li>\n <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=$1\">\n $2 ($1)\n <\/a>\n <\/li>/g;'; \ | |
echo -e "</ul>\n\n</body>\n</html>") \ | |
| grep -v 'version=' \ | |
> /tmp/apps.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
start parsing at | |
{"81":[ | |
stop parsing at | |
,"1018":[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oscillator(s) and their frequencies in hz | |
1 whitenoise 63.99999999978596405600 | |
2 pinknoise 63.99999999978596405600 | |
3 brownnoise 63.99999999978596405600 | |
4 sine 63.99999999978596405600 | |
5 sine 255.99999999743156867232 | |
6 sine 1023.99999998287712448384 | |
7 square 63.99999999978596405600 | |
8 square 255.99999999743156867232 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## for systems (like sles 11) wher dmesg does not support parameters -T or --ctime | |
## source: https://www.verboom.net/blog/index.html?single=20110927.0 | |
dmesg | gawk -v uptime=$( grep btime /proc/stat | cut -d ' ' -f 2 ) '/^[[ 0-9.]*]/ { print strftime("[%Y/%m/%d %H:%M:%S]", substr($0,2,index($0,".")-2)+uptime) substr($0,index($0,"]")+1) }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## get Methods available: | |
## curl -s --data "<?xml version="1.0"?><methodCall><methodName>system.listMethods</methodName><params><param><value><string/></value></param></params></methodCall>" http://${WORDPRESS_SITE}/xmlrpc.php | |
## | |
for i in system.multicall system.listMethods system.getCapabilities demo.addTwoNumbers demo.sayHello pingback.extensions.getPingbacks pingback.ping wp.restoreRevision wp.getRevisions wp.getPostTypes wp.getPostType wp.getPostFormats wp.getMediaLibrary wp.getMediaItem wp.getCommentStatusList wp.newComment wp.editComment wp.deleteComment wp.getComments wp.getComment wp.setOptions wp.getOptions wp.getPageTemplates wp.getPageStatusList wp.getPostStatusList wp.getCommentCount wp.deleteFile wp.uploadFile wp.suggestCategories wp.deleteCategory wp.newCategory wp.getTags wp.getCategories wp.getAuthors wp.getPageList wp.editPage wp.deletePage wp.newPage wp.getPages wp.getPage wp.editProfile wp.getProfile wp.getUsers wp.getUser wp.getTaxonomies wp.getTaxonomy wp.getTerms wp.getTerm wp.deleteTe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## /etc/rc.d/rc.local | |
## generate /etc/LOCALSYSID | |
## used for creating repos for configs, scripts, etc. | |
echo "$(dmidecode -t 1 | grep -E '(Manufacturer|Product|Serial)' | cut -d':' -f2 | perl -pe 's/^ ([A-Za-z0-9 ].*)\n/$1--/g;s/\s/-/g;s/^(.*)-/$1/;')UUID-$(dmidecode -t 1 | grep UUID | cut -d':' -f2 | tr -d [:space:])" > /etc/LOCALSYSID | |
## result is like: | |
## cat /etc/LOCALSYSID | |
## FUJITSU-SIEMENS-LIFEBOOK-S6410-YK9S060228-UUID-A36C9E28-7B37-11DD-BEC7-001742C2D0CA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo >> /etc/fstab | |
for d in $@; do | |
mkdir /mnt/usb/$(blkid ${d}|perl -pe 's/(.*)UUID=\"(.*)\" TYPE=\"(.*)\"/$2/g;') | |
echo "$(blkid ${d}|perl -pe 's/(.*)UUID=\"(.*)\" TYPE=\"(.*)\"/UUID=$2 \/mnt\/usb\/$2 $3 defaults,rw 1 1/g;')" >> /etc/fstab | |
done | |
mount -av |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus info Device Class Description | |
================================================= | |
system LIFEBOOK S6410 | |
bus FJNB1D3 | |
memory 128KiB BIOS | |
cpu@0 processor Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz | |
memory 128KiB L1 cache | |
memory 3MiB L2 cache | |
processor Logical CPU |