Install the OpenSSL on Debian based systems
sudo apt-get install openssl
# Run this script as an Admin user and get a list of all WiFi passwords. | |
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() }; | |
$listProfiles | foreach { | |
$profileInfo = netsh wlan show profiles name=$_ key="clear"; | |
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() }; | |
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() }; | |
[PSCustomObject]@{ | |
WifiProfileName = $SSID; | |
Password = $Key | |
} |
Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.
On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED
.
# requirement | |
# given 2 groups (A and B), target 50% of each for code deploy | |
- hosts: localhost | |
tasks: | |
# this might need to be group_by or add_host | |
- set_fact: | |
even: "{{ groups['groupA'][::2] | union(groups['groupB'][::2] }}" | |
odd: "{{ groups['groupA'][1::2] | union(groups['groupB'][1::2] }}" |
Command:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"
URLs that can be created is from:
https://github.com/*
https://*.github.com
https://*.github.com/*
https://*.github.io
import bjoern | |
import os, signal | |
from django.core.wsgi import get_wsgi_application | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') | |
app = get_wsgi_application() | |
NUM_WORKERS = 8 |
sudo -i | |
add-apt-repository universe | |
apt-get update | |
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common | |
curl -sSL https://get.docker.com | sh | |
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s |
A simple python 3 script to generate sensor data from a config file and send it to an MQTT broker.
Download mqttgen.py and config.json files (click on the Raw button at the top right and then save the content), edit config.json to fit your needs, if you are using it to run the Event Fabric sensors dashboard then don't change the topic in config.json unless you want to change it in the dashboard too.
from kivy.base import runTouchApp | |
from kivy.event import EventDispatcher | |
from kivy.lang import Builder | |
from kivy.properties import ObjectProperty, ListProperty, StringProperty, \ | |
NumericProperty, Clock, partial | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.textinput import TextInput | |
import os | |
import subprocess | |
import threading |
""" | |
Provide HTTP proxy support for Python's xmlrpclib, via urllib2. | |
For example: | |
>>> transport = HTTPProxyTransport({ | |
... 'http': 'http://myproxyserver', | |
... }) | |
>>> server = xmlrpclib.Server('http://blogsearch.google.com/ping/RPC2', | |
... transport=transport) |