Skip to content

Instantly share code, notes, and snippets.

0.6988558232736028 0.16928035535332198 0.7048022866228775 0.16875016875016877 0.7031966704202343 0.1698115770740786 0.701834998369549 0.17296327994457353 0.698162026166915 0.16825980224090403 0.6767421728466311 0.15505550390988132 0.6433555477891997 0.14331705303707779 0.5883710864233155 0.13782313113551087 0.5117416473500892 0.13462470404164878 0.42179479326186825 0.15974273332045155 0.3269705345244558 0.20195595581509887 0.2685168563529961 0.268845075210334 0.25646336802673253 0.334179701060274 0.21868311112964944 0.5690109411373866 0.18319253199507066 0.6929520870423396 0.15686643336085396 0.7767877806063411 0.11574631456247472 0.8419292353572374 0.047146210984105 0.8795890945342637 0.01293166789125642 0.8566635466916264 0.0 0.7752480123830296 0.050130954329677534 0.6535985543665472 0.15868158199742152 0.49999999999999994 0.25428356539271024 0.37584262333106216 0.3495108594718587 0.26433239320354956 0.451304351029641 0.1807942009176999 0.5517211871698939 0.14481309679779988 0.644647214554225 0.161289873047
<?xml version="1.0" encoding="utf-8"?>
<opml version="2.0">
<head>
<title>gPodder subscriptions</title>
<dateCreated>Sat, 16 May 2015 03:59:22 +0200</dateCreated>
</head>
<body>
<outline text="The highest quality non-content 30 minute morning show on the internet in podcast form. Hosted by Jesse Cox and Eric &quot;Crendor&quot; Hraab. Featuring daily news, sports, weather, and commentary." title="Cox n' Crendor Show" type="rss" xmlUrl="http://feeds.feedburner.com/soundcloud/nAMd"/>
<outline text="CGP Grey and Brady Haran in Conversation." title="Hello Internet" type="rss" xmlUrl="http://feeds.podtrac.com/m2lTaLRx8AWb"/>
<outline text="" title="Welcome to Night Vale" type="rss" xmlUrl="http://nightvale.libsyn.com/rss"/>
#!/usr/bin/python3.4
import sys
import operator
import functools
def prob3(amount, pile):
return functools.reduce(operator.mul, [(amount - x) / (pile - x) for x in range(0, 3)]) * 100
Dear customer,
We've recently been made aware of a critical security issue in the
hypervisor software (Xen) which we use to provide your service. Fixing
this problem will require us to reboot our hosts and therefore all
customer VPSes must also be rebooted (or experience suspend/restore -
see below).
We must apply this fix to ensure the security and reliability both of
your VPS and of our infrastructure, which is why we have no choice but
@DownGoat
DownGoat / iis_ssl_best_practises.bat
Last active June 11, 2018 21:34
Disables SSL 2.0/3.0 for IIS, and bad ciphers etc.
@ECHO OFF
ECHO This script will set IIS SSL setting to best practises. This will disable certain protocols such as SSL 2.0/3.0 in favour of TLS
ECHO A restart of IIS, will be requierd for the changes to take effect. It cannot be done by just restarting induvidual websites.
ECHO THIS SCRIPT WILL *NOT* RESTART IIS OR THIS COMPUTER!
:choice
set /P c=Are you sure you want to continue [Y/N]?
if /I "%c%" EQU "Y" goto :start
if /I "%c%" EQU "N" goto :exit
@DownGoat
DownGoat / web.conf
Created July 13, 2017 13:49
IIS URL Rewrite
<rewrite>
<rules>
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
<add input="{QUERY_STRING}" pattern="excluded.htm" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
@DownGoat
DownGoat / process_start_vbox.py
Created March 25, 2018 09:47
pyvbox - virtualbox api. Start process/execute program in guest
import virtualbox
from virtualbox.library import ProcessCreateFlag
VM_NAME = 'w7-32bit-1'
vbox = virtualbox.VirtualBox()
vm = vbox.find_machine(VM_NAME)
session = vm.create_session()
gs = session.console.guest.create_session("kokoa", '')
@DownGoat
DownGoat / copy_to_guest.py
Created March 25, 2018 09:51
pyvbox -virtualbox api copy fil to guest
import virtualbox
from virtualbox.library import FileCopyFlag
VM_NAME = 'w7-32bit-1'
vbox = virtualbox.VirtualBox()
vm = vbox.find_machine(VM_NAME)
session = vm.create_session()
gs = session.console.guest.create_session("kokoa", '')
@DownGoat
DownGoat / pyvbox-import-error.md
Last active December 8, 2019 02:06
pyvbox - virtualbox api. ImportError: No module named xpcom.vboxxpcom

Missing module xpcom fix,

Traceback (most recent call last):
  File "vmc.py", line 24, in <module>
    vbox = virtualbox.VirtualBox()
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.3.2-py2.7.egg/virtualbox/library_ext/vbox.py", line 22, in __init__
    manager = virtualbox.Manager()
  File "/usr/local/lib/python2.7/dist-packages/pyvbox-1.3.2-py2.7.egg/virtualbox/__init__.py", line 143, in __init__
    self.manager = vboxapi.VirtualBoxManager(mtype, mparams)
 File "/usr/local/lib/python2.7/dist-packages/vboxapi/__init__.py", line 989, in __init__
/* SCROLL BAR */
/* URLs to images
resizer: http://i.imgur.com/hyb90YC.png
down-arrow-active: http://i.imgur.com/paWZt7f.png
down-arrow-disabled: http://i.imgur.com/hJVnFr4.png
down-arrow-enabled: http://i.imgur.com/rGqTWWG.png
left-arrow-active: http://i.imgur.com/BhwUFGl.png
left-arrow-disabled: http://i.imgur.com/FocYdIW.png
left-arrow-enabled: http://i.imgur.com/4wBXM2p.png
right-arrow-active: http://i.imgur.com/q39FeM6.png