This commit is contained in:
davegallant
2021-09-06 03:18:32 +00:00
commit 41cc48a0ea
102 changed files with 2780 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>First Post</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B"
crossorigin="anonymous">
<link rel="stylesheet" href="/css/style.css" />
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-98710982-2', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</head>
<body>
<nav>
<ul class="menu">
<li><a class="btn btn-outline-dark" href="/">Home</a></li>
<li><a class="btn btn-outline-dark" href="/about/">About</a></li>
<li><a class="btn btn-outline-dark" href="/categories/">Categories</a></li>
<li><a class="btn btn-outline-dark" href="/tags/">Tags</a></li>
<li><a class="btn btn-outline-dark" href="/index.xml">Subscribe</a></li>
</ul>
<hr/>
</nav>
<div class="article-meta">
<h1><span class="title">First Post</span></h1>
<h2 class="author">Dave Gallant</h2>
<h2 class="date">2018/07/13</h2>
</div>
<main>
<p>Hello. My plan is to pour useful code snippets, tips and tricks into these pages. I have a fond interest in programming (especially with Python, TypeScript and Golang). Hopefully something within these pages will help you out in your journey.</p>
</main>
<footer>
<hr/>
&copy; Dave Gallant 2018 | <a href="https://github.com/davegallant">Github</a> | <a href="https://twitter.com/__dave_g__">Twitter</a>
</footer>
</body>
</html>

View File

@@ -0,0 +1,132 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Why Learn Python?</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B"
crossorigin="anonymous">
<link rel="stylesheet" href="/css/style.css" />
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-98710982-2', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</head>
<body>
<nav>
<ul class="menu">
<li><a class="btn btn-outline-dark" href="/">Home</a></li>
<li><a class="btn btn-outline-dark" href="/about/">About</a></li>
<li><a class="btn btn-outline-dark" href="/categories/">Categories</a></li>
<li><a class="btn btn-outline-dark" href="/tags/">Tags</a></li>
<li><a class="btn btn-outline-dark" href="/index.xml">Subscribe</a></li>
</ul>
<hr/>
</nav>
<div class="article-meta">
<h1><span class="title">Why Learn Python?</span></h1>
<h2 class="author">Dave Gallant</h2>
<h2 class="date">2018/07/18</h2>
</div>
<main>
<p>Python is a high-level, general-purpose language that has a wide range of use cases from the mundanely simple to the increasingly complex.</p>
<p></p>
<ul>
<li>Glue script?</li>
<li>Web crawling?</li>
<li>Web server?</li>
<li>Testing?</li>
<li>Micro-service?</li>
<li>Network automation?</li>
<li>Data Science?</li>
<li>Machine Learning?</li>
</ul>
<p>Python is likely a quick way to get any of these tasks done.</p>
<p>Including the abundant number of packages that can be found on <a href="https://pypi.org/">Python Package Index</a>, there is likely a package that can help you.</p>
<p>Do you want to download a webpage?</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">pip install requests</code></pre></div>
<p>and then invoke the <a href="https://docs.python.org/3/tutorial/interpreter.html">Python interpreter</a>:</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-python" data-lang="python">Python <span style="color:#ae81ff">3.7</span><span style="color:#f92672">.</span><span style="color:#ae81ff">0</span> (default, Jun <span style="color:#ae81ff">29</span> <span style="color:#ae81ff">2018</span>, <span style="color:#ae81ff">21</span>:<span style="color:#ae81ff">56</span>:<span style="color:#ae81ff">58</span>)
[GCC <span style="color:#ae81ff">7.3</span><span style="color:#f92672">.</span><span style="color:#ae81ff">0</span>] on linux
Type <span style="color:#e6db74">&#34;help&#34;</span>, <span style="color:#e6db74">&#34;copyright&#34;</span>, <span style="color:#e6db74">&#34;credits&#34;</span> <span style="color:#f92672">or</span> <span style="color:#e6db74">&#34;license&#34;</span> <span style="color:#66d9ef">for</span> more information<span style="color:#f92672">.</span>
<span style="color:#f92672">&gt;&gt;&gt;</span> <span style="color:#f92672">import</span> requests
<span style="color:#f92672">&gt;&gt;&gt;</span> requests<span style="color:#f92672">.</span>get(<span style="color:#e6db74">&#39;https://www.theregister.co.uk/&#39;</span>)<span style="color:#f92672">.</span>text</code></pre></div>
<p>After that, there is any number of things that can be done with the results.</p>
<p>As you can probably note, the syntax is simple and clean, which makes returning to your code months later less of a jarring experience.</p>
<h2 id="popularity">Popularity</h2>
<p>According to <a href="https://insights.stackoverflow.com/survey/2018/">Stack Overflow Stats</a>, Python has surpassed C# and PHP in popularity and is the 3rd most loved language, after Rust and Kotlin. Interestingly, it is &ldquo;the most wanted language&rdquo; for the second year in a row.</p>
<h2 id="drawbacks">Drawbacks</h2>
<p>Is Python the magical solution to all the world&rsquo;s problems? No.</p>
<p>Python is not very suitable for much of the following:</p>
<ul>
<li>Static typing</li>
<li>Performance-critical application (i.e. graphically-intense video game)</li>
<li>Mobile app development</li>
<li>Front-end web development</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>So should you learn it? or stick with shell scripting?</p>
<p>Because of Python&rsquo;s simple syntax, dynamic typing and abundant Package Index, it makes the language a great asset to have in your toolchain.</p>
<p>And it hasn&rsquo;t hurt that giants like Google, Facebook and Microsoft have invested heavily in Python.</p>
<h2 id="resources">Resources</h2>
<p>This list includes some truly remarkable resources for improving your Python:</p>
<ul>
<li><p><a href="https://www.realpython.com">https://www.realpython.com</a></p></li>
<li><p><a href="https://pythonbytes.fm/">https://pythonbytes.fm/</a> (podcast)</p></li>
<li><p><a href="https://talkpython.fm/">https://talkpython.fm/</a> (podcast)</p></li>
<li><p><a href="https://awesome-python.com/">https://awesome-python.com/</a></p></li>
</ul>
</main>
<footer>
<hr/>
&copy; Dave Gallant 2018 | <a href="https://github.com/davegallant">Github</a> | <a href="https://twitter.com/__dave_g__">Twitter</a>
</footer>
</body>
</html>

346
post/first-post/index.html Normal file
View File

@@ -0,0 +1,346 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>First Post - Dave Gallant</title>
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="author" content="Dave Gallant" /><meta name="description" content="introduction" />
<meta name="keywords" content="Hugo, theme, even" />
<meta name="generator" content="Hugo 0.44" />
<link rel="canonical" href="https://davegallant.github.io/post/first-post/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<link href="/dist/ehlxr.min.css?v=0.0.1" rel="stylesheet">
<link href="/lib/fancybox/jquery.fancybox-3.1.20.min.css" rel="stylesheet">
<link href="/lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<meta property="og:title" content="First Post" />
<meta property="og:description" content="introduction" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://davegallant.github.io/post/first-post/" />
<meta property="article:published_time" content="2018-07-13T08:52:45-04:00"/>
<meta property="article:modified_time" content="2018-07-13T08:52:45-04:00"/>
<meta itemprop="name" content="First Post">
<meta itemprop="description" content="introduction">
<meta itemprop="datePublished" content="2018-07-13T08:52:45-04:00" />
<meta itemprop="dateModified" content="2018-07-13T08:52:45-04:00" />
<meta itemprop="wordCount" content="45">
<meta itemprop="keywords" content="python,golang,javascript," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="First Post"/>
<meta name="twitter:description" content="introduction"/>
<!--[if lte IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/" class="logo">Dave Gallant</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list">
<a href="/">
<li class="mobile-menu-item">Home</li>
</a><a href="/post/">
<li class="mobile-menu-item">Archives</li>
</a><a href="/tags/">
<li class="mobile-menu-item">Tags</li>
</a><a href="/categories/">
<li class="mobile-menu-item">Categories</li>
</a>
</ul>
</nav>
<header id="header" class="header">
<div class="header-div">
<div class="logo-wrapper">
<a href="/" class="logo">Dave Gallant</a>
</div>
<nav class="site-navbar">
<ul id="menu" class="menu">
<li class="menu-item ">
<a class="menu-item-link" href="/">
Home
</a>
</li><li class="menu-item ">
<a class="menu-item-link" href="/post/">
Archives
</a>
</li><li class="menu-item ">
<a class="menu-item-link" href="/tags/">
Tags
</a>
</li><li class="menu-item ">
<a class="menu-item-link" href="/categories/">
Categories
</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="container" >
<main id="main" class="main">
<div class="content-wrapper" id="mobile-panel">
<div id="content" class="content">
<article class="post">
<header class="post-header single-post-header">
<h1 class="post-title">First Post</h1>
<div class="post-meta">
<span class="post-time"> <i class="fa fa-calendar" aria-hidden="true"></i> 2018-07-13 </span>
<div class="post-category">
| <i class="fa fa-folder" aria-hidden="true"></i>
<a href="/categories/random/"> random </a>
</div>
<span class="more-meta"> | <i class="fa fa-book" aria-hidden="true"></i> 45 words </span>
<span class="more-meta"> | <i class="fa fa-clock-o" aria-hidden="true"></i> 1 min read </span>
<span class="more-meta">
| <i class="fa fa-comment-o" aria-hidden="true"></i>
<a href="#gitalk-container" itemprop="discussionUrl">
<span class="post-comments-count gitalk-comment-count" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-content">
<p>Hello. This is the first post. My plan is to pour useful code snippets, tips and tricks into these pages. I have a fond interest in programming (especially with Python, TypeScript and Golang). Hopefully something within these pages will help you out in your journey.</p>
</div>
<footer class="post-footer">
<div class="post-tags">
<a href="/tags/python/">python</a>
<a href="/tags/golang/">golang</a>
<a href="/tags/javascript/">javascript</a>
</div>
<nav class="post-nav">
</nav>
</footer>
</article>
</div>
<div id="disqus_thread"></div>
<script type="text/javascript">
function showDisqus() {
$("#disqus_title").attr("style", "display:none");
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = false;
var disqus_shortname = 'https-davegallant-github-io';
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
window.location.hash = "#disqus_thread";
}
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript><script type="text/javascript">
window.onload = function () {
showDisqus();
}
</script>
</div>
</main>
<footer id="footer" class="footer">
<div class="social-links">
<a href="mailto:dave.gallant@outlook.com" class="iconfont icon-email" title="email"></a>
<a href="https://twitter.com/__dave_g__" class="iconfont icon-twitter" title="twitter"></a>
<a href="https://www.linkedin.com/in/dave-gallant-8523772a" class="iconfont icon-linkedin" title="linkedin"></a>
<a href="https://github.com/davegallant" class="iconfont icon-github" title="github"></a>
<a href="https://davegallant.github.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>
<div class="copyright">
<span class="power-by">
Powered by <a class="hexo-link" href="https://gohugo.io">Hugo</a>
</span>
<span class="copyright-year">
&copy;
2018
<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">Dave Gallant</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div>
<script src="/lib/highlight/highlight.pack.js?v=20171001"></script><script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script type="text/javascript" src="/lib/slideout/slideout-1.0.1.min.js"></script>
<script type="text/javascript" src="/lib/fancybox/jquery.fancybox-3.1.20.min.js"></script>
<script type="text/javascript" src="/dist/ehlxr.min.js?v=0.0.1"></script>
<script>
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-98710982-2', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</body>
</html>

35
post/index.html Normal file
View File

@@ -0,0 +1,35 @@
<!doctype html><html lang=en-us>
<head>
<meta charset=utf-8>
<meta name=viewport content="width=device-width,initial-scale=1">
<script type=application/ld+json>{"@context":"http://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"\/"},"articleSection":"post","name":"Posts","headline":"Posts","description":"","inLanguage":"en-US","author":"","creator":"","publisher":"","accountablePerson":"","copyrightHolder":"","copyrightYear":"2020","datePublished":"2020-03-16 22:00:15 -0400 -0400","dateModified":"2020-03-16 22:00:15 -0400 -0400","url":"\/post\/","wordCount":"0","keywords":["Blog"]}</script>
<title>Posts</title>
<link rel=stylesheet href=https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css integrity=sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B crossorigin=anonymous>
<link rel=stylesheet href=/css/style.css>
<script type=application/javascript>var doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga('create','UA-98710982-2','auto'),ga('send','pageview'))</script>
<script async src=https://www.google-analytics.com/analytics.js></script>
</head>
<body>
<nav>
<ul class=menu>
<li><a class="btn btn-outline-dark" href=/>Home</a></li>
<li><a class="btn btn-outline-dark" href=/about/>About</a></li>
<li><a class="btn btn-outline-dark" href=/categories/>Categories</a></li>
<li><a class="btn btn-outline-dark" href=/tags/>Tags</a></li>
<li><a class="btn btn-outline-dark" href=/index.xml>Subscribe</a></li>
</ul>
<hr>
</nav>
<h1>Posts</h1>
<ul>
<li>
<span class=date>2020/03/16</span>
<a href=/blog/2020/03/16/appgate-sdp-on-arch-linux/>AppGate SDP on Arch Linux</a>
</li>
</ul>
<footer>
<hr>
© Dave Gallant 2021 | <a href=https://github.com/davegallant>Github</a> | <a href=https://twitter.com/Dave_Gallant_>Twitter</a>
</footer>
</body>
</html>

1
post/index.xml Normal file
View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on davegallant.github.io - tech micro-blog</title><link>/post/</link><description>Recent content in Posts on davegallant.github.io - tech micro-blog</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Mon, 16 Mar 2020 22:00:15 -0400</lastBuildDate><atom:link href="/post/index.xml" rel="self" type="application/rss+xml"/><item><title>AppGate SDP on Arch Linux</title><link>/blog/2020/03/16/appgate-sdp-on-arch-linux/</link><pubDate>Mon, 16 Mar 2020 22:00:15 -0400</pubDate><guid>/blog/2020/03/16/appgate-sdp-on-arch-linux/</guid><description>&lt;p>AppGate SDP provides a Zero Trust network. This post describes how to get AppGate SDP &lt;code>4.3.2&lt;/code> working on Arch Linux.&lt;/p></description></item></channel></rss>

1
post/page/1/index.html Normal file
View File

@@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://davegallant.github.io/post/</title><link rel="canonical" href="https://davegallant.github.io/post/"/><meta name="robots" content="noindex"><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="refresh" content="0; url=https://davegallant.github.io/post/" /></head></html>