#How to create a .file
or .folder
on Windows
There are several ways
- Create
file.txt
- Rename to
.file.
, the last dot will be dropped, you'll have.file
Works the same with a file or a directory.
/* | |
* Licensed to the soi-toolkit project under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The soi-toolkit project licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
<!-- | |
<project-directory> | |
- src | |
-main | |
- axis2 | |
<all-wsdl-and-xsd-files> | |
- java | |
<all-src-code> | |
- resources | |
- META-INF |
@echo off | |
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" | |
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" | |
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" | |
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" | |
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" | |
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" |
import os | |
import errno | |
from subprocess import call | |
from gitlab import Gitlab | |
def mkdir_p(path): | |
try: | |
os.makedirs(path) | |
except OSError as exc: # Python >2.5 | |
if exc.errno == errno.EEXIST and os.path.isdir(path): |
# | |
# Include this in your own .gitconfig by using the | |
# [include] directive with the path to this file | |
# | |
# [include] | |
# path = ~/.gitconfig.aliases | |
# | |
# If you don't have any existing includes, you can add this via the following command | |
# | |
# git config --global include.path ~/.gitconfig.aliases |
The CLR ThreadPool has two types of threads - "Worker" and "I/O Completion Port" (aka IOCP) threads.
Task.Run(…)
or ThreadPool.QueueUserWorkItem(…)
methods. These threads are also used by various components in the CLR when work needs to happen on a background thread.The thread pool provides new worker threads or I/O completion threads on demand (without any throttling) until it reaches the "Minimum" setting for each type of thread. By default, the minimum number of threads is set to the number of processors on a system.
Once the number of existing (busy) threads hits the "minimum" number of threads, the ThreadPool will throttle the rate at which is injects new threads to one thread per 500 milliseconds. This means that if your system gets a burst of work needing an IOCP thread, it will proces
namespace Publisher | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |