Stop all containers
docker container stop $(docker container ls -aq)
Remove all containers
docker container rm $(docker container ls -aq)
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f |
reg delete HKLM\SOFTWARE\Policies\Google\Chrome /v SyncDisabled /f | |
reg delete HKLM\SOFTWARE\Policies\Google\Chrome /v IncognitoModeAvailability /f | |
reg delete HKLM\SOFTWARE\Policies\Google\Chrome /f | |
reg delete HKLM\SOFTWARE\Policies\Google /f |
function Test-SupportShouldProcess { | |
[CmdletBinding(SupportsShouldProcess)] | |
param( | |
[switch]$force | |
) | |
# Use this to prompt the user by default. Use -Force to disable prompting. | |
# NOTE: that you have to add the $force parameter yourself, as shown above. It doesn't even have to be | |
# named $force. How you implement this is up to you. | |
if ($force -or $PSCmdlet.ShouldContinue("Some resource", "Would you like to continue?") ) { |
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2020-04-12 13:06:26" build="191012"> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{Shells::PowerShell (Admin)}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> |
def list_files(path, level) | |
if File.directory?(path) | |
Dir.foreach(path) do |item| | |
if item != '.' && item != '..' && item != '$RECYCLE.BIN' && item != 'System Volume Information' | |
item = File.join(path, item) | |
size = File.size(item) | |
if File.directory?(item) | |
print("#{"\t" * level}#{item}\n") |
1. Create a file: /etc/wsl.conf. | |
2. Put the following lines in the file in order to ensure the your DNS changes do not get blown away | |
[network] | |
generateResolvConf = false | |
3. In a cmd window, run wsl --shutdown | |
4. Restart WSL2 | |
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file. | |
6. Put the following line in the file |
void Main() | |
{ | |
FindGCF(154875, 137688, 182664).Dump(); | |
} | |
int FindGCF(params int[] nums) | |
{ | |
return nums.Aggregate((result, num) => GCF(result, num)); | |
} |
$sources = @( | |
'F:\Movies\720p', | |
'F:\Movies\Bengali', | |
'F:\Movies\Ero', | |
'F:\Movies\Indian', | |
'F:\Movies\LQ', | |
'H:\Movies\1080p', | |
'H:\Movies\Collections', | |
'H:\Movies\Unwatched2', | |
'J:\Movies\4K', |