Skip to main content

Posts

Showing posts with the label Mac

High Sierra and Valgrind Install

Valgrind is a tool used for memory management and profiling your applications.  I wanted to use it on my Macbook and ran into issues installing with brew and it turned out it wasn't too horrible of a change. brew update brew install --HEAD valgrind    Voila you now have a working run of valgrind. Happy Trails.

Remote API useful tricks for Docker on Mac OS X

Install Socat Socat allow you to forward ports to a variety of things. For Docker forwarding a port to the docker.sock file makes a quick way to get access to the Docker remote api. Docker also allow a way to open up that TCP port however on Mac it is temperamental and hard to use brew install socat socat -d TCP-LISTEN:2375,reuseaddr,fork UNIX:/var/run/docker.sock & Create an IP alias Running Docker containers locally is a fairly common thing. Interconnectivity between containers works naturally. However, sometimes you may also want a container to connect back to the Docker Remote API. If you are constantly on the go changing networks you do not want to have to change that IP address every time. A great use case for this is running Jenkins and using docker slaves sudo ifconfig lo0 alias 192.168.99.50 Remote API There are also some interesting endpoints you can use for information curl http://localhost:2375 curl http://localhost:2375/containers/json curl http://l...

Top 10 Mac Keyboard Shortcuts

Control + Option + Command + Eject shutdown time image This option is used to shutdown your Mac. This nice thing about doing this instead of shutdown menu is it bypasses the counter and immediately starts shutting down. Command + Option + Eject Puts the computer to sleep bypassing the countdown. Control + Shift + Eject Allows you to put the display to sleep Command + Space-bar shutdown time image Use this shortcut to open up the spotlight bar to search for an application or a file. Command + Shift 4 This will allow you to select an area of the screen to take a screen shot of. Generally your picture will be dropped to your desktop. Control + Command + D Dictionary shortcut. This is not my most used command but it can be useful in situations Command + TAB If you are familiar with Windows this is kind of like the Alt+Tab functionality to switch between open applications Option + Command + M Sometimes you just want to minimize everything on the screen to remove ...