Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/bin/bash | |
# | |
# Install/Update Mozilla Firefox conveniently and repeatably, allowing version selection | |
# The ESR Firefox that ships with Debian 10/11 (and probably Ubuntu, etc) doesn't support | |
# containers, so I found myself installing the Mozilla distribution of Firefox. That had | |
# me a little concerned about keeping it up to date, so I run this out of cron. Maybe it's | |
# useful for someone ... | |
# | |
# This is intended for use with XFCE but I think most window managers use the .desktop style | |
# metadata files for launchers/menus/etc. Check /usr/share/applications/ on your system to |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> | |
<DL><p> | |
<dt><a href="https://splunkbase.splunk.com/">Splunkbase</a> | |
<dt><a href="https://git.io/splhighlighter">Splunk Highlighter</a> | |
<dt><a href="http://regex101.com/">regex101.com</a> | |
<dt><a href="http://strftime.net/">strftime.net</a> | |
<DT><H3 ADD_DATE="1551742873" LAST_MODIFIED="1553513798">.Conf Files</H3> |
. | |
.. | |
........ | |
@ | |
* | |
*.* | |
*.*.* | |
🎠|
# Translates Markdown syntax to Slack, replaces: | |
# | |
# - hyphened lists with bullet symbols | |
# - double bold marker asterisks `**` with single asterisk `*` | |
# - headers `#` with bold marker asterisks `*` | |
# | |
# Run with | |
# | |
# python markdown-to-slack.py filename.md | |
# |
import requests | |
def get_status_code(url): | |
try: | |
r = requests.get(url) | |
print "Processing " + url | |
if len(r.history) > 0: | |
chain = "" | |
code = r.history[0].status_code |