記錄一下常用的Run命令:
- cmd
- taskmgr
- appwiz.cpl
- compmgmt.msc
- osk
- regedit
- control
- netconnections
- printers
- intl.cpl
天意
-時間和空間絕對隔絕
-命運的主宰
...
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi.signed file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash toram --
initrd /casper/initrd.lz
}
...就可以把root加載到內存,然後執行甚麼都會超級快~polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks.filesystem-mount-system-internal" &&
subject.user == "username") {
return "yes";
}
});這樣便可 也可以直接修改admin group為wheel 加入檔案/etc/polkit-1/rules.d/10-admin.rules: polkit.addAdminRule(function(action, subject) {
return ["unix-group:wheel"];
});#rsync://rsync.macports.org/release/ports/ [default]把原本的rsync一行改成透過http下載的tarball
http://www.macports.org/files/ports.tar.gz [default]
#!/bin/bash
function line() {
while [ ! -f /tmp/stop ];
do ssh -o ExitOnForwardFailure=yes -R 4334:localhost:22 user@remotehost.com "while netcat -zv localhost 4334; do sleep 300; done";
sleep 5;
done
}
line &
$ ssh -N -L 4334:localhost:4334 user@remotehost.com &這樣就可以把localhost的4334port反向連接到remotehost的4334,有點神奇的。