How to ignore vendor directory in git for Go projects

You accidentally added your vendor directory to git in your Go project. Now when you run git status you see all these modified files under the vendor directory. Here is a quick command you can use to ignore these changes First change to your project directory then run this command git status | perl -ne ‘/(vendor.+go)/ && system “git update-index –assume-unchanged $1\n”;’ This will take each file mentioned in the status that is in your vendor directory and execute a git command against it to

Golang Vendoring How to add vendoring to an existing Go project

How to add Vendoring to an existing Go Project to manage your dependencies In this post I want to discuss how you can add vendoring for your dependencies to an existing Go project that does not currently have a vendor directory. I am working on a new version of Best Food Near Me. The original version used a version of Go that did not have vendoring support, but it has since been upgraded.

Using Go and Perl in your Makefile.PL as part of your build process

Perl and Golang I want to show you quickly how you can integrate your Go programs into your Perl module process. That is, if you have a go executable program that you want to distribute with your Perl module and you also want to build the go executable as part of your Perl module build process, this is how you can do it. I am assuming you have Go installed, and I am also assuming you are using ExtUtils::MakeMaker for your Perl module.

Consul Service Discovery and leader election

Elect a leader with Consul for your service So I started testing out a service discovery platform called Consul by the company Hashicorp. The system uses the raft consensus protocol, and you may run into issues with leader election when you try to restart each server node. I did, and before you start spending hours googling around, I am going to tell you what I did to elect a leader in my cluster.

How to split pdf into multiple files

Split pdf files into single page pdf files with this free tool Here is a quick tip on how you can split pdf files with multiple pages into single page pdf files on windows using a free command line utility called the pdf toolkitpdftk by pdflabs. Say you have a large number of paper documents that you want to scan then extract the text from. Adobe Acrobat Professional offers the ability to batch process a folder of pdf files and OCR them and extract the text from them.

Cursor does not appear on startup macbook OSX El Capitan 10.11.4

When you startup your macbook, the cursor is invisible or it does not appear on the screen. I recently updated my macbook pro to El Capitan 10.11.4 and this problem started to appear. I combed through the system logs and the only thing that stood out to me was May 16 08:00:12 localhost com.apple.xpc.launchd[1]: assertion failed: 15E65: launchd + 180050 [527954A7-A0F1-305E-B26A-7E632B2CA0FB]: 0x1 but that did not seem to relate to anything specific.

How to clean eye glasses

Here is the simple method you can use to clean eye glasses. This method is safe and will not harm glasses with anti-reflective coatings. I have been using this method for years, and I told my co-worker about it. I did not give it much thought, but she said it works really well for her. So I decided to share it with everyone. I use to buy these lens cleaner wipes from the local pharmacy, but I found this method works much better.

How to use SASS to generate CSS

Using SASS or SCSS to generate CSS with your favorite language I am not big on using grunt or gulp, but I do like the power of what SASS offers, so I am going to explain a simple method on how you can mix sass with your programming language. This method will work with any programming language, but I happen to be using this with Go as I work on the re-design of my food project.

Updates were rejected because the remote contains work that you do not have locally

Updates were rejected because the remote contains work that you do not have locally. That is the error message you may get from git when you try to push your changes to the remote repository. Here is how to solve the problem of trying to commit to a git repository after you made changes but then someone else already committed ahead of you. Another way to look at this is that you forgot to perform a

Save yourself a ticket and learn at the same time

Here is my method to learning while driving, a hands free approach I do not alway drive, but when I do, I try to make the most of my time during my commute. I am going to show you a cool trick on how you can learn while driving. But first let me give you some overview of the situation. Many states now have laws against texting or talking on your phone without using a hands free device.