Search Git Commits Between Dates

One of my weaknesses as a developer is relying on UIs to provide me the data I need.  It’s not a fatal weakness but it does hamper me a bit.  One prime example is relying on GitHub’s interface to review changes; git’s command line provides the information needed with commands but the UI is just […]
The post Search Git Commits Between Dates appeared first on David Walsh Blog.

Link: https://davidwalsh.name/search-git-dates

Count Frames in an Animated GIF

The animated GIF always makes me chuckle; on one hand they seem like a relic of the “old web”, on the other hand they aren’t going anywhere and their meme-like presence seem to only make them more popular.  If you browse through my media blog posts archives, you’ll notice that I’ve written a ton about […]
The post Count Frames in an Animated GIF appeared first on David Walsh Blog.

Link: https://davidwalsh.name/count-frames-animated-gif

Show FPS for Steam Games

There’s nothing more frustrating to a top gamer (outside of bugs in a game) than dropped frames in a video game.  If you’re playing a competitive multiplayer game like PUBG or Fortnite, where up to 100 people are simultaneously competing, dropped frames can be the difference between ecstasy or a bullet between the eyes. While […]
The post Show FPS for Steam Games appeared first on David Walsh Blog.

Link: https://davidwalsh.name/steam-fps

console.logTime

I work on a really complex debugger at Mozilla but, and don’t tell my colleagues, I sometimes enjoy simply using console.log and other console commands to get some simple output.  I know, I know, but hey — whatever gets the job done.  A few years ago I detailed console.time and console.timeEnd for measuring time for a given set […]
The post console.logTime appeared first on David Walsh Blog.

Link: https://davidwalsh.name/console-logtime

How to Delete Untracked Files in a Mercurial Repository

Working around Firefox at Mozilla means that you need to get acquainted with mercurial, the version control system that rivals git and svn.  Like any tool, hg (mercurial) can be difficult until you’re well versed with it.  And if you hg import a URL that doesn’t match up with what’s in the repo, you’ll get a […]
The post How to Delete Untracked Files in a Mercurial Repository appeared first on David Walsh Blog.

Link: https://davidwalsh.name/mercurial-purge

Regain Disk Space from Homebrew

One of my favorite utilities is Homebrew, the shell utility for installing and upgrading other utilities — it’s a lazy developer’s dream.  Dreams can easily turn to nightmares, however, and I recently learned that Homebrew caches older versions of installed packages, leading to loads of disk space being used up by old files. Want all […]
The post Regain Disk Space from Homebrew appeared first on David Walsh Blog.

Link: https://davidwalsh.name/brew-cleanup

Change Python Version

Python plays a major role at Mozilla; much of our website backends and tooling are written in the powerful language.  Want to build Firefox?  You’ll need to make sure you have the proper Python version, which I recently found out had been upgraded. Despite installing and verifying I had the version of python I needed, […]
The post Change Python Version appeared first on David Walsh Blog.

Link: https://davidwalsh.name/change-python-version

Set a Default Push Remote with git

During my early days of git usage, my config allowed me to simply type git push instead of git push {origin} {branch_name} which I need to now.  Up until recently I needed to type out the long version…(I know)…which was incredibly annoying because I like using detailed branch names. I’d finally had enough of the copy and […]
The post Set a Default Push Remote with git appeared first on David Walsh Blog.

Link: https://davidwalsh.name/git-default-remote

How to Delete a git Remote Branch

Keeping a tidy repository is important; not just a tidy codebase, but a tidy repository in as far as not having spare branches rotting around.  Generally the main repository doesn’t keep multiple branches but sometimes you need to push to a main repository simply to get Travis CI to run tests.  Once a branch is merged, […]
The post How to Delete a git Remote Branch appeared first on David Walsh Blog.

Link: https://davidwalsh.name/delete-git-remote-branch

Find Empty Files and Directories from Command Line

If you are anything like me, you like to keep your projects as tight as possible.  By “tight” I mean no lingering, useless files or directories, because bloat is an incredible annoyance and distraction.  And we don’t want distractions, do we? There’s a really easy way to find empty files and directories from the command […]
The post Find Empty Files and Directories from Command Line appeared first on David Walsh Blog.

Link: https://davidwalsh.name/find-empty-files