Skip to content

Instantly share code, notes, and snippets.

@maphew
maphew / PS-BGInfo.ps1
Created Apr 27, 2022 — forked from dieseltravis/PS-BGInfo.ps1
update wallpaper background image with powershell (like Sysinternals BGInfo)
View PS-BGInfo.ps1
# PS-BGInfo
# Powershell script that updates the background image with a random image from a folder and writes out system info text to it.
# run as a lower priority task
[System.Threading.Thread]::CurrentThread.Priority = 'BelowNormal'
# Configuration:
# Font Family name
$font="Input"
@maphew
maphew / flash-autoupdate.bat
Last active Aug 29, 2015 — forked from karlhorky/flash-autoupdate.bat
Trigger Adobe Flash Player Auto-Update mechanism on Windows
View flash-autoupdate.bat
:: On-Demand Flash Autoupdate
:: Author: Karl Horky
:: Date: 22 June 2012
:: Version: 0.2
:: Homepage: http://www.karlhorky.com/2012/06/manually-run-autoupdate-for-adobe-flash.html
@echo off
pushd C:\Windows\System32\Macromed\Flash\
if exist *ActiveX.exe (
echo Updating Flash Player Plugin for Internet Explorer
View Install-Programs
# ==========================================================================
#
# Script Name: Install-Programs.ps1
#
# Author: Andy Parkhill
#
# Date Created: 27/03/2014
#
# Description: A simple environment setup script for my personal laptop.
#
@maphew
maphew / push_to_gist.py
Last active Apr 19, 2020 — forked from anonymous/push_to_Gist.txt
=== Leo editor script to publish from a node to Gist === At present everything is done anonymously, so there's no way to delete an old push, or make the next a push a revision to a previous one. In other words it's trivial to create **many** duplicates. So I wouldn't actually use this yet; it's just proof of concept (and wickedly easy!).
View push_to_gist.py
import requests
import json
description = "published from Leo" # todo: derive from docstring, if present, otherwise 1st para
public = True
filename = p.h # node headline
content = p.b # node body
api_url = 'https://api.github.com/gists'