Skip to content

Instantly share code, notes, and snippets.

View poa00's full-sized avatar

poa00 poa00

  • 00:30 (UTC -05:00)
View GitHub Profile
@poa00
poa00 / blob2sqlite.md
Created July 2, 2024 20:42 — forked from stevekm/blob2sqlite.md
Store a binary blob file in a SQLite database to get around email filters

Sometimes the email filter at work tries to prevent you from sending certain files so you can use this method to get around it. For example, .app files, or executables, or installers.

tested with OS X and macOS, should work with any system with SQLite and bash installed

store the binary file as a blob in a SQLite database and then the reciepient can extract it.

Sender: add the file to db

my_file="iStat.app"
@poa00
poa00 / .wsl-git.md
Created July 1, 2024 17:55 — forked from HankAviator/.wsl-git.md
HOWTO: Use WSL and its Git in a mixed development environment

How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.

Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.

Tools

These are the tools I use:

  • git (wsl) - Command line git from within WSL.
  • Fork (windows) - Git GUI (must be used with wslgit)
  • wslgit - Makes git from WSL available for Windows applications. Important! Follow the installation instructions and do (at least) the first optional step and then the Usage in Fork instructions.
@poa00
poa00 / .wsl-git.md
Created July 1, 2024 17:52 — forked from carlolars/.wsl-git.md
HOWTO: Use WSL and its Git in a mixed development environment

How to setup a development environment where Git from WSL integrates with native Windows applications, using the Windows home folder as the WSL home and using Git from WSL for all tools.

Note if using Git for Windows, or any tool on the Windows side that does not use Git from WSL then there will likely be problems with file permissions if using those files from inside WSL.

Tools

These are the tools I use:

  • git (wsl) - Command line git from within WSL.
  • Fork (windows) - Git GUI (must be used with wslgit)
  • wslgit - Makes git from WSL available for Windows applications. Important! Follow the installation instructions and do (at least) the first optional step and then the Usage in Fork instructions.
@poa00
poa00 / README.md
Last active June 30, 2024 22:39 — forked from valeryan/README.md
WSL Startup Script

USAGE

  1. Save the services.sh file to your computer in a location like C:/tools/wsl-startup/.
  2. Download the WSL Statup.xml and import it into Task Scheduler.
  3. Modify as needed for you personal use.
@poa00
poa00 / readme.md
Created June 30, 2024 22:32 — forked from mohsenkhanpour/readme.md
WSL Installation

Installing the distro:

Make Windows ready:

Open PowerShell as Administrator and run:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Restart your computer when prompted.

Install distro:

@poa00
poa00 / add_wsl_exclusions.ps1
Created June 30, 2024 05:27 — forked from ian-p-cooke/add_wsl_exclusions.ps1
powershell script to add WSL exclusions
$win_user = "ipc"
$linux_user = "ipc"
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@poa00
poa00 / 0-WSL-SSH-README.md
Last active June 30, 2024 05:23 — forked from dayne/0-WSL-SSH-README.md
WLS-Helpers

Install linux subsystem Ubuntu 18.04

See Microsoft's WSL install guide for windows 10 for details.

Work-in-progress - command line only install:

  • Open Powershell as Administrator and run:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Open Windows App Store
    • Search for "Ubuntu" and install Ubuntu 18.04

(work in progress - command line install steps):

@poa00
poa00 / gitbook_to_pdf.sh
Created June 29, 2024 15:11 — forked from clemsos/gitbook_to_pdf.sh
Build Gitbook PDF using Pandoc
# #!/bin/bash
GITBOOK_REP=$1
SUMMARY_FILE="SUMMARY.md"
echo $OUTPUT_FILE
if [ -d "$GITBOOK_REP" ]; then
echo "Entering directory '$GITBOOK_REP'..."
cd $GITBOOK_REP
@poa00
poa00 / website_to_pdf.sh
Created June 29, 2024 03:51 — forked from freedmand/website_to_pdf.sh
Archives all pages of a specified website and outputs a single PDF file
#!/bin/bash
# Archives a specified website including all sub-pages and outputs a single PDF file
# Requires the following tools to be installed:
# - wget
# - wkhtmltopdf
# - gs (ghostscript)
# Installation: