[SAMBA] exclude file/directory from shared folder
// which i dont want to share! how can i exclude this?
[myshare] path = /var/test veto files = /var/test/private
// where /var/test/private can be a file or directory.
2811 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
[myshare] path = /var/test veto files = /var/test/private
ssh username@win2000server -i privatekey
query session SESSIONNAME USERNAME ID STATE TYPE DEVICE >console 0 Conn wdcon rdp-tcp 65536 Listen rdpwd rdp-tcp#7 fakeuser 1 Active rdpwd
tsdiscon 1 /v Disconnecting sessionID 1 from sessionname RDP-Tcp#7
// hotstring = replacement text aref = <a href="%c">%|</a> // a quick html link with clipboard contents, and placing the cursor between the opening/closing tags) bbref = [url=%c]%|[/url] // same thing for bbcode tref = "%|":%#8221; // same thing for textile
rundll32.exe keymgr.dll, KRShowKeyMgr
C:\> chcp 1252
Start->Run->regedit Go to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage] And change the "OEMCP" value to "1252"
C:\> chcp
C:\> type codepage.txt
public static Image LoadImageFromURL(string URL)
{
HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create(URL);
HttpWebResponse response = null;
BinaryReader br = null;
MemoryStream stream = null;
request.Timeout = 10000; // 10 Seconds
try
{
int tmp = ServicePointManager.DefaultConnectionLimit;
response = (HttpWebResponse) request.GetResponse(); // i lock up on the second method call
br = new BinaryReader((response.GetResponseStream()));
byte[] buffer = new byte[256];
stream = new MemoryStream();
int length =0;
do
{
length = br.Read(buffer,0,256);
stream.Write(buffer,0,length);
}
while (length >0);
request.Abort();
request = null;
response.Close();
response = null;
return (Image)new Bitmap(stream);
}
catch(Exception e)
{
MessageBox.Show(e.Message.ToString());
return null;
}
finally
{
if (response != null)
{
response.Close();
response = null;
}
}
}
}
tree /f /a > tree.txt
dir /s /a /o:-d /t:c > file_list.txt
dir /s /a:-d /o:-d /t:c > file_list.txt