Git automation with OAuth tokens

You can use OAuth tokens to interact with GitHub Enterprise via automated scripts. Step 1: Get an OAuth token Create a personal access token on your application settings page. Tip: We recommend that you regularly review your authorized integrations. Remove any applications and tokens that haven’t been used in a while. Step 2: Clone a repository Once you have a … Read more

The right and wrong way to set Python 3 as default on a Mac

I’ve been dipping my toe back into Python development as I get ready to head to PyCon US. When I installed a module to tinker around with, I got a reminder that I needed to install Python 3 soon. $ pip install todoist-pythonDEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be … Read more

Installing Cisco AnyConnect VPN Client on Ubuntu 18.04 | 16.04

Cisco AnyConnect VPN software allows remote users and employees to securely connect to a Cisco VPN gateway running in an enterprise environment.. Employees use Cisco AnyConnect Secure Mobility Client to establish connectivity to a Cisco SSL VPN server, and if authentication is approved, the connected users or employees are grant access to internal resources.. This … Read more

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion. Requirements Sublime text 2 or 3 installed in your system within Applications folder Setup In order … Read more

Git always asks for my ssh-key passphrase

It’s because your key is encrypted with a passphrase to prevent others from reading it. The most convenient way of using passphrased keys is by using ssh-agent to start an authentication agent (which runs in the background): …and then using ssh-add to register your key with the agent so that it’s used automatically for subsequent SSH connections: You’ll be … Read more

Launch Sublime Text 2 or 3 from the Mac OSX Terminal

As I’m working in the OSX Terminal more and more these days, I’m always on the lookout for time saving shortcuts. A really useful tip that I picked up recently from Zander Martineau is how to open up Sublime Text straight from the Terminal. This is done by hooking into a CLI utility that Sublime provides called subl. … Read more

Comparing changes with git diff

Diffing is a function that takes two input data sets and outputs the changes between them. git diff is a multi-use Git command that when executed runs a diff function on Git data sources. These data sources can be commits, branches, files and more. This document will discuss common invocations of git diff and diffing work flow patterns. The git … Read more