小编Sor*_*gal的帖子

通过命令行设置应用程序的窗口位置

我有一个应用程序,从我桌面的0x0位置开始.我想在桌面中心打开它.我不想打开它并使用移动命令将其移动到中心,只是希望我的应用程序立即开始在中心位置.

有没有办法通过命令提示符这样做?还有其他方法吗?

windows command-line position

36
推荐指数
4
解决办法
12万
查看次数

什么是Perl警告的C#等价物?

在Perl我可以说

use warnings;
warn "Non-fatal error condition, printed to stderr.";
Run Code Online (Sandbox Code Playgroud)

C#ASP.NET中的等价物是什么?具体来说,我正在寻找的是让我的团队中的其他成员知道他们何时仍在使用已弃用的例程.它应该在运行时出现,当代码路径实际被命中时,而不是在编译时(否则它们会得到关于代码位于兼容层的警告,该代码层应该永远不会运行.)

到目前为止,我最好的选择是使用Trace,感觉就像一个糟糕的黑客.

c#

5
推荐指数
2
解决办法
474
查看次数

bash IP whois 查找脚本

我有一个不错的管理脚本,用于检查哪些 IP 正在登录到一个网络应用程序,但我需要在开始时使用 whois 让它变得更奇特,然后我想到了 geoip。

目前我已经解决了其中的 whois 部分 - 我的问题是因为有多个 IP - whois 不知道如何处理它们

关于这方面的任何想法都会很棒吗?关于 geoips 的想法也会很可爱!

干杯

#!/bin/bash

#Setting date and time (y and z aren't being used at the moment)
x="$(date +'%d/%b/%Y')"
y="$(date +'%T')"
z="$(date +'%T' | awk 'BEGIN { FS =":"} ; {print $1}')"

#Human readable for email title
emaildate=$(date +"%d%b%Y--Hour--%H")

#Setting date and time for grep and filename
beta="$(date +'%d/%b/%Y:%H')"
sigma="$(date +'%d-%b-%Y-%H')"

#Current SSL Access logs
log='/var/log/apache2/ssl_access.log'
#Set saved log location
newlogs=/home/user/Scripts/logs

grep user@user.com $log …
Run Code Online (Sandbox Code Playgroud)

linux bash shell whois

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

bash ×1

c# ×1

command-line ×1

linux ×1

position ×1

shell ×1

whois ×1

windows ×1