使用前提:项目使用Images.xcassets进行图片资源管理 安装方法: ????插件地址:https://github.com/rickytan/RTImageAssets ????当然也可以使用Xcode的alcatraz插件管理工具搜索RTImageAssets进行安装,...
分类:
其他好文 时间:
2014-12-24 18:45:29
阅读次数:
226
## 为什么java.* javax.* org.* 下面的类可以使用,com.sun.* 和 sun.*包下面的类却不要去使用? 答: ` java.*` `javax.*` `org.*` 这些包下面的类是对`JavaSE`平台的弥补,是有官方支持的,兼容所有`Java`支持的...
分类:
其他好文 时间:
2014-12-24 18:45:08
阅读次数:
317
配置架构: a. Heka’s Agent/Aggregator架构 ????? ? ? ?b:以一台agent为例进行说明,agent1配置文件如下: [NginxLogInput]
type?=?"LogstreamerInput"
log_directory?=?"/usr/local/openresty/n...
分类:
其他好文 时间:
2014-12-24 18:43:57
阅读次数:
352
摘要:来自于美国的Daniel Mohl给出了自己的架构师书目,例如软件架构师应该知道的97件事、设计模式...此外,他还在文中分享了成为架构师的成长技巧和经验。 Daniel Mohl是一名专业的软件工程师/架构师,他的兴趣...
分类:
其他好文 时间:
2014-12-24 18:42:23
阅读次数:
195
【初始化-limits】init_limits.sh#!/bin/bash
#
#2014/07/15
#增加my-limits.conf
cat<<_LIMIT>/etc/security/limits.d/my-limits.conf
*softnofile65535
*hardnofile65535
*softcoreunlimited
_LIMIT
分类:
其他好文 时间:
2014-12-24 18:36:30
阅读次数:
171
【初始化-系统时间】init_profile.sh#!/bin/bash
#
#2014/10/20
#profile,增加到最后
cat<<_PROFILE>>/etc/profile
aliasls=‘ls--color=tty‘
aliasll=‘ls-l--color=tty‘
aliasl.=‘ls-d.*--color=tty‘
aliasvi=‘vim‘
aliasrm=‘rm-i‘
aliascp=‘cp-i‘
aliasmv=‘mv-i..
分类:
其他好文 时间:
2014-12-24 18:34:19
阅读次数:
154
【初始化-sshd】init_sshd.sh#!/bin/bash
#
#2014/09/02
#1)禁用selinux
#modify/etc/sysconfig/selinux
#to:SELINUX=disabled
#andrebootlater.
cp-a/etc/selinux/config/etc/selinux/config.bak
echo‘SELINUX=disabled‘>/etc/selinux/config
#2)清空firewall
iptables-..
分类:
其他好文 时间:
2014-12-24 18:33:51
阅读次数:
161
【用户】create_user_with_sshkey.sh#!/bin/bash
#$ssh-keygen-trsa-b2048-Cyou_comment_here-ffilename
#createuserwithsshpublickey
#20140214
username=‘yourname‘
useradd${username}
id${username}
[-d/home/${username}/.ssh]||mkdir-p/home/${username}/.ssh
cat<&..
分类:
其他好文 时间:
2014-12-24 18:35:37
阅读次数:
165
【限速】limit_download.sh使用iptables做简单的限速策略。#!/bin/bash
#
#limitport80downloadspeed.
ACTION=$1
n_port=80
#n_limit*15/100KB,100Mbit/s=10MB/s=10*1000KB/s
n_limit=$2
[!-z$n_limit]||n_limit=3000
n_limit_burst=$3
[!-z$n_limit_burst]||n_limit_burst=30..
分类:
其他好文 时间:
2014-12-24 18:33:26
阅读次数:
154
【haproxy初始化】haproxy_ctl.sh#!/bin/bash
#
#modifydirpathhere
d_haproxy_log=‘/data/log/haproxy‘
[-d${d_haproxy_log}]||mkdir-p${d_haproxy_log}
#modifydirpathhere
d_haproxy_conf=‘/data/ops/conf/haproxy‘
[-d${d_haproxy_conf}]||mkdir-p${d_haproxy_conf}
#modif..
分类:
其他好文 时间:
2014-12-24 18:34:15
阅读次数:
184
因为经常需要给公司员工电脑加域,以及其他的一些设置。一直想着做一个自动加域的批处理。参照网上查到的各种信息,终于做成了一个适合自己的脚本。分三个批处理win7需要以下文件1.bat,joindomain.bat,clean.bat,需要的程序netdom.exenetdom.exe.mui(可以在server2008系统中提..
分类:
其他好文 时间:
2014-12-24 18:35:27
阅读次数:
865
【iptables初始化内网网关配置】setting_firewall_gw.sh#!/bin/sh
#
#rc.firewall-初始化内网网关配置
#
#PC@20140620
#
###########################################################################
#1.配置
#####
#1.1配置外网WAN
#
INET_IP="1.2.3.4"
INET_IFACE="em2"..
分类:
其他好文 时间:
2014-12-24 18:34:22
阅读次数:
253
【sshd】setting_ssh_banner.sh#!/bin/bash
#
cat<<_SSHCONFIG>/etc/ssh/ssh.banner
[-]welcometothewonderland...
[^]
.____.____
/\\___‘\\/\\____‘\\\\\_\\\\\\\\\\\\/
\\\\\\/\\\\/\\\\\\\\\-/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\__/\\\\\\\\\_\..
分类:
其他好文 时间:
2014-12-24 18:34:33
阅读次数:
155
【cdn节点状态简单查看】cdn_lookup.sh#!/bin/bash
#
#2014/11/4
action=$1
[-z$2]&&hostname="example.com"||hostname=$2
functionusage(){
cat<<_EOF
usage:$0[hh|vv|t1|t2]
hh:轮训CDN的IP访问指定域名获取header
vv:同上,显示详细内容
t1[hostname]:使..
分类:
其他好文 时间:
2014-12-24 18:35:01
阅读次数:
211
我第一次见到杜雪骞的时候,他正滔滔不绝地向媒体记者讲述他的新创业项目“松鼠智能相框”,在他看来,这是一款集情感呵护、易用操作和移动互联网的新型智能硬件产品,即子女在手机上用APP上传照片之后,这款产品的云服务端即可向相框终端传输子女的照片,远方的父母打开相框即..
分类:
其他好文 时间:
2014-12-24 18:32:05
阅读次数:
181
虽说Word2010的出现增添了许多新功能,新用法,但是Word2003依旧不过时。相信大多数资深的办公族们目前电脑上装的依然是Word2003版本,毕竟这么多年了,用着也顺手。为方便大家使用时更顺手,下面学习啦为大家推荐10个快速输入技巧,可以帮助大家在工作中提高工作效率!1、快速..
分类:
其他好文 时间:
2014-12-24 18:32:08
阅读次数:
176