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
using System; | |
#define s2S(s) gcnew String(s.c_str()) | |
//REF: https://msdn.microsoft.com/en-us/library/1b4az623.aspx | |
string S2s(String ^s) { | |
using namespace Runtime::InteropServices; | |
const char* chars = | |
(const char*)(Marshal::StringToHGlobalAnsi(s)).ToPointer(); | |
string ret = chars; |
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
#!/usr/bin/env bash | |
curl -Lso- http://update.aegis.aliyun.com/download/uninstall.sh | bash | |
curl -Lso- http://update.aegis.aliyun.com/download/quartz_uninstall.sh | bash | |
pkill aliyun-service | |
rm -rf /etc/init.d/agentwatch /usr/sbin/aliyun-service /usr/local/aegis* | |
[[ -f /usr/local/cloudmonitor/CmsGoAgent.linux-amd64 ]] && { | |
/usr/local/cloudmonitor/CmsGoAgent.linux-amd64 stop |
OlderNewer