layout | author | title | revision | version | description |
---|---|---|---|---|---|
default |
mattmc3 |
Modern SQL Style Guide |
2019-01-17 |
1.0.1 |
A guide to writing clean, clear, and consistent SQL. |
原文:高效开发运维
虽说干的是信息化智能化的行当,但每个 IT 工程师都必定踩过“IT 系统不智能”的坑。就拿企业组建局域网来说,为了对网络接入用户身份进行确认,确保用户权限不受办公地点变更的影响,许多 IT 工程师都习惯开启 “手动模式”和苦逼的“加班模式”。
其实,企业组建局域网的配置也是有“套路”的。IT 新人也能现学现用,轻松几步,教你飞速提高企业网络准入的安全性。
方案规划
对于企业 IT 工程师来说,什么样的企业网络是我们需要的呢,是快捷,还是安全,让我们来想象一下。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
最好的 NMAP 扫描策略 | |
# 适用所有大小网络最好的 nmap 扫描策略 | |
# 主机发现,生成存活主机列表 | |
$ nmap -sn -T4 -oG Discovery.gnmap 192.168.56.0/24 | |
$ grep "Status: Up" Discovery.gnmap | cut -f 2 -d ' ' > LiveHosts.txt | |
# 端口发现,发现大部分常用端口 |
- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shell脚本编程30分钟入门 | |
==================== | |
## 什么是Shell脚本 | |
### 示例 | |
看个例子吧: | |
#!/bin/sh | |
cd ~ | |
mkdir shell_tut | |
cd shell_tut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
刚才看博客的时候,发现有位童鞋(@arliang725 )在评论问 gist 是什么。于是我也试着搜索了一下,搜到了一篇译文: | |
Github作为代码分享平台在开发者中非常流行。此平台托管了包括游戏、书籍以至于字体在内的一千两百多万个项目(现在更多),这使其成为互联网上最大的代码库。 | |
Github还提供另一个非常有用的功能,这就是Gist。 | |
开 发人员常常使用Gist记录他们的代码片段,但是Gist不仅仅是为极客和码农开发的,每个人都可以用到它。如果您听说过类似Pastebin或者 Pastie这样的web应用的话,那您就可以看到它们和Gist很像,但是Gist比它们要更优雅。因为这些免费应用一般含有广告,而且带有很多其他杂 七杂八的功能。 | |
Gist – 任何人都能用得着 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
修改 ~/.ssh/config, 设置如下 | |
Host unix2dos | |
HostName github.com | |
IdentityFile ~/.ssh/github-unix2dos | |
User unix2dos | |
Host levonfly | |
HostName github.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:ADMIN | |
openfiles >nul 2>nul ||( | |
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" | |
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" | |
"%temp%\getadmin.vbs" >nul 2>&1 | |
goto:eof | |
) | |
del /f /q "%temp%\getadmin.vbs" >nul 2>nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:UTF8 -*- | |
#1.概念: | |
# 正则表达式(或 RE)是一种小型的、高度专业化的编程语言, | |
# (在Python中)它内嵌在Python中,并通过 re 模块实现。使用这个小型语言, | |
# 你可以为想要匹配的相应字符串集指定规则;该字符串集可能包含英文语句、email | |
# 地址、TeX命令或任何你想搞定的东西。然后你可以问诸如“这个字符串匹配 | |
# 该模式吗?”或“在这个字符串中是否有部分匹配该模式呢?”。你也可以使用 RE | |
# 以各种方式来修改或分割字符串。 | |
# | |
# 正则表达式语言相对小型和受限(功能有限),因此并非所有字符串处理都能用 |