Показаны сообщения с ярлыком english. Показать все сообщения
Показаны сообщения с ярлыком english. Показать все сообщения

четверг, 19 апреля 2018 г.

FlareRPG: secret overworld

Hi! FlareRPG version 1.0 came out recently. I looked around a bit.
Then hailing Free and Open Source (FOSS) nature of the game I quickly "mapped" the maps of empyrean_campaign (the main SP game). Here's what I got:

понедельник, 17 июля 2017 г.

GM to MT-32 translation

Say, you have Roland MT-32 (a wonderful vintage synth) and want to play random MIDI files through it which obviously are General MIDI. But MT-32 is instrument-incompatible with GM because it was produced before GM was proposed.
But it's possible to substitute the instruments (aka "Program Change" in MIDI).

вторник, 11 ноября 2014 г.

getting super-user on a McAfee appliance

McAfee appliances, e.g. MEG (identifies itself as McAfee EGVA) doesn't give its users super-user rights. root user has password unknown.
But McAfee engineers have left a backdoor in the system. Take a look:
[admin@scmgateway ~]$ sudo /opt/NETAwss/mgmt/mash +x
[root@scmgateway admin]# service sshd start
Starting sshd:                                             [  OK  ]
[root@scmgateway admin]# sed -i 's/sshd : ALL : DENY/sshd : ALL : ALLOW/' /etc/hosts.allow
etc. etc.

вторник, 10 апреля 2012 г.

migrate custom GNOME3 keybindings from GConf to dconf

Quite natural need but was not implemented by GNOME team. Ok, can do it on our own!
1. Get em' from GConf:
cd `mktemp -d`
gconftool-2 --dump /desktop/gnome/keybindings | sed -n '/<key>custom/,/<key>[^c]/ p' > 1
2. Next, cut off xml garbage:
cat 1 | grep '<string' | sed 's|^.*<string>||;s|</string.*$||; s|&quot;|"|g; s|&lt;|<|g;s|&gt;|>|g' > 2
3. Now take these command/binding/name triplets into the dconf-compatible form:
i=0 ; while read v; do echo "[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom$i]" ; echo command=\'$v\' ; read v ; echo binding=\'$v\' ; read v ; echo name=\'$v\' ; i=$(($i+1)); echo ; done < 2 > 3
4. Yau! Get it into the dconf!
dconf load / < 3
5. Now fix the custom-keybindings key in org/gnome/settings-daemon/plugins/media-keys
dconf write /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings `egrep '^\[' 3 | sed "s|\[|'/|;s|\]|/'|" | tr '\n' , | sed 's|^|[|;s|,$|]|'`
That's it!