git update-index --assume-unchanged <file>
git update-index --no-assume-unchanged
| @echo off | |
| cls | |
| echo browsers | |
| powershell cup Firefox | |
| powershell cup GoogleChrome | |
| cls | |
| echo plugins | |
| powershell cup Silverlight |
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |
| " Declare ignore filetype here | |
| let g:ignore_autosave = 'tex' | |
| function AutoSave() | |
| if &modifiable == 1 && &readonly == 0 | |
| \ && expand('%') != '' | |
| \ && &buftype != 'nofile' | |
| %s/\s\+$//e | |
| if &filetype != g:ignore_autosave | |
| update |
| $pkg = "hello-2.10" | |
| $file = "$pkg.tar.gz" | |
| # get dockerfile | |
| invoke-webrequest "https://raw.githubusercontent.com/deevus/docker-mxe/develop/Dockerfile" -outfile "Dockerfile" | |
| # get package | |
| if(!(test-path $file)) { | |
| invoke-webrequest "http://gnu.mirror.uber.com.au/hello/$file" -outfile $file | |
| } |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| using System; | |
| using System.ComponentModel; | |
| using System.Runtime.InteropServices; | |
| namespace PaulBettsWIN32 | |
| { | |
| static class Program | |
| { | |
| [STAThread] | |
| static void Main(string[] args) |
You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:
ssh-agent from Windows Services:Services in the Start Menu or Win+R and then type services.msc to launch the Services window;OpenSSH Authentication Agent in the list and double click on it;OpenSSH Authentication Agent Properties window that appears, choose Automatic from the Startup type: dropdown and click Start from Service status:. Make sure it now says Service status: Running.git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
| $sourceFilePath = "/etc/apt/archive" | |
| $siteAddress = "https://file.io/?expires=1w" | |
| $webClient = New-Object System.Net.WebClient | |
| $response | |
| try { | |
| $response = $webClient.UploadFile($siteAddress,$sourceFilePath) | |
| } catch { | |
| Write-Host $_ | |
| } | |
| [System.Text.Encoding]::ASCII.GetString($response) |