分类 互联网 下的文章

记一次被非法引流刷恶意关键字

起因

每到春节前后,我都比较关注服务器的状况,而且最近一直在研究docker,然后自己的站点又全部署到了docker容器中了,偶尔会上来看下。
这两天就看到很奇怪的现象,我的这个小博客,理论上每天访问的人数都是不多的,就30-40个ip,pv也就是50-80左右,最近一段时间却异常的凶猛。
见下图



- 阅读剩余部分 -

[docker]nginx利用certbot4docker 自动续期证书

使用certbot可以简单的申请证书,并且能够通过简单的任务配置,达到自动续期的目的。我现在的站点就是用的let's Encrypt的证书,每3个月需要续期一次,比较繁琐。所以,就想到用certbot来做续期,但是又不想在机器中装太多依赖,一来比较冗余,毕竟3个月才跑一次,二来也是担心工具装的太多,以后迁移系统比较麻烦。

- 阅读剩余部分 -

[docker]整站迁移到docker容器中3

在我docker整站迁移到docker容器中2这篇文章中,我分析了要做的内容,接下去的日志我将会慢慢更新提及的几个关键服务软件的搭建方式,以及我将会记录下对应遇到的坑。

目前我本地试验php-fpm+nginx 是成功了,本来想发一个脚本出来,简单记录下这两个如何搭建,但是感觉没有太大的必要,最后面我还是需要重新搭一次,作罢!

- 阅读剩余部分 -

[docker]整站迁移到docker容器中1

最近学习docker,觉得docker实在是个好东西,值得一用。
就打算将本站迁移到docker容器中,这样一来安全性应该也有所保障(环境隔离),二来也适合日后的迁移(我理解是只要将dockerfile在其他系统执行,然后将持久化数据拷贝出来即可。)

为了达到迁移的目的,我打算进行以下几个步骤:

  1. 前期分析
  2. 模拟演练
  3. 实际操作

前期分析阶段,我打算花一周的时间进行资料查找,
模拟演练阶段,依照前期分析的计划而定,目前还没有一个具体的时间。
实际操作阶段,一周时间进行操作,届时站点可能会断断续续的无法访问。

这是一篇很耗时的文章,我打算在明年2月份就改造结束。

Total Commander命令行调用

自用的一个eclipse插件有打开资源管理器的功能,不知道为何资源管理器特别占CPU,打开很慢,所以想直接用tc打开算了。

tc的命令行参数很简单。举几个示例:

左边的窗口打开c:windows窗口

totalcmd.exe c:windows 或者:totalcmd.exe "c:windows"

左边打开d:data,右边打开c:programs

totalcmd.exe d:data c:programs 或者:totalcmd.exe "d:data" "c:programs"

右边的窗口打开d:data

totalcmd.exe /R=d:data 或者:totalcmd.exe /R="d:data"

左边窗口打开backup.zip文件

totalcmd.exe c:databackup.zip

激活tc,并且将左边的窗口设置为c:,右边的窗口设置为d:doc

totalcmd.exe /O /L=c: /R="d:doc"

================以下摘自help文件==============

Command line parameters

Total Commander can be called with one or two directories as
command line parameters. This will set these directories in one or both of the
file windows. This allows you to create multiple icons for Total Commander in
progman or the start menu, which start Total Commander in different directories
or even with packed files. Furthermore a different ini file than the default wincmd.ini can be specified to allow multiple users
on the same machine to have different settings in Total Commander.

Syntax:

totalcmd.exe [/o] [/n] [Drive1:Directory1 [Drive2:Directory2]]
[/i=name.ini] [/f=ftpname.ini]

or:

totalcmd.exe [/o] [/n] [/L=Drive1:Directory1]
[/R=Drive2:Directory2] [/i=name.ini] [/f=ftpname.ini]

Parameters:

Drive:DirectoryLoads the first
directory passed to Total Commander into the left window, and the second into
the right window. Directory names containing spaces must be put in double
quotes! Always specify the full path name including the drive! To open a stored
FTP connection, use FTPOPEN:stored_ftp_name as path. Also accepts shares
in the form \serversharesubdir or smb://server/share/subdir

Instead of a directory, you can also pass a
.tab file to load the saved tabs (replacing the current tabs).

/OIf Total Commander is already
running, activate it and pass the path(s) in the command line to that instance
(overrides the settings in the configuration
dialog to have multiple windows)

/NOpens in any case a new Total
Commander window (overrides the settings in the configuration dialog to allow only one copy of Total
Commander at a time)

/L=Set path in left window

/R=Set path right window

/AWhen an archive file is passed as
path, do not open it, but instead open the directory containing the archive and
set the archive as the active file (place the text cursor on it)

/SInterprets the passed dirs as
source/target instead of left/right (for usage with /O). For example, a dir
passed with /R= will be interpreted as the target dir.

/S=CStart "Compare by content"
without TC main window, e.g. totalcmd.exe /S=C c:file1 d:file2

/S=FOpen "Find Files" dialog
without TC main window, e.g. totalcmd.exe /S=F "c:start path"

Accepts additional parameters separated by
a colon, e.g. /S=F:S1Lname

SSort results
by: 1=name, 2=extension, 3=size, 4=date/time. Negative value for descending
order

L<x>As
LAST parameter: Load search with name <x>, e.g. "/S=F:Lmax 1 day
old"

/S=LStart Lister directly, pass
file name to it for viewing (requires full name including path). May include
bookmark in html files, e.g. c:testtest.html#bookmark

Accepts additional parameters separated by
a colon, e.g. /S=L:AT1C1250

AANSI/Windows
text

SASCII/DOS
text

VVariable
width text

T1..T7View
mode 1-7 (1: Text, 2: Binary, 3: Hex, 4: Multimedia, 5: HTML, 6:Unicode, 7:
UTF-8)

C<nr>Codepage, e.g. C1251 for Cyrillic

NAuto-detect,
but no multimedia or plugins allowed

P<x>As
LAST parameter: Choose plugin, e.g. /S=L:Piclview for iclview plugin (As shown
in Lister title)

/S=P:PORTStart a parallel or USB
port server for direct cable connection (Use LPT1 or USB as port names)

/S=SStart "Synchronize dirs"
directly, accepts two paths as parameters, or alternatively a settings name in
the form /S=S:SettingsName

If the parameter begins with an equal sign
"=", e.g. /S=S:=SettingsName, the comparison will start immediately. If the
equal sign is the only parameter, e.g. /S=S:= , the comparison will start with
the passed directories and last used options.

/O=list_nameOnly combined with
/S=S: Passes list file for function "Only selected (in main window)", e.g.
/O=%F

/TOpens the passed dir(s) in new
tab(s). Now also works when Total Commander hasn't been open yet.

/P=Sets the active panel at program
start: /P=L left, /P=R right. Overrides wincmd.ini option ActiveRight=.

/i=name.iniUse a different INI file
name.ini instead of wincmd.ini to save settings (see also: INI file description).

/F=ftpname.iniUse a different INI
file name.ini instead of wcx_ftp.ini to save settings for built-in FTP
client.

/d=<x>Delays the start of
Total Commander by <x> seconds (meant for the startup folder, if there are
problems with other programs, which start at the same time)

/INSTALLDRIVER(Windows NT-based
systems) Install parallel port driver - only needed if you want to use the parallel port connection as a normal user
and not as an administrator. Needs to be run as an administrator.

/INSTALLDRIVERQLike /INSTALLDRIVER,
but silent installation

/REMOVEDRIVER(Windows NT-based
systems) Removes the driver installed with the switch /INSTALLDRIVER

/REMOVEDRIVERQLike /REMOVEDRIVER,
but silent removal

The switches are NOT case sensitive.

Examples:

totalcmd.exe c:windowsleft window is
loaded with c:windows

totalcmd.exe d:data c:programsleft:
d:data, right: c:programs

totalcmd.exe /R=d:dataright window:
d:data

totalcmd.exe "d:Letters to Mr. Smith"left: long name -> in double quotes!

totalcmd.exe /R="d:Letters from Miller"right window loaded with long name

totalcmd.exe c:databackup.zipopens
backup.zip in the left window

totalcmd.exe /I=Miller.ini /F=MFtp.iniuse
Miller.ini instead of wincmd.ini for all settings, and MFtp.ini for FTP

totalcmd.exe /O /L=c: /R="d:doc"Activate
already running Total Commander and set the left path to c:, and the right path
to d:doc

totalcmd.exe /O /S /R=c:somepathOpen
c:somepath in the current TARGET panel of the running program. Explanation: /S
causes Total Commander to read /L as source and /R as target directory instead
of left and right.

totalcmd.exe /O /T /L=c:somepathOpen a
new directory tab on the left side of the already running Total commander with
c:somepath in it.

Eclipse插件笔记1

因为升级Eclipse201903,然后用link方式无法安装上我的插件,所以又开始研究了。。。

本来打算让插件上Eclipse Marketplace,但是因为写的比较个性化,而且涉及公司的一些代码,所以就算了,转而使用“Install New Software"的方式来安装,做法很简单。

- 阅读剩余部分 -

Visio 2016激活坑点

因为Visio 2013太卡了,就打算下载2016试下,结果一直卡在了激活这上面,KMS试了几十次都不好使,每次点击激活,都被退出,太烦了。晚上终于研究了下,看到C:\Program Files\KMSpico\logs 有个日志,打开进去看到:无法成功完成操作,因为文件包含病毒或潜在的垃圾软件

马上想到是微软的Defender搞鬼

百度了一波找到了一篇文章:https://jingyan.baidu.com/article/d2b1d102d2867c5c7f37d441.html

问题解决!