'7. Tips'에 해당되는 글 118건
- 2014.06.03 [Fiddler] WCF Binary Message Inspector
- 2014.06.02 Knife bootstrap failed only with "Connection closed by remote host"
- 2014.05.22 List All Linux Commands
- 2014.01.06 Forward Engineer SQL script using MySQL Workbench
- 2013.12.16 Fix slow connections to SSH server
- 2013.12.08 How to get the codes of a recipe from chef server.
- 2013.11.30 빌드 옵션에 따른 Web.Config / ServiceReferences.ClientConfig 구성하기
- 2013.09.26 How to find the public key token for a .NET DLL or assembly
- 2013.09.26 Remote Debugging 설정
- 2013.09.26 Chef-Server 관련 정리
- 2013.09.22 How to disable intellisense for XAML in VS2010?
- 2013.07.30 Silverlight 개발 시 설치해야할 것 들
- 2013.07.30 2010 필수 Extensions
- 2013.07.29 Connect to Ubuntu 12.04 via Windows Remote Desktop
- 2013.07.15 Ubuntu 12.04 LTS 64bit 에 Chef Server 설치하기
- 2013.07.14 Desktop.ini 파일 보이지 않게 하기
- 2013.06.14 Middle-Click on the Taskbar to Quickly Open and Close Application Windows
- 2013.02.20 Google Lunar (구글 음력 등록기)
- 2012.05.08 Eclipse Color Themes
- 2012.05.04 Install sun java 6 on Ubuntu 10.04 LTS
Source: https://github.com/waf/WCF-Binary-Message-Inspector
BinaryMessageFiddlerExtension.dll
WCF Binary Message Inspector
This is a modification of the WCF Binary Message Inspector. It provides two notable enhancements:
Uses a collapsible tree view instead of a textarea to display the decoded WCF binary message.
Allows editing and reissuing of captured WCF binary messages (thanks to HofmaDresu)
Installation for Fiddler2
Copy the file BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension.dll (direct download) into C:\Program Files\Fiddler2\Inspectors and restart Fiddler.
Installation for Fiddler4 (Beta)
Copy the file BinaryMessageFiddlerExtension/bin/Release/BinaryMessageFiddlerExtension_Fiddler4.dll (direct download) into C:\Program Files\Fiddler2\Inspectors and restart Fiddler.
Tree View Usage
The tree view provides the following shortcuts:
Ctrl+c — Copy current node XML
Ctrl+Shift+c — Copy tree XML
Alt+→ — Expand node and all child nodes
Alt+← — Collapse node and all child nodes
Middle-click — Toggle expand/collapse of node and all child nodes
Edit Usage
Capture a WCF binary message
In the sessions list, right click on the message and choose "Unlock for editing"
Edit the request
Reissue the request using the toolbar or the session list context menu
Knife bootstrap failed only with "Connection closed by remote host"

Knife bootstrap beyond a jump host failed just showing following log:
DEBUG: Adding xx.xx.xxx.xxx DEBUG: establishing connection to 127.0.0.1:xxxxxx DEBUG: connection established INFO: negotiation protocol version ERROR: Net::SSH:Disconnect: connection closed by remote host |
To resolve this, change ssh config as below on the jump host:
sudo vi /etc/ssh/sshd_config
AllowTcpForwading yes |
And restart ssh service.
Using compgen can list all available commands in Linux.
compgen -c |
Using grep command together, you can extract some command to find.
compgen -c | grep mysql |
To list all the bash shell aliases available,
compgen -a |
Reference: http://www.cyberciti.biz/open-source/command-line-hacks/compgen-linux-command/
Forward Engineer SQL script using MySQL Workbench

MySQL Workbench had nice feature to make SQL script to create a schema from existing database but it was not easy to find where it is.
1. Start MySQL Workbench
2. Select "Create EER Model From Existing Database" in the 'Data Modeling' section.
(If you already have existing EER model, select it)
* Enter required information and select Schema to reverse engineer
3. If EER Diagram is opened without any problem, Select "File > Export > Forward Engineer SQL CREATE Script..." like the following :
4. Select any option as you wish from the dialog and proceed the steps until the finish button is shown like the following.
5. It's the SQL script we want.
My development ubuntu was too slow when connecting through ssh. To make this faster, I added the following option on sshd_config.
sudo vi /etc/ssh/sshd_config UseDNS no
Before using this option, I thought that Ssh.Net library caused this with its insufficient ability but it's my mistake.
There might be more options to consider this.
GSSAPIAuthentication no # ipv4 only AddressFamily inet
In my case, "UseDNS no" satisfied me.
From
- http://unsharptech.com/2009/04/11/fix-slow-connections-to-ubuntu-ssh-servers/
- http://cosmicb.no/2013/09/11/slow-delayed-hanging-ssh-connect-from-one-centos-6-to-an-other-centos-6/
How to get the codes of a recipe from chef server.

I was digging the way how to get the codes of a recipe from chef server. Finally I found the command:
administrator@ubuntu:~/temp$ knife cookbook show test2 latest recipes default.rb # # Cookbook Name:: test2 # Recipe:: default # # Copyright 2013, YOUR_COMPANY_NAME # # All rights reserved - Do Not Redistribute #
빌드 옵션에 따른 Web.Config / ServiceReferences.ClientConfig 구성하기

빌드 옵션에 따른 Web.Config / ServiceReferences.ClientConfig 구성하기
(Enabling Transforms for Web.Config and ServiceReferences.ClientConfig)
참고:
http://www.kongsli.net/nblog/2012/01/13/enabling-web-transforms-when-debugging-asp-net-apps/
http://msdn.microsoft.com/en-us/library/vstudio/dd576348.aspx
첨부 예제 참고.
Debug / Release 옵션에 따라,
실버라이트 클라이언트와 WCF 서비스가 실행되도록 구성함.
TFS 연동과는 아직 테스트 해보지 않았으나, 구글링 해보니 아래 TFS 에 web.config 와 servicereferences.clientconfig 를 TFS 와 연동되지 않도록 하면 되지 않을까 함.
How to find the public key token for a .NET DLL or assembly

Public Key Tokens with sn
Just run sn -T followed by your DLL or assembly. Here’s an example:
PS > sn -T "C:\dev\System.Data.SQLite.dll"
Microsoft (R) .NET Framework Strong Name Utility Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
Public key token is db937bc2d44ff139
Public Key Tokens with gacutil
If the DLL is in the GAC, you can do the same thing with gacutil:
PS > gacutil -l System.Data.SQLite
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
System.Data.SQLite, Version=1.0.84.0, Culture=neutral,
PublicKeyToken=db937bc2d44ff139, processorArchitecture=AMD64
Number of items = 1
1. 디버깅 대상 PC 에 Microsoft Visual Studio Remote Debugger 설치
아래 링크는 2010 버전
http://www.microsoft.com/ko-kr/download/details.aspx?id=475
2. 방화벽 확인
Ports |
Protocol |
|
135 |
TCP |
Required |
500, 4500 |
UDP |
Required if your domain policy requires network communication to be performed through IPSec |
3. 디버깅 대상 PC 에서 아래 명령으로 실행
runas /user:youruserid /netonly msvsmon.exe
- msvsmon 위치 예
C:\Program Files\Microsoft Visual Studio 20.0\Common7\IDE\Remote Debubbger\x64
C:\Program Files\Microsoft Visual Studio 20.0\Common7\IDE\Remote Debubbger\x32
- 동일한 도메인이 아닌 경우
youruserid 의 계정이 디버깅 대상 PC 와 디버깅 PC 에 동일한 id 와 password 로 된 계정이 존재해야 함.
4. msvsmon > Tools > permissions
add user "youruserid"
(msvsmon 실행할 때 마다 해 줌)
5. 연결 정보 확인
6. Visual Studio > Debug > Attach to process
Transport : Default
Qualifier : 5번에 나오는 Server name
프로세스 목록 나오면 성공.
Remote Debuggin Across Domains 도 해보면 좋을 듯
(http://msdn.microsoft.com/en-us/library/9y5b4b4f(v=vs.100).aspx)
및 여기저기
openssl 명령
openssl x509 -in file -noout -text
openssl x509 -noout -issuer -in file
인증서 찾기
sudo find -name '*.crt' | awk '{print "openssl x509 -noout -issuer -in " $1}' > ~/test.sh
chef-server 인증서 위치
/var/opt/chef-server/nginx/ca/test.org.crt
=> test.org.key 는 chef-client 복호화 할 때 사용
Https 복호화
Wireshark > Edit > Preferences > Protocols > SSL
IP Address : 70.7.56.XX
port : 443
Protocol : http
Key file /home/user/test.org.key
Private key 를 이용한 암호화
echo "test" | openssl rsautl -sign -inkey private.pem | openssl enc -base64 > file
이를 다시 복호화
cat fie | openssl enc -base64 -d | openssl rsautl -verify -inkey private.pem
How to disable intellisense for XAML in VS2010?

Xaml 편집 시 "Auto List Members" 옵션을 꺼두면 좀더 빠릅니다. 이를 꺼두고 필요할 때 [Ctrl] + [Space] 로 불러다 쓰면 됩니다. 자동으로 나온다고 해서 그다지 편리하지도 않고 느리기까지 하니 좋은 성능의 피시가 아니라면 꺼두시기 바랍니다.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor\XAML\Auto List Members
의 값을 0으로 지정합니다.
참고: http://stackoverflow.com/questions/6954328/how-to-disable-intellisense-for-xaml-in-vs2010
Silverlight 5 와 Visual Studio 2010 에 맞춘거임.
1. Silverlight 5
Silverlight.exe
http://www.microsoft.com/silverlight/
2. Microsoft® Silverlight® 5 Tools for Visual Studio® 2010 SP1
Silverlight5_Tools.exe
http://www.microsoft.com/en-us/download/details.aspx?id=28358
(Visual Studio 언어 버전이 맞아야만 설치할 수 있음, )
3. Microsoft® Silverlight® 5 SDK
silverlight_sdk.exe
http://www.microsoft.com/en-us/download/details.aspx?id=28359
4. Silverlight Toolkit
Silverlight_5_Toolkit_December_2011.msi
http://silverlight.codeplex.com/
일단 이 정도는 설치해 주어야 합니다!
Visual Assist X 는 유료,
나머지는 Microsoft 에서 제공하는 무료!
아래 세팅도 필수!
http://codemuri.tistory.com/entry/Visual-Studio-Macro-Locate-Item-in-Solution-Explorer-on-Demand
Connect to Ubuntu 12.04 via Windows Remote Desktop

1. sudo apt-get install xrdp
2. sudo apt-get install gnome-session-fallback
3. echo "gnome-session --session=ubuntu-2d" > ~/.xsession
재부팅하고, Remote Desktop Connection (원격 데스크톱 연결) 도구로 연결하면 됨.
From: http://www.liberiangeek.net/2012/05/connect-to-ubuntu-12-04-precise-pangolin-via-windows-remote-desktop/
Ubuntu 12.04 LTS 64bit 에 Chef Server 설치하기

좀더 정리가 필요하지만, 일단은 다음과 같다.
Ubuntu Desktop 12.04 LTS 64 bit (32bit는 Chef 설치안됨)
설치하기전 준비 사항
FQDN 이 설정되어야 함.
> hostname
sskk-VirtualBox
> hostname -f
hostname: Name or service not known
과 같이 나오는 경우,
> sudo gedit /etc/hosts
* You must specify the host name(above sskk-VirtualBox) in the list.
http://docs.opscode.com/install_server.html
* Go to http://www.opscode.com/chef/install.
* Click the Chef Server tab.
* Select the operating system, version, and architecture.
* Select the version of Chef Server 11.x to download, and then click the link that appears to download the package.
* Install the downloaded package using the correct method for the operating system on which Chef Server 11.x will be installed.
* Configure Chef Server 11.x by running the following command:
$ sudo chef-server-ctl reconfigure
* Verify the installation of Chef Server 11.x by running the following command:
$ sudo chef-server-ctl test
* Visit https://test.org then you can see the below welcom page!
"폴더 옵션"에 다음과 같이 설정된 경우,
--------------------------------------------
"숨김 파일, 폴더 및 드라이브 표시" 선택
"알려진 파일 형식의 파일 확장명 숨기기" 해제
--------------------------------------------
불필요한 desktop.ini 가 보이는게 성가실때 가 있습니다. 이때는
"보호된 운영 체제 파일 숨기기(권장)"
옵션을 체크하면 됩니다.
Middle-Click on the Taskbar to Quickly Open and Close Application Windows

Windows 7: Use the middle-click button on your mouse and the taskbar to open a new window for an application or quickly close a window. Here's how.
To open a new window for an application, middle-click on its icon in the taskbar. For example, middle-clicking on the Chrome icon will open a new browser window.
To close a window, middle-click on its Aero Peek thumbnail. This could be useful when you have multiple windows open, since you can quickly close a bunch of them by middle-clicking.
이클립스에 Color 테마를 제공하는 사이트 입니다.
http://www.eclipsecolorthemes.org/
디폴트 칼라 테마에 식상한데 직접 손대기 귀찮으신 분은 위 링크에서 촉이 오는 스타일의 EPF 파일을 다운받아서 적용하시기 바랍니다.
EPF 파일 테마 적용법은 아래 동영상 참고.
출처: http://crazia.tistory.com/773
http://source.android.com 에 나오는 방법대로 해도 java6 가 설치되지 않았습니다. 이에 대한 해결책은 다음과 같습니다.
$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ferramroberto/java $ sudo apt-get update $ sudo apt-get install sun-java6-jdk sun-java6-plugin