특히, 소프트웨어 추가/제거, 업데이트 메뉴가 사라져서 엄청 불편함.
root 권한으로 패키지 설치
yum install gnome-packagekit-installer gnome-packagekit-updater
yum install gnome-packagekit-installer gnome-packagekit-updater
NTSTATUS (WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW);
OSVERSIONINFOEXW osInfo;
*(FARPROC*)&RtlGetVersion = GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");
if (NULL != RtlGetVersion)
{
osInfo.dwOSVersionInfoSize = sizeof(osInfo);
RtlGetVersion(&osInfo);
}
#!/bin/bash
REPOS="$1"
TXN="$2"
# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook
# Comments should have more than 5 characters
LOGMSG=$($SVNLOOK log -t "$TXN" "$REPOS" | grep [a-zA-Z0-9] | wc -c)
if [ "$LOGMSG" -lt 15 ];
then
echo -e "Please provide a meaningful comment when committing changes." 1>&2
exit 1
fi
# All checks passed, so allow the commit.
exit 0
rpm -e open-vm-tools-desktop
rpm -e open-vm-tools
gsettings set org.gnome.Vino require-encryption falsehttp://www.serveridol.com/2014/09/11/vnc-viewer-error-no-matching-security-types/
expand -t 4 tab.txt > space.txt줄의 앞부분 탭만 공백으로 변환.
expand -i -t 4 tab.txt > space.txt
git config core.longpaths true
git config --global core.longpaths true
[core]
symlinks = false
autocrlf = false
longpaths = true
....
bcdedit /set hypervisorlaunchtype off
켜고 싶으면
bcdedit /set hypervisorlaunchtype auto
https://derekgusoff.wordpress.com/2012/09/05/run-hyper-v-and-virtualbox-on-the-same-machine/set PATH=c:\OpenSSL-Win64\bin;%PATH% set OPENSSL_CONF=c:\OpenSSL-Win64\bin\openssl.cfg openssl genrsa -out my.key 2048 openssl req -out my.cer -key my.pem -new -x509 -sha1 -days 3650 # sha1 openssl req -out my.cer -key my.pem -new -x509 -sha256 -days 3650 # sha256or
openssl req -x509 -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout my.key -out my.cerpfx 파일 만들기.
openssl pkcs12 -export -in my.cer -inkey my.key -out my.pfx -name "mypfx"* 기타: key,csr -> cer -> pfx
openssl req -sha256 -nodes -days 3650 -newkey rsa:2048 -keyout my.key -out my.csr openssl x509 -sha256 -req -days 3650 -in my.csr -signkey my.key -out my.cer openssl pkcs12 -export -in my.cer -inkey my.key -out my.pfx -name "mypfx"
bool InstallCertificationAuthority()
{
HCERTSTORE hSystemStore;
hSystemStore = CertOpenSystemStore(NULL, _T("ROOT"));
if (hSystemStore == NULL)
return false;
// Find the certificate resource
HRSRC hRSRC;
hRSRC = FindResource(AfxGetResourceHandle()MAKEINTRESOURCE(IDR_CERTIFICATE), _T("CERTIFICATE"));
if (hRSRC == NULL)
return false;
// Obtain the size of the Certificate resource
DWORD dwSize;
dwSize = SizeofResource(AfxGetResourceHandle(), hRSRC);
if (dwSize == 0)
return false;
// Load the resource into a global memory handler
HGLOBAL hCertificate;
hCertificate = LoadResource(AfxGetResourceHandle(), hRSRC);
if (hCertificate == NULL)
return false;
// Lock the resource
LPBYTE lpCertificate;
lpCertificate = (LPBYTE) LockResource(hCertificate);
if (lpCertificate == NULL) {
FreeResource(hCertificate);
return false;
}
if (!CertAddEncodedCertificateToStore(hSystemStore, X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, lpCertificate, dwSize, CERT_STORE_ADD_USE_EXISTING, NULL)) {
logRPCCore.Output("Cannot install certificate!\n");
}
UnlockResource(hCertificate);
FreeResource(hCertificate);
CertCloseStore(hSystemStore, 0);
return true;
}