Making a Git project open source when you have secret keys

You could remove the secret keys using the git-filter-repo tool, see this explanation in the GitHub documentation. git-filter-repo is much preferable to the older git filter-branch. My old, now somewhat out-of-date answer: You could remove the secret keys from the repository using a hammer like git filter-branch. There is a nice explanation on GitHub’s help … Read more

How to give a .tf file as input in Terraform Apply command?

You can’t selectively apply one file and then the other. Two ways of (maybe) achieving what you’re going for: Use the -target flag to target resource(s) in one file and then the other. Put each file (or more broadly, group of resources, which might be multiple files) in separate “modules” (folders). You can then apply … Read more

Looking for an embeddable SQL beautifier or reformatter [closed]

UPDATE 2: org.hibernate.jdbc.util.BasicFormatterImpl got moved in release 4.0. It is now located at: org.hibernate.engine.jdbc.internal.BasicFormatterImpl. UPDATE 1: Technology marches on. As noted by Alex, org.hibernate.pretty.Formatter no longer exists as of version 3.3.2.GA. The replacement is org.hibernate.jdbc.util.BasicFormatterImpl: String formattedSQL = new BasicFormatterImpl().format(sql); ORIGINAL ANSWER: If you’re using Hibernate, they’ve got one built-in: org.hibernate.pretty.Formatter String formattedSQL = new … Read more

open source text to speech library [closed]

Festival is an open source text-to-speech system. Stanford uses it for their Natural Language Processing class, and they have up-to-date instructions about installation on this cs224s homework page. Installation on Mac OS X requires a couple patches, which they’ve wrapped into a handy install script. There are alternate voices you can use which sound noticeably … Read more

Generate a pdf thumbnail (open source/free) [closed]

Matthew Ephraim released an open source wrapper for Ghostscript that sounds like it does what you want and is in C#. Link to Source Code: https://github.com/mephraim/ghostscriptsharp Link to Blog Posting: http://www.mattephraim.com/blog/2009/01/06/a-simple-c-wrapper-for-ghostscript/ You can make a simple call to the GeneratePageThumb method to generate a thumbnail (or use GeneratePageThumbs with a start and end page number … Read more

How do commercial Java static analysis tools compare with the free ones? [closed]

We use a suite of open source and commercial static analysis tools. The different tools find different kinds of bugs and some are tuned for lower false positive rates, at the expense of possibly missing some real problems. In my experience, Findbugs does a good job of finding real problems, especially if you focus on … Read more

Can I really not ship open source with Client ID? [closed]

On November 5th 2014 Google made some changes to the APIs terms of Service. Like you I had an issue with the following line. Asking developers to make reasonable efforts to keep their private keys private and not embed them in open source projects. I have several open source projects on GitHub they are basically … Read more

tech