#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): |
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
# See comment lines prefixed with ADDED | |
# It might be necessary to delete the existing DockerNAT switch in hyper-v manager | |
<# | |
.SYNOPSIS | |
Manages a MobyLinux VM to run Linux Docker on Hyper-V | |
.DESCRIPTION | |
Creates/Destroys/Starts/Stops A MobyLinux VM to run Docker on Hyper-V | |
.PARAMETER VmName |
Note: Read the comments section of the original gist, it has some really good feedback.
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.