Skip to content

Instantly share code, notes, and snippets.

View andrlik's full-sized avatar

Daniel Andrlik andrlik

View GitHub Profile
@andrlik
andrlik / feed.css
Created October 21, 2022 14:55
Atom stylesheet example for andrlik.org
body {max-width: 960px;margin: 0 auto;padding: 24px 12px 48px 12px;text-rendering: optimizeLegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;color: #ffffff;background-color: #333333;background-attachment: fixed;background-size: cover;font-family: "PT Sans", 'Source Sans Pro', 'Verdana', sans-serif}.head {display: flex;flex: wrap;align-items: center;justify-content: start;margin-bottom: 48px; color: #242121;}.avatar {padding-right: 20px;}.description {flex-grow: 1;padding-left: 20px;border-left: 1px solid #E6E6E6; color: #ffffff;}.description a {color: #ffffff;}main { background-color: #ffffff; color: #242121; padding:4px 20px; border-radius:10px;}article {padding-bottom: 20px;border-bottom: 2px solid #E6E6E6;}h2 {margin-bottom: 36px;}h3 {font-size: 22px;} a { color: #D9411E;}footer {font-size: 16px;}.rss-logo {width: 30px;height: 30px;padding-right: 8px;}.aboutfeeds {font-size: 16px;background-color: #F5F5F5;margin: 20px 0 40px 0;padding: 4px 20px;color: #242121; border-radius:
@andrlik
andrlik / sync_pipenv_to_req.sh
Last active April 12, 2018 17:14
Sync pipenv lockfile to pip-compatible requirements files.
#! /usr/bin/env bash
PRODUCTION_FILE='requirements.txt'
DEV_FILE='test_requirements.txt'
usage="$(basename "$0") [-h/--help] [-p FILENAME] [-d FILENAME] -- Program to sync pipenv lockfile to pip-compatible requirements.
where:
-h/--help Show this help text
-p FILENAME Specify what file should be used for production packages (default: requirements.txt)
-d FILENAME Specify what file should be used for development packages (default: test_requirements.txt)
@andrlik
andrlik / cron-sched-post.sh
Last active January 13, 2018 13:53
A script suitable for a cronjob to manage scheduled posts with automated deployment for Pelican.
#!/bin/bash
# Pulls latest changes from pelican git repos in use and then publishes the resulting site if there are new commits
# in either the theme or content. Also, runs a check against the last set of known future posts, and if they have
# come due, do a deploy.
#
# Assumes that your theme and content exist in separate repositories. In the case of S3/CloudFront deployments,
# assumes that you are using aws-cli to manage them. Update as needed if you do something else.
#
#

Keybase proof

I hereby claim:

  • I am andrlik on github.
  • I am andrlik (https://keybase.io/andrlik) on keybase.
  • I have a public key whose fingerprint is 4480 023C 1C1C 3889 16E4 DE3C 52F5 6374 7E75 8BB0

To claim this, I am signing this object: