Skip to content

Instantly share code, notes, and snippets.

@mp4096
mp4096 / ppt2pdf.ps1
Created April 28, 2016 10:56
Batch convert PowerPoint files to PDF
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders
# The produced PDF files are stored in the invocation folder
#
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf
# Thanks to MFT, takabanana, ComFreek
#
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system.
# You can allow them by calling PowerShell as an Administrator and typing
# ```
# Set-ExecutionPolicy Unrestricted
@esterTion
esterTion / 0_BiliComicWebReader
Last active June 7, 2024 19:21
BiliComicWebReader
shit title placeholder
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active June 26, 2024 04:10
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is tigervnc-standalone-server.

For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa, unfortunately 22.04 does not work), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.

So let's go. First, we need a working WSL2 installation.

@glennklockwood
glennklockwood / restamp-notability-exports.sh
Created September 20, 2020 22:34
restamp-notability-exports.sh
#!/usr/bin/env bash
#
# Update the created/modified dates of PDF files to match the Notability .note
# native format's metadata. Used to preserve date ordering of notes exported
# from Notability.
#
# Step 1. Back up notability to a shared drive in the native "Note" format
# Step 2. Change the backup format to PDF and create PDF versions
# Step 3. Run this script against each .note file
#
@santaklouse
santaklouse / CrossOver.sh
Last active June 26, 2024 15:00
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS