Quantcast
Channel: Computing Tips – Ben Lobaugh Online
Browsing index pages (31 articles)

Quickly list all hosts in your ssh config

I try to be a good citizen and create unique ssh keys for each service I ssh into. I setup all sorts of fun config items and one of my favorites is host aliases. I have accumulated dozens of hosts in...

View Article


Mute and unmute your mic quickly with this Alfred Workflow

I am on a lot of calls for work every day and juggle several different call applications. Finding the apps mute/unmute button quickly gets tedious. On some apps the UI is so poorly designed as to make...

View Article


Bash script to automatically convert git submodules to regular files

Git submodules drive me batty! They are a great idea in theory however in practical application they are a pain in the butt to work with. I have a project that has accumulated over a dozen submodules...

View Article

Find largest files in a directory using the terminal

If you need to find out what the largest files are in a directory and subdirectories here is a command you can run that will find the top 5 largest files. find . -type f | sed 's/.*/"&"/' | xargs...

View Article

Fix “frozen” Evernote app when fullscreen on OS X

The Problem: When you start Evernote it goes into fullscreen mode. You are not able to use any features of Evernote and hear the “Do not click me” error sound. The Cause: There is some sort of message...

View Article


List size of directories in the current folder in terminal

If you would like to list the size of all the directories in your current folder run the following command: [bash]du -a -h –max-depth=1 | sort -hr[/bash] This will provide output similar to [bash] 69M...

View Article

Remove untracked local files from Git

If you have need to get rid of a bunch of files that are in your git repo but not yet tracked it can be tedious to do the job one file at a time. Git has you covered with the git clean command....

View Article

Sync shared Google calendars with your iPhone or CalDAV device

When you add your Google account to an iPhone or CalDAV enabled device by default you will only see events from your calendar. If you someone has shared a calendar with you there is no clear way to...

View Article


Copy data from one Google Drive to another domain

Transferring data from one Google account to another is typically as easy as sharing the files with another user and making them owner. There is a caveat though, you have to be on the same domain or...

View Article


Using wget to crawl your website

If you are looking to crawl your website for something like cache warming you can do so with wget quite easily. The following wget command will crawl a site and leave nothing behind on the local...

View Article

Quickly list all hosts in your ssh config

I try to be a good citizen and create unique ssh keys for each service I ssh into. I setup all sorts of fun config items and one of my favorites is host aliases. I have accumulated dozens of hosts in...

View Article

Mute and unmute your mic quickly with this Alfred Workflow

I am on a lot of calls for work every day and juggle several different call applications. Finding the apps mute/unmute button quickly gets tedious. On some apps the UI is so poorly designed as to make...

View Article

Bash script to automatically convert git submodules to regular files

Git submodules drive me batty! They are a great idea in theory however in practical application they are a pain in the butt to work with. I have a project that has accumulated over a dozen submodules...

View Article


Find largest files in a directory using the terminal

If you need to find out what the largest files are in a directory and subdirectories here is a command you can run that will find the top 5 largest files. find . -type f | sed 's/.*/"&"/' | xargs...

View Article

Fix “frozen” Evernote app when fullscreen on OS X

The Problem: When you start Evernote it goes into fullscreen mode. You are not able to use any features of Evernote and hear the “Do not click me” error sound. The Cause: There is some sort of message...

View Article


List size of directories in the current folder in terminal

If you would like to list the size of all the directories in your current folder run the following command: du -a -h --max-depth=1 | sort -hr This will provide output similar to 69M . 36M ./plugins 16M...

View Article

Remove untracked local files from Git

If you have need to get rid of a bunch of files that are in your git repo but not yet tracked it can be tedious to do the job one file at a time. Git has you covered with the git clean command....

View Article


Sync shared Google calendars with your iPhone or CalDAV device

When you add your Google account to an iPhone or CalDAV enabled device by default you will only see events from your calendar. If you someone has shared a calendar with you there is no clear way to...

View Article

Cleanup and remove all merged local and remote git branches

After working on a project for a while you wind up with lots of feature and hotfix branches. If you are working on a team with a remote cannonical project repo there will likely be dozens or hundreds...

View Article

Recursively count all files in a directory from the terminal

If you utilize the terminal on a regular daily basis like I do you are bound to run into times when you need to get a count of how many files exist in a directory structure. Here is some code that will...

View Article
Browsing index pages (31 articles)


Latest Images