Skip to content

Instantly share code, notes, and snippets.

@richard-scott
richard-scott / openssl_commands.md
Created October 10, 2019 11:44 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@richard-scott
richard-scott / GetAllWifiPasswords.ps1
Created October 4, 2019 16:05 — forked from Saturate/GetAllWifiPasswords.ps1
PowerShell Wifi Script
# 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
}
@richard-scott
richard-scott / linux_fusion360.md
Created October 1, 2019 14:21 — forked from probonopd/linux_fusion360.md
Autodesk Fusion 360 in the Linux Browser

Autodesk Fusion 360 on Linux

In the Web Browser

Ubuntu, Fedora, openSUSE, CentOS, SUSE Linux Enterprise, Debian,... users can finally use Autodesk Fusion 360 in the Linux Browser now.

https://myhub.autodesk360.com

On Chromium 55.0.2843.0 I get NET::ERR_CERTIFICATE_TRANSPARENCY_REQUIRED.

@richard-scott
richard-scott / play.yml
Created October 1, 2019 12:57 — forked from halberom/play.yml
ansible - example of dynamic even/odd groups
# 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] }}"
@richard-scott
richard-scott / git-io-custom-url.md
Created September 12, 2019 09:01 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

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
@richard-scott
richard-scott / wsgi_bjoern.py
Created August 1, 2019 10:41 — forked from gcavalcante8808/wsgi_bjoern.py
Bjoern Django Final
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
@richard-scott
richard-scott / hassio_ubuntu_install_commands.sh
Created July 30, 2019 06:24 — forked from frenck/hassio_ubuntu_install_commands.sh
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
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
@richard-scott
richard-scott / README.rst
Created June 4, 2019 09:32 — forked from marianoguerra/README.rst
MQTT Generator Script

MQTT Generator

A simple python 3 script to generate sensor data from a config file and send it to an MQTT broker.

Usage

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.

@richard-scott
richard-scott / kivyconsole.py
Created May 2, 2019 10:37 — forked from aron-bordin/kivyconsole.py
Initial Python/Kivy Terminal Emulator (It's just a performance test. You can use this sample to write your own terminal emulator)
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
@richard-scott
richard-scott / gist:5681f13ec5137ef16d231d12529cebec
Created March 15, 2019 16:40
HTTP proxy support for Python's xmlrpclib
"""
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)