#!/usr/bin/python | |
# All SSH libraries for Python are junk (2011-10-13). | |
# Too low-level (libssh2), too buggy (paramiko), too complicated | |
# (both), too poor in features (no use of the agent, for instance) | |
# Here is the right solution today: | |
import subprocess | |
import sys |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument("-incognito") | |
driver = webdriver.Chrome(executable_path='/Library/Python/2.7/site-packages/selenium/webdriver/chrome/chromedriver', chrome_options=chrome_options) | |
driver.get('https://www.surveymonkey.com/s/<surveyid>') | |
time.sleep(2) | |
nxt_btn = driver.find_element_by_name('NextButton') |
--- | |
- hosts: esxi | |
tasks: | |
- name: Get list of installed VIBs | |
shell: esxcli software vib get -n "esx-ui" | |
register: vibs | |
changed_when: false | |
ignore_errors: yes |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
$ uname -r
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code | |
#requires -Version 5.0 | |
param( | |
# Your Live ID for MSDN login | |
[Parameter(Mandatory)] | |
[PSCredential] | |
[System.Management.Automation.CredentialAttribute()] | |
$Credential, | |
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file) |
This is a recipe to fix this error when importing to VMWare an OVA
file:
Download and install OVFTool (https://www.vmware.com/support/developer/ovf/)
Convert OVA to VMX using the command below (this will create example.vmx)
$ ovftool example.ova example.vmx
NOTE: This Gist was an early write-up of this blog post, part of what became an eleven-part series on my arcade cabinet. I'd suggest you read that post instead of this, but some of the comments on this Gist contain updates and field reports that you might find useful.
I wanted LEDBlinky-style functionality out of my RetroPie cabinet. But I didn't need RGB control or magical frontend integration or anything like that. I had buttons with simple single-color LEDs.
I've got a simple control panel with six buttons per player. All I wanted was this:
- When I launch Street Fighter 2, all twelve buttons should light up.
- When I launch The Simpsons, only the first two buttons for each player should light up.
# Reset-LocalAccountPassword.ps1 | |
# Written by Bill Stewart (bstewart@iname.com) | |
#requires -version 2 | |
<# | |
.SYNOPSIS | |
Resets the built-in Administrator account or a named local account password on one or more computers. | |
.DESCRIPTION |