上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 114 下一页
摘要: Color_Text() { echo -e " \e[0;$2m$1\e[0m" } Echo_Red() { echo $(Color_Text "$1" "31") } Echo_Green() { echo $(Color_Text "$1" "32") } Echo_Yellow() { 阅读全文
posted @ 2020-06-10 10:20 TBHacker 阅读(152) 评论(2) 推荐(0) 编辑
摘要: # nginx 初始化,父脚本中的变量会自动传入引入的脚本中 . init/nginx.sh 子脚本内容 #!/bin/bash # 生成nginx配置 # cur_dir=$(pwd) # cur_dir=$(dirname $(pwd)) # input_name=demo # input_do 阅读全文
posted @ 2020-06-10 10:12 TBHacker 阅读(3245) 评论(0) 推荐(0) 编辑
摘要: 1 dash中 echo 'hello\nworld' 将会输出 hello world 2 bash中 echo 'hello\nworld' 将会输出 hello\nworld 一般情况下 /bin/sh 被软链到 /bin/dash,偶尔也会遇到有人把 /bin/sh 软链到 /bin/bas 阅读全文
posted @ 2020-06-10 10:06 TBHacker 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 当前目录 cur_dir=$(pwd) 上级目录 cur_dir=$(dirname $(pwd)) 阅读全文
posted @ 2020-06-10 09:22 TBHacker 阅读(13774) 评论(0) 推荐(0) 编辑
摘要: 尾部 # 将域名写入hosts文件 echo "127.0.0.1 $input_domain" >> /etc/hosts 头部 sed -i "1i\127.0.0.1 $input_domain" /etc/hosts 阅读全文
posted @ 2020-06-09 21:41 TBHacker 阅读(4303) 评论(0) 推荐(0) 编辑
摘要: # 判断hosts中有域名 if cat '/etc/hosts' | grep "$input_domain" > /dev/null then echo "域名为$input_domain已存在" domain_flag='' continue fi 阅读全文
posted @ 2020-06-09 21:33 TBHacker 阅读(7186) 评论(0) 推荐(0) 编辑
摘要: 正则表达式匹配域名 ^(http(s)?:\/\/)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:[0-9]{1,5})?$ 在shell中使用 read -p "请输入域名: " input_domain ech 阅读全文
posted @ 2020-06-09 21:14 TBHacker 阅读(1829) 评论(0) 推荐(0) 编辑
摘要: mysqli <?php $servername = "localhost"; $username = "root"; $password = "123456"; $dbname = "test"; // 创建连接 $conn = new mysqli($servername, $username, 阅读全文
posted @ 2020-06-09 14:53 TBHacker 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 基类 <?php /** * User: Eden * Date: 2019/3/21 * 共有内容 */ namespace Common\Service; use Vendor\Func\Http; class AliService extends CommonService { public 阅读全文
posted @ 2020-06-06 16:07 TBHacker 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: 引入 @font-face { font-family: 'huakang'; src:url('https://cdn.caomall.net/huakang_hupin.ttf'); } 使用 .huakang { font-family: 'huakang'; } 少量使用的话,可以用字蛛压缩 阅读全文
posted @ 2020-06-04 11:56 TBHacker 阅读(1401) 评论(0) 推荐(0) 编辑
摘要: 字蛛是一个智能 WebFont 压缩工具,它能自动分析出页面使用的 WebFont 并进行按需压缩。 官网 http://font-spider.org/ github https://github.com/aui/font-spider 安装 sudo npm install font-spide 阅读全文
posted @ 2020-06-04 11:37 TBHacker 阅读(578) 评论(0) 推荐(0) 编辑
摘要: html <block wx:if="{{index_info.video != false}}"> <view class="tv"> <view class="head1"> <text class="one">动漫<text >说</text></text> </view> <view cla 阅读全文
posted @ 2020-06-03 21:33 TBHacker 阅读(920) 评论(0) 推荐(0) 编辑
摘要: html <view class="person-info"> <image class="head-img" src="/images/tmp/demo.png" /> <view class="person-detail"> <view class="user-name"> 张三 <text c 阅读全文
posted @ 2020-06-03 12:03 TBHacker 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: html <view class="item"> <view class="line-date">帮扶日期:2019-12-27</view> <view class="line-person">被帮扶人:张三</view> <view class="line-title">帮扶主题:企业爱心送温暖 阅读全文
posted @ 2020-06-03 11:51 TBHacker 阅读(788) 评论(0) 推荐(0) 编辑
摘要: html <form bindsubmit="formSubmit"> <view class="main"> <view class="top-title">基本信息</view> <view class="form-content"> <view class="form-item"> <view 阅读全文
posted @ 2020-06-02 16:51 TBHacker 阅读(3036) 评论(0) 推荐(0) 编辑
摘要: 选择ssl证书服务 购买免费证书 补全信息 配置域名认证(去阿里云) 等一会,等待证书签发,签发之前,订单状态为待确认 去CDN中修改配置(根据备注名选择ssl证书) 搞定了!!! 阅读全文
posted @ 2020-06-02 09:51 TBHacker 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 案例1: <?php // 表示由数据库返回的可能记录集的数组 $a = array( array( 'id' => 5698, 'first_name' => 'Bill', 'last_name' => 'Gates', ), array( 'id' => 4767, 'first_name' 阅读全文
posted @ 2020-05-29 09:36 TBHacker 阅读(794) 评论(0) 推荐(0) 编辑
摘要: <view class="contact" bindtap="go_to_contact" style="z-index:9999;position:fixed; bottom:250rpx;right:20rpx;"> <image class="contact-img" src="/images 阅读全文
posted @ 2020-05-26 16:03 TBHacker 阅读(3155) 评论(0) 推荐(0) 编辑
摘要: 由于开红包和领红包位于一个位置,可用绝对定位来处理! html css js 通过几个变量,可以灵活的控制内容展示。 阅读全文
posted @ 2020-05-25 15:06 TBHacker 阅读(557) 评论(0) 推荐(0) 编辑
摘要: html css 阅读全文
posted @ 2020-05-25 10:26 TBHacker 阅读(665) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 114 下一页