Skip to content

Instantly share code, notes, and snippets.

cowlinator

  • 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
@cowlinator
cowlinator / patch_paramiko.py
Last active May 23, 2019
Patch paramiko to remove cryptography warnings ( https://github.com/paramiko/paramiko/issues/1369 )
View patch_paramiko.py
import distutils.version
import os
import subprocess
import sys
import paramiko
import requests
if __name__ == "__main__":
print(paramiko.__version__)
@cowlinator
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="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Fix for error LNK1318 in hyperV docker containers -->
<ItemDefinitionGroup>
<ClCompile>
<DebugInformationFormat>OldStyle</DebugInformationFormat>
</ClCompile>
</ItemDefinitionGroup>
@cowlinator
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.