Skip to content

Recent Articles


Paste From Command Line to Pastebin Services Using pastebinit app

Let’s say you don’t want to copy/paste a text to post it to pastebin services and then send the link to a friend but you want to automatically place it on pastebin services. In order to do that we will use pastebinit app from Mac Ports on OSX (see at the end for Linux usage). Let’s install it:

sudo port install pastebinit

Read more »


Flush DNS Cache in OSX El Capitan

Here is how you flush the DNS cache on your OSX El Capitan machine:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

To make sure that the cache is flushed you could also change your ISP’s DNS server to Google’s DNS: just for the time you do the tests.


An useful online tool to debug your DNS server

If you want to debug your DNS server but you do not like command line tools like dig or nslookup, there’s an useful online tool that helps you when trying to troubleshot your DNS server:


Online tools that helps you to debug your website

Here are 3 online tools that help you to debug your website:

PageSpeed Insights from Google:
PingDom Tools:

You can see page load times and other useful info and also there’s advice regarding how to optimise your website.


Clear an icon stuck on your screen on OSX El Capitan

If you have an icon that remained on the screen over a window and if that icon will not dissappear when you move the window there’s a way to get rid of it by killing the dock. Run from OSX’s Terminal:

sudo killall Dock

Note: Maybe this bug appears on Yosemmite too, I don’t know. And maybe there’s other ways to accomplish this task but well, that’s what I did to get rid of an OSX icon stuck on my screen.


Disable SSL Cert When Cloning a GitHub Project

To disable SSL Certificate verification for GitHub run the following command:

git config --global http.sslVerify false

Switch Between Header and Implementation File in Xcode

If you want to switch between header file and implementation file in Xcode, there’s a shortcut for that. Just press:

Ctrl + Cmd + Up Arrow or Down Arrow


Go to beginning or end of line in Xcode and other navigation tips

Here are some very basic navigation tips every programmer that works with Xcode must know and use them.

Tip 1. Go to the beginning or the end of line

Here is a quick tip: to go to the beginning of a code line in Xcode press:

Cmd + left arrow key

To go to the end of line press:

Cmd + right arrow key

Tip 2. Jump from word to word

To jump from word to word press:

Alt + left arrow key (to jump to left word)


Alt + right arrow key (to jump to right word)

Tip 3. Move cursor a page up or down

To move cursor one page up press:

Alt + Page Up key

To move the cursor one page down press:

Alt + Page Down key


Fix SDL2 Crash When Compiling using Xcode on Mac OSX

If you want your SDL2 app to compile without crashing you must sign it. In order to do that let’s go to SDL2.framework directory:

cd /Applications/ MacOSX.platform/

To check if SDL2 is code signed run:

codesign -vvvv SDL2

To signe SDL2 run:

codesign -f -s - SDL2

Note: If you are using an older version of OSX then the path where SDL2.framework is located might be different. For example on OSX 10.7 we can have an Xcode that has SDK for OSX 10.8 located in: /Applications/
Developer /SDKs/MacOSX10.8.sdk/System/Library/Frameworks/SDL2.framework/


Find out details about an image with ImageMagick utility

We can find out details about an image using identify tool from ImageMagick package, available on multiple OSes:

identify -verbose img1.bmp