Skip to content

Instantly share code, notes, and snippets.

View markbosky's full-sized avatar
💭
🤙

Mark Bosky markbosky

💭
🤙
View GitHub Profile
@markbosky
markbosky / Date_as_Filename_to_PDF_Document_Properties-(mmddyy).sequ
Created April 5, 2017 20:42
Adobe Acrobat Action Wizard: Takes a pdf with filename (mmddyy), clears document properties, then fills meta from parsed filename
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="Date as Filename to Document Properties (mmddyy)" description="Takes a pdf with filename (mmddyy), clears document properties, then fills meta from parsed filename." majorVersion="1" minorVersion="0">
<Sources>
<Folder path="/C/documents"/>
</Sources>
<Group label="Untitled">
<Command name="GeneralInfo" pauseBefore="false" promptUser="false">
<Items>
<Item name="Author" type="text" value=""/>
<Item name="Keywords" type="text" value=""/>
@markbosky
markbosky / Date_as_Filename_to_PDF_Document_Properties-(mmddyyyy).sequ
Created April 5, 2017 20:43
Adobe Acrobat Action Wizard: Takes a pdf file with filename mmddyyyy, clears current document properies, and replaces with parsed filename.
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="Date as Filename to Document Properties (mmddyyyy)" description="Takes a pdf file with filename mmddyyyy, clears current document properies, and replaces with parsed filename." majorVersion="1" minorVersion="0">
<Sources>
<Folder path="/C/documents"/>
</Sources>
<Group label="Untitled">
<Command name="GeneralInfo" pauseBefore="false" promptUser="false">
<Items>
<Item name="Author" type="text" value=""/>
<Item name="Keywords" type="text" value=""/>
@markbosky
markbosky / PDF_Tag_Title_as_Filename.sequ
Created April 5, 2017 20:51
Adobe Acrobat Action Wizard: Tags PDF 'title' & 'filename' Document Property from Filename
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="Tag Title as Filename" description="" majorVersion="1" minorVersion="0">
<Sources>
<Folder path="/C/documents"/>
</Sources>
<Group label="Untitled">
<Command name="GeneralInfo" pauseBefore="false" promptUser="false">
<Items>
<Item name="Author" type="text" value=""/>
<Item name="Keywords" type="text" value=""/>
@markbosky
markbosky / OCR-and-autotag.sequ
Created April 5, 2017 20:56
Adobe Acrobat Action Wizard: PDF Optical Character Recognition (OCR) processing + Acrobat autotag.
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="OCR &amp; autotag" description="PDF Optical Character Recognition (OCR) processing + Acrobat autotag." majorVersion="1" minorVersion="0">
<Sources defaultCommand="WorkflowPlaybackSelectFile">
<Folder path="/C/documents"/>
</Sources>
<Group label="Untitled">
<Command name="Cpt:CapturePages" pauseBefore="false" promptUser="true">
<Items>
<Item name="Downsample" type="integer" value="300"/>
<Item name="Format" type="integer" value="0"/>
@markbosky
markbosky / PDF_Scanned_Image_to_OCR.sequ
Created April 5, 2017 21:00
Adobe Acrobat Action Wizard: Given a PDF created from a scanned image, converts to Optical Character Recognition (OCR) to improve accessibility and search index-ability
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="PDF Scanned Image to OCR" description="Given a PDF created from a scanned image, converts to Optical Character Recognition (OCR) to improve accessibility and search index-ability" majorVersion="1" minorVersion="0">
<Sources>
<Folder path="/C/documents"/>
</Sources>
<Group label="Untitled">
<Command name="Scan:OPT" pauseBefore="false" promptUser="false">
<Items>
<Item name="ApplyMRC" type="boolean" value="true"/>
<Item name="BkgrRemove" type="integer" value="0"/>
@markbosky
markbosky / Useful_Wordpress_Snippets.md
Created April 5, 2017 21:03
Snippets for Wordpress Developers & Administrators

WORDPRESS

//Update user account password from database UPDATE wp_users SET user_pass= MD5('yourpassword') WHERE user_login='yourusername';

@markbosky
markbosky / windows_tips_shortcuts.md
Created April 5, 2017 21:12
Useful Windows Shortcuts / Tips / Snippets

Copy / Output Entire List of Filenames from Directory (Windows)

  1. Hold the "Shift" key, right-click the folder containing a list of files and select "Open Command Window Here."
  2. Type "dir /b > filenames.txt" (without quotation marks) in the Command Prompt window. Press "Enter."
  3. Double-click the "filenames.txt" file from the previously selected folder to see a list of file names in that folder.
  4. Press "Ctrl-A" and then "Ctrl-C" to copy the list of file names to your clipboard.
@markbosky
markbosky / Useful_Sublime_Text_Snippets.md
Created April 5, 2017 21:22
Useful Snippets and Regular Expressions (Regex) for Sublime Text

Sublime Text

RegEx

// Match Text - Select Rest of Line ^.matchtext.\n

// Match subdomains ^+..mo.gov$ // matches: asdf.mo.gov, https:/dfad.mo.gov does not match: https://asdfsdf.mo.gov/

@markbosky
markbosky / dns-lookup.ps1
Created February 8, 2019 22:28
DNS Bulk Lookup (PowerShell Script)
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory = $initialDirectory
$OpenFileDialog.filter = "All files (*.*)| *.*"
$OpenFileDialog.ShowDialog() | Out-Null
$OpenFileDialog.filename
@markbosky
markbosky / Blocklist-Domains-Discovered.txt
Created March 8, 2020 16:53
Additional domains discovered through PiHole
collector-hpn.ghostery.net
hellofresh.hrzn-nxt.com
safelite.hrzn-nxt.com
turneradstoedc.akamaized.net