This file contains hidden or 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
brew install ffmpeg | |
ffmpeg -i /path/to/input/file /path/to/output.mp4 |
This file contains hidden or 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
FROM alpine:3.8 | |
MAINTAINER ettingshausen <[email protected]> | |
WORKDIR / | |
ENV NPC_VERSION 0.23.1 | |
RUN set -x && \ | |
wget --no-check-certificate https://github.com/cnlh/nps/releases/download/v${NPC_VERSION}/linux_amd64_client.tar.gz && \ | |
mkdir \npc && \ | |
mv linux_amd64_client* /npc && \ |
This file contains hidden or 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
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |
This file contains hidden or 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
# pull docker image | |
docker pull breakwa11/shadowsocksr | |
# run | |
docker run -d --name ssr0 -p 1202:51348 -e METHOD="aes-256-cfb" -e PROTOCOL="auth_sha1_v4" -e OBFS="http_simple" -e PASSWORD="HelloWorld" breakwa11/shadowsocksr | |
#ss | |
docker pull mritd/shadowsocks | |
docker run -d --name ss -p 6443:6443 mritd/shadowsocks -s "-s 0.0.0.0 -p 6443 -m chacha20 -k password --fast-open" |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] | |
@="在此处打开命令提示符" | |
"Icon"="cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command] | |
@="cmd.exe /s /k pushd "%V"" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere] |
This file contains hidden or 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
FROM alpine | |
ENV user=ettingshausen | |
ENTRYPOINT [ "sh", "-c", "echo Hello $user !" ] | |
# build | |
# docker build -t docker-greet . | |
# run without env | |
# docker run -it --rm docker-greet |
This file contains hidden or 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
#export image | |
docker save raymondwong/idcardocr -o idcardocr.tar | |
#import image | |
docker load -i idcardocr.tar |
This file contains hidden or 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
:: Clone the .vmdk image to a .vdi. | |
vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi | |
:: Resize the new .vdi image (30720 == 30 GB). | |
vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720 | |
:: Optional; switch back to a .vmdk. | |
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk |
This file contains hidden or 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
EXEC sp_addlinkedserver | |
@server='DBMES', --链接服务器别名 | |
@srvproduct='', -- 如果是SQL Server 可以不用指定@srvproduct | |
@provider='SQLOLEDB', | |
@datasrc='172.16.0.91' --要访问的的数据库所在的服务器的ip | |
GO | |
EXEC sp_addlinkedsrvlogin | |
@rmtsrvname = 'DBMES', --链接服务器别名 | |
@useself = 'false', --是否使用当前账号登录 | |
@locallogin = NULL, |
This file contains hidden or 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
:: Name: sql_execute.cmd | |
:: Purpose: execute script.sql via sqlcmd | |
:: Author: ettingshausen | |
:: Revision: 2018/3/1 - initial version | |
:: | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SET parent=%~dp0 | |
SET interactive=0 |