Skip to content

Instantly share code, notes, and snippets.

@jobevers
jobevers / modify_path.py
Created January 30, 2018 19:00
Ensure venv is first in the path
#! /usr/bin/python
import argparse
import os
import sys
PREPEND = 'prepend'
APPEND = 'append'
SEP = ':'
@jobevers
jobevers / test_html.md
Created October 11, 2017 16:00
Test Markdown

This has html:

<html>
<body>
<b> I am bold </b>
<body>
</html>
@jobevers
jobevers / test_html.md
Created October 11, 2017 15:59
Test Html in Code Block

This has html:

<html>
<body>
<b> I am bold </b>
<body>
</html>
@jobevers
jobevers / test.md
Created October 11, 2017 15:50
Test Markdown

This has html in it:

< HTTP/1.1 403 Forbidden < Server: nginx/1.13.5 < Date: Wed, 11 Oct 2017 15:28:29 GMT < Content-Type: text/html < Content-Length: 169 < Connection: keep-alive < Strict-Transport-Security: max-age=15724800; < <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx/1.13.5</center> </body> </html>
@jobevers
jobevers / import_only_modules.py
Created August 3, 2017 21:25
A pylint plugin that warns if an import is not a module
import astroid
from pylint import checkers, interfaces
from pylint.checkers import utils
class ImportOnlyModulesChecked(checkers.BaseChecker):
__implements__ = interfaces.IAstroidChecker
name = 'import-only-modules'
priority = -1

Keybase proof

I hereby claim:

  • I am jobevers on github.
  • I am jobevers (https://keybase.io/jobevers) on keybase.
  • I have a public key ASCr107wDgQuiay5bfcikeGI5hvocCiaRwt5cPKUz3xChgo

To claim this, I am signing this object:

@jobevers
jobevers / travis-release.md
Created June 21, 2016 17:29
Releasing two different builds on travis

In order to release both a linux version and an osx version of a package using travis, you need to have two different providers, conditioned on the TRAVIS_OS_NAME.

For example:

deploy:
  - provider: releases
    file: "${TRAVIS_BUILD_DIR}/my_awesome_package.deb"
 skip_cleanup: true
@jobevers
jobevers / compile_ffmpeg.md
Last active September 30, 2018 09:37
Compiling ffmpeg 2.8.7 from source on Ubuntu

Keybase proof

I hereby claim:

  • I am jobevers on github.
  • I am jobevers (https://keybase.io/jobevers) on keybase.
  • I have a public key whose fingerprint is A03A DFB2 B6AB 49BE 468E BEDD 6B04 B402 A0A5 2F12

To claim this, I am signing this object:

$ vagrant --debug
INFO global: Vagrant version: 1.6.5
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"