I hereby claim:
- I am cjerrington on github.
- I am cjerrington (https://keybase.io/cjerrington) on keybase.
- I have a public key ASCmzLyC__Ic3zd1WreR5woBrzm9zoTA6G4uoF8y3PbnKgo
To claim this, I am signing this object:
function Show-Console | |
{ | |
param ([Switch]$Show,[Switch]$Hide) | |
if (-not ("Console.Window" -as [type])) { | |
Add-Type -Name Window -Namespace Console -MemberDefinition ' | |
[DllImport("Kernel32.dll")] | |
public static extern IntPtr GetConsoleWindow(); | |
[DllImport("user32.dll")] |
I hereby claim:
To claim this, I am signing this object:
[Verifying my keyoxide cryptographic key: openpgp4fpr:22A87774A7342FE3DF25E15D08528E69B3B9CA3E]
# Setup of variables: | |
# Update server and port to your local values | |
$server = "localhost" | |
$port = 8096 | |
$myinstall = (Invoke-WebRequest -UseBasicParsing http://$($server):$port/System/Info/Public).Content | ConvertFrom-Json | |
$latest = (Invoke-WebRequest -UseBasicParsing https://api.github.com/repos/jellyfin/jellyfin/releases/latest) | ConvertFrom-Json | |
if ( $myinstall.Version -eq $latest.name){ |
#!/bin/bash | |
# Check if script is run as sudo/root | |
if [[ $EUID -ne 0 ]]; then | |
# https://www.linuxjournal.com/content/automatically-re-start-script-root-0 | |
sudo -p 'Restarting as root, password: ' bash $0 "$@" | |
exit $? | |
#echo "Please rerun script with 'sudo ./serversetup.sh'" | |
#exit 1 | |
fi |
#!/bin/bash | |
#################################### | |
# | |
# Backup to NFS mount script. | |
# | |
#################################### | |
# What to backup. | |
backup_files="/home/username/Desktop" |
#Requires –Version 3 | |
# Set TLS support for Powershell and parse the JSON request | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$npp = Invoke-WebRequest -UseBasicParsing 'https://api.github.com/repos/notepad-plus-plus/notepad-plus-plus/releases/latest' | ConvertFrom-Json | |
# Get Hashes for Checksums | |
Invoke-WebRequest -UseBasicParsing $npp.assets[0].browser_download_url -OutFile $npp.assets[0].name | |
# Get the download URL from the JSON object per 32/64 bit |
# Simple app start when "password" is correct | |
import tkinter as tk | |
class Application(tk.Frame): | |
def __init__(self, master=None): | |
super().__init__(master) | |
self.master = master | |
self.pack() | |
self.create_widgets() |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""pyscript.py | |
A simple python script template. | |
http://ajminich.com/2013/08/01/10-things-i-wish-every-python-script-did/ | |
""" | |
import argparse | |