海运的博客

Sandboxie常用变量及设置变量

发布时间:January 8, 2013 // 分类:Sandboxie // No Comments

Sandboxie编写配置文件时可使用变量,常用变量如下:

sandbox 当前的沙盘名称
user/username 当前系统用户名称
ProgramFiles 程序安装目录,如C:\Program Files
SystemRoot 系统目录,如C:\Windows 
SystemDrive 系统分区,如C:
UserProfile 当前用户目录,如C:\Users\Administrator
tmp 系统临时目录,如C:\Windows\Temp 
AppData 用户数据目录,如C:\Users\Administrator\AppData
Local AppData C:\Users\Administrator\AppData\Local

更改Sandboxie默认变量:

Ovr.Tmpl.Firefox=C:\Firefox\Profiles\

设置Sandboxie变量:

Reg.Desktop=%USERPROFILE%\Desktop

此内容被密码保护

发布时间:January 5, 2013 // 分类:虚拟化 // No Comments

请输入密码访问

Centos/Debian重置root密码方法

发布时间:January 5, 2013 // 分类:Linux基础 // No Comments

Centos下进入单用户模式修改root密码,添加GRUB引导参数:

single

Debian直接引导进入Bash环境,添加GRUB引导参数:

init=/bin/bash

进入Bash后挂载系统为读写并修改root密码:

mount -no remount,rw /
passwd

XenServer修改Linux/Windows系统模板内存等资源限制

发布时间:January 5, 2013 // 分类:虚拟化 // No Comments

XenServer虚拟机系统模板对内存等资源有做限制,在新建虚拟机时分配的资源不能小于模板最小限额。
XenServer下查看CentOS6 32位模板内存最小限制:

xe template-list name-label=CentOS\ 6\ \(32-bit\) params=memory-static-min --minimal
536870912

可见内存最小限制为512M,如果安装Centos6虚拟机内存不能小于512M,修改Centos模板内存最小限制为128M:

xe template-list name-label=CentOS\ 6\ \(32-bit\) params=uuid --minimal
#查看Centos模板uuid
xe template-param-set uuid=<uuid> memory-static-min=128MiB
#修改内存最小限制为128M

备份下Firefox插件Vimperator配置

发布时间:January 2, 2013 // 分类:Firefox // No Comments

"map <silent> <F2> : set go!=mT <CR>
map <silent> <F2> : set gui=menu <CR> 
map <silent> <F3> : set gui=nomenu <CR> 
noremap J 2j
noremap K 2k
noremap j <C-f>
noremap k <C-b>
noremap w <C-p>
noremap e <C-n>
noremap H h
noremap L l
noremap h H
noremap l L
noremap g gg
noremap s <C-c>
noremap S gf
nmap <C-a> <C-v><C-a> 

"快捷翻页
set nextpattern=\s*下一页|下一张|下一章|下页|后页\s*,^\bnext\b,\\bnext\\b,^>$,^(>>|»)$,^(>|»),(>|»)$,\\bmore\\b
set previouspattern=\s*上一页|上一张|上一章|上页|前页\s*,^\bprev|previous\b,\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$

"style -name=yourUglyStatusline * #liberator-statusline { font-family: Microsoft_YaHei_Mono !important; } 
"style -name=hidemenu * #appmenu-button-container{ display: none !important; }
"不进入插入模式
"set focuscontent 
"默认编辑器
set editor='C:\\Program\ Files\ (x86)\\Vim\\vim73\\gvim.exe -f'
"标题
set titlestring=www.haiyun.me
"补全类型
set complete=l
分类
最新文章
最近回复
  • 海运: 可能版本问题
  • 海运: 如果运营商限制型号
  • 海运: 没有
  • Mruru: 烽火猫切换rootfs的方法有么大佬?
  • nono: 修改光猫型号是做啥子用的
  • 960: root账号默认密码hg2x0 不对哇
  • rer: 感谢分享!~
  • opnfense: 谢谢博主!!!解决问题了!!!我之前一直以为内置的odhcp6就是唯一管理ipv6的方式
  • liyk: 这个方法获取的IPv6大概20分钟之后就会失效,默认路由先消失,然后Global IPV6再消失
  • 海运: 不好意思,没有。
归档