Hot answers tagged

4 votes

How can I delete everything and leave only this in Notepad++?

Ctrl+H Find what: ^(.*?,)(?:.*?,){2}(.*?),.*$ Replace with: $1$2 TICK Wrap around SELECT Regular expression UNTICK . matches newline Replace all Explanation: ^ # beginning of line ( ...
  • 15.9k
3 votes

Powershell Winform. How to hide or disable combobox until chekbox checked?

I found the solution myself: $CheckBox3.Add_CheckStateChanged({ if ($CheckBox3.Checked){ $FormComboBox.Enabled = $true } else { $FormComboBox.Enabled = $falce } })
2 votes

How to replace Symlinks with the files they point to on Windows 10?

This worked for me $links = Get-ChildItem -Path C:\Test -Attributes ReparsePoint -Recurse foreach ($link in $links) { $source = $link.Target; $destination = $link.FullName; & cmd.exe /...
2 votes

Generate PNG with custom text from font file

One possible solution is to use PrintMyFonts. This software offer great flexibility in sense of visualisation of font samples. You can show them on the screen, export to JPG, PNG, MS Word, RTF, html. ...
  • 3,831
2 votes

Shell script in Mac Automator won't work with folders

Your first problem is the variable assignment in the loop. Let's say I have files. I made it with touch file\ with\ space{001..010}.txt and touch file{001..010}.txt file with space001.txt file with ...
2 votes

Bash script vs command line

Your script is not necessarily a bash script since /bin/sh is linked to different shells in different distributions. It it is linked to /bin/bash, then all bash extensions to POSIX are disabled. ...
  • 616
1 vote

Automatically (on login) allow projecting to a computer via windows wireless display

After a bit more work, I ended up just pinning the connect app to my taskbar and using autohotkey to use Win + T and Enter to activate the app. That should be good enough.
1 vote

FFMPEG and Powershell Script not working (worked in the past)

After further investigation, I was getting a different error for Powershell and VS Code. The error for PS was access denied, so I first created a new folder in the same folder, and transferred all of ...
  • 21
1 vote

Generating a script through CMD

This whole concept seems a little wonkie. Why not just use the script and run that? .. ok .. whatever .. you do you. :) The script below creates your file in the temp directory in a folder using a ...
1 vote

Randomly reorder pages in PDF document

For this purpose, I advice to use qpdf and shuf in a bash script. #!/usr/bin/bash INPUT="${1}" OUTPUT=$(basename "${INPUT}" .pdf)-rand.pdf NPAGES=$(qpdf --show-npages "${...
  • 41

Only top scored, non community-wiki answers of a minimum length are eligible