Posts Tagged System

我的VIM配置文件

用了好几年的VIM配置文件,有喜欢的下载吧,效果图

UTF8[......]

阅读全文

C实现配置文件(Ini文件)读取,跨平台

config.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __CONFIG_H__
#define __CONFIG_H__
 
#include \"list.h\"
 
typedef struct config_node {
	char *section;
	char *name;
	char *value;
} config_node_t;
 
int config_node_add(list_t *list, char *section, char *name, char *value);
int config_load(list_t **list, const char *filepath);
char *config_get(list_t *list, const char *section, const char *name, const char *def);
void config_free(list_t *list);
 
#endif /* __CONFIG_H__ */

[......]

阅读全文

Linux 下无线网卡启动脚本

Linux 下无线网卡启动脚本
不使用dhcp

1
2
3
4
5
6
#!/bin/sh
ifconfig wlan0 up
iwconfig wlan0 ESSID MYESSID
iwconfig key s:PASSWORD
ifconfig wlan0 192.168.0.xxx
route add gw 192.168.0.1

[......]

阅读全文

Linux 下 Eclipse tptp agent controller 启动失败

检查原因,执行

1
/opt/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200806171132/agent_controller/bin/ACStart.sh

提示缺少 ibstdc++-libc6.2-2.so.3
下载