Skip to content

Instantly share code, notes, and snippets.

View JesterEE's full-sized avatar

Matt Conte JesterEE

  • Boston, MA USA
View GitHub Profile
@JesterEE
JesterEE / pyuac.py
Created May 25, 2018 01:23 — forked from Preston-Landers/pyuac.py
pyuac - elevate a Python process with UAC on Windows
#!/usr/bin/env python
# -*- coding: utf-8; mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4
"""User Access Control for Microsoft Windows Vista and higher. This is
only for the Windows platform.
This will relaunch either the current script - with all the same command
line parameters - or else you can provide a different script/program to
run. If the current user doesn't normally have admin rights, he'll be
@JesterEE
JesterEE / retrying_generator.py
Last active July 19, 2017 22:51
Example using the retrying module with a generator.See docstrings for details.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from retrying import retry
import datetime
import time
class RetryingTimeWrappedGeneratorClass:
"""Class to illustrate how to use `retrying` with a generator.
@JesterEE
JesterEE / check_path_certs.ps1
Created February 7, 2017 20:16
Powershell script to check and output the certificate and issuer validity of each file in a directory structure.
## check_path_certs.ps1
## Author: JesterEE
## Date: 02/07/2017
## Description: Powershell script to check and output the certificate and issuer
## validity of each file in a directory structure.
## Version: 1.0
$path = "<<PUT THE PATH HERE>>"
$valid_issuers = @("Microsoft", "Symantec")
@JesterEE
JesterEE / areca_run.sh
Created October 30, 2015 14:52
Areca 7.5 bootscript with OpenJDK support
#!/usr/bin/env bash
####################################################################
#
# Generic script to launch Areca-backup's executables
#
# Editted by JesterEE 10/30/2015
# Added support for OpenJDK
####################################################################
#Options
@JesterEE
JesterEE / agileesof.service
Last active June 4, 2018 18:20
RHEL7 agileesofd License Server systemd service
[Unit]
Description=agileesofd License Daemon
After=network.target network.service
[Service]
User=flexlm
WorkingDirectory=/opt/Keysight/flexnet
ExecStart=/opt/Keysight/flexnet/lmgrd -c ./licenses/agileesofd.lic -l ./log/agileesofd.log
Restart=always
RestartSec=30
@JesterEE
JesterEE / jesterees_buyscript_v1p00.cfg
Last active March 5, 2016 15:18
Counter Strike: Global OffensiveJesterEE's BuyscriptCopyright (C) 2014 JesterEE GPLv3
// Copyright (C) 2014 JesterEE
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 3 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.