Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
perXautomatik /
Created February 18, 2023 15:33
What is Spot Welding? (A Complete Welding Process Guide) - TWI

Materials Appropriate for Spot Welding

Due to its lower thermal conductivity and higher electrical resistance, steel is comparatively easy to spot weld, with low carbon steel being most suited to spot welding. However, high carbon content steels (Carbon equivalence > 0.4wt%) are prone to poor fracture toughness or cracking in the welds as they tend to form hard and brittle microstructures.

Galvanised steel (zinc coated) requires slightly higher welding currents to weld than uncoated steels.  Also, with zinc alloys, the copper electrodes rapidly degrade the surface and lead to a loss of weld quality. When spot welding zinc coated steels, electrodes must either be frequently exchanged or the electrode tip surface should be ‘dressed’, where a cutter removes contaminated material to expose a clean copper surface and reshapes the electrode. 

Other materials commonly spot welded include stainless steels (in particular austenitic and ferritic grades), nickel alloys and titanium.

Although aluminium has a thermal

perXautomatik / git_add_submodule.ps1
Created February 8, 2023 08:44 — forked from ShenTengTu/git_add_submodule.ps1
[Powershell] Add Git Submodule from .gitmodules
View git_add_submodule.ps1
Write-Host "[Add Git Submodule from .gitmodules]" -ForegroundColor Green
Write-Host "... Dump git_add_submodule.temp ..." -ForegroundColor DarkGray
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' > git_add_submodule.temp
Get-content git_add_submodule.temp | ForEach-Object {
try {
$path_key, $path = $_.split(" ")
$url_key = "$path_key" -replace "\.path",".url"
$url= git config -f .gitmodules --get "$url_key"
Write-Host "$url --> $path" -ForegroundColor DarkCyan
perXautomatik / correctly-check-if-a-process-is-running-and-stop-it.ps1
Last active January 30, 2023 09:28
powershell - How to Correctly Check if a Process is running and Stop it - Stack Overflow
View correctly-check-if-a-process-is-running-and-stop-it.ps1
# get Firefox process
$firefox = Get-Process firefox -ErrorAction SilentlyContinue
if ($firefox) {
# try gracefully first
# kill after five seconds
Sleep 5
if (!$firefox.HasExited) {
$firefox | Stop-Process -Force
perXautomatik / Compare-DFStoFolders.ps1
Created January 17, 2023 12:31 — forked from markwragg/Compare-DFStoFolders.ps1
Powershell script to get a list of DFS folder targets for all DFS folders under a defined path and test if those paths are valid from the location running the script.
View Compare-DFStoFolders.ps1
$Servers = @("SERVER01","SERVER02","SERVER03")
$FolderPaths = $Servers | foreach {
Get-ChildItem "\\$_\DFSShare$"
} | Sort Path
$FolderPaths | Export-Csv "FolderPaths-$(Get-Date -format yyyy-MM-dd).csv" -NoTypeInformation
$TestPaths = (($FolderPaths).FullName | Sort-Object).Trimend('\')
$DFSPaths = ((Import-CSV "DFS-$(Get-Date -format yyyy-MM-dd).csv").TargetPath | Where-Object {($_ -ilike "*SERVER*") | Sort-Object).Trimend('\')
perXautomatik / JEWebDav.ps1
Created January 15, 2023 18:18 — forked from darkquasar/JEWebDav.ps1
Simple WebDav Server in Powershell
View JEWebDav.ps1
Obtained from
Simple Reverse Shell over HTTP. Deliver the link to the target and wait for connectback.
Read And Write Files Over WebDAV Proof Of Concept
perXautomatik /
Last active January 15, 2023 10:33
How to create a FileFolder in Windows? - Super User

Windows has the ability to create shortcuts. When you do, they appear as shortcuts in the files section of a folder. To create one, you right click, new, shortcut, or copy and paste as shortcut amonst other options.

However, windows also has something called a FileFolder, which is a shortcut that is treated like a folder, rather than a file. So with sorting, it appears in the folders location, it appears in the folderviewpane and from the addressbar.

Now, there's also the symbolic links, which is similar to FileFolders, but one thing a symbolic link cannot do, is be placed on a network share and point to a folder on your local computer that is not shared, and if you open that link from a different computer, it opens on their computer instead, like a normal shortcut would do.

A way to create a FileFolder is to use the Add a network location wizard and link to it.

So far I figured out that the location of this FileFolder is:

perXautomatik /
Created January 15, 2023 10:16
How does the Windows File Explorer Quick Access recent items feature work? - Super User

Quick Access is a virtual folder that presents two JumpLists in a folder view --- Frequentfolders and Recentfiles.

Jumplists are most commonly seen when you right-click on a Taskbar icon. enter image description here

The best overview of their behavior I found is this MS article.

By default, a standard Jump List contains two categories: recent items and pinned items, although because only categories with content are shown in the UI, neither of these categories are shown on first launch. Always present are an application launch icon (to launch more instances of the application), an option to pin or unpin the application from the taskbar, and a Close command for any open windows.


perXautomatik /
Created January 15, 2023 10:00
Shell Links - Win32 apps | Microsoft Learn
perXautomatik / initial
Created November 4, 2022 09:12
Powershell Ise ideas
perXautomatik /
Created October 26, 2022 10:25
Working with PowerShell variables - C#, ASP.Net, VB.Net

Variable name syntax

Now what about variable names? What characters are allowed in a variable name? The answer is: any character you want, with some caveats. There are two notations for variables. The simple notation starts with a dollar sign followed by a sequence of characters, which can include letters, numbers, the underscore, and the colon. The colon has a special meaning that we'll get to in a minute. The second notation allows you to use any character in a variable name. It looks like this:

${This is a variable name}

You can use any character you want in the braces. You can even use a close brace if you escape it, as we see in the next example.
PS (7) > ${this is a variable name with a `} in it}
PS (8) > ${this is a variable name with a `} in it} = 13