Skip to content

Instantly share code, notes, and snippets.


  • Pacific Time Zone
Block or report user

Report or block cowlinator

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pathlib_interface.txt
class _Flavour(object):
"""A flavour implements a particular (platform-specific) set of path
def __init__(self)
def parse_parts(self, parts)
def join_parsed_parts(self, drv, root, parts, drv2, root2, parts2)
Join the two paths represented by the respective
(drive, root, parts) tuples. Return a new (drive, root, parts) tuple.
cowlinator /
Last active May 23, 2019
Patch paramiko to remove cryptography warnings ( )
import distutils.version
import os
import subprocess
import sys
import paramiko
import requests
if __name__ == "__main__":
cowlinator / docker msbuild fix
Created Mar 13, 2019
How to fix msbuild LNK1318 in Docker containers without modifying the project files
View docker msbuild fix
Create a file with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="">
<!-- Fix for error LNK1318 in hyperV docker containers -->
cowlinator / git_commands.txt
Last active Oct 3, 2017
Useful git commands
View git_commands.txt
git checkout -- . DISCARD non-staged changes
git clean -d -f DISCARD untracked files
git cherry-pick --no-commit $SHA Cherry-pick to staging area
git revert --no-commit $SHA Revert to staging area
git push -f FORCE push
git reset --hard @{u} RESET HARD to upstream-branch
git branch --unset-upstream Track Remote: None (for current branch)
git branch --set-upstream-to=$REMOTE_BRANCH Track Remote (for current branch)
You can’t perform that action at this time.