The solution: add both the +noall and +answer flags before the query.
dig +noall +answer google.de
–jeroen
Posted by jpluimers on 2016/01/25
The solution: add both the +noall and +answer flags before the query.
dig +noall +answer google.de
–jeroen
Posted in *nix, *nix-tools, Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, Power User, SuSE Linux | Leave a Comment »
Posted by jpluimers on 2016/01/13
Many sites giving your public IP address return a web page with a bloat of html. From the command-line, you are usually only interested in the IP-address itself. Few services return exactly that.
Below are command-line examples to provide the public IP address mostly from a *nix perspective. Usually you can get similar commands to work with Windows binaries for wget and Windows binaries for curl.
In the end, I’ve opted for commands in this format, as I think akamai will last longer than the other sites (but does not include an end-of-line in the http result hence the echo on Mac/*nix):
I’ve not tried aria2 yet, but might provide commands for that in the future.
These are the Linux permutations for akamai:
curl whatismyip.akamai.com && echo curl ipv4.whatismyip.akamai.com && echo curl ipv6.whatismyip.akamai.com && echo curl ipv4.whatismyip.akamai.com && echo && curl ipv6.whatismyip.akamai.com && echoThe last two are convenient when you have both IPv4 and IPv6 configured on “the outside”.
You can replace curl with wget -q -O – (which outputs to stdout) for each command. You can even ommit the http:// (as that is the default protocol for both curl and wget).
Posted in *nix, *nix-tools, Apple, bash, bash, Batch-Files, cURL, Development, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development, SuSE Linux, wget | Leave a Comment »
Posted by jpluimers on 2015/12/28
Unlike SourceTree for Windows, SourceTree for Mac still doesn’t automagically detect Beyond Compare even though that has been available for Mac OS X since : [SRCTREE-2092] Add built-in support for Beyond Compare version 4 – Atlassian JIRA.
Even modifying my ~/.gitconfig didn’t work, but manual configuration did. Here are the steps:
Posted in Apple, Beyond Compare, Development, DVCS - Distributed Version Control, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Source Code Management, SourceTree | 3 Comments »
Posted by jpluimers on 2015/12/18
Interesting:
For codesign verification:
find /Applications -d 1 -name "*.app" -exec codesign --verify --verbose {} \;For system policy assessment:
find /Applications -d 1 -name "*.app" -exec spctl --assess --verbose {} \;
–jeroen
Posted in Apple, bash, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2015/12/16
Two great Ultimate Ears tricks. First pairing them (thanks daleph, see also the video below):
To pair 2 devices without an app:
- Pair the FIRST speaker with your mac:
- Go to System Preferences > Bluetooth
- Press and hold the Bluetooth button until a tone is heard, it should appear as UM BOOM, pair it.
- Start playing music
- On the device now playing music press and hold the + and the Bluetooth keys until a tone is heard
- On the SECOND speaker press the Bluetooth button twice quickly
- After a few seconds both speakers will join together
They are only added as an identical pair, NOT Left and Right stereo
HTH
Dale
Then doing double up in stereo (thanks tomborai and McAllan):
There IS a way… you just gotta find a buddy who has the UE Boom App on either iOS or Android.
Set up STEREO mode and enable “Double Up Lock” just once with the App, ensure it plays proper stereo, then disconnect and power off both speakers.
App no longer needed.
Whenever you desire, power on both speakers around the same time, they will pair within seconds.
Then take your MAC, pair the first speaker only (LEFT), et voila, the speakers have memorized the stereo mode, enjoy!
Sources:
–jeroen
Posted in Apple, Mac OS X / OS X / MacOS, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | 4 Comments »
Posted by jpluimers on 2015/12/01
To view a WiFi password on OS X for an SSID you have been connected to before (you don’t need to be connected to it now):
–jeroen
via: osx – How to find wifi password on my mac which is already connected – Ask Different.
Posted in Apple, Mac OS X / OS X / MacOS, OS X 10.10 Yosemite, OS X 10.9 Mavericks, Power User, SpotLight | Leave a Comment »
Posted by jpluimers on 2015/11/30
On Mac OS X, bare route and ifconfig give way too much information to view the most important things at once.
So I used an alias for this:
route -n get default | grep 'gateway' && echo && ifconfig | grep '\: flags\|inet\|inet6'
Later I needed IPv6 support, so I changed it to:
netstat -nr | grep 'Internet\|Gateway\|default' && echo && ifconfig | grep '\: flags\|inet\|inet6'
So you get something like this:
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.178.1 UGSc 23 0 en4
default 192.168.71.1 UGScI 7 0 en0
Internet6:
Destination Gateway Flags Netif Expire
default fe80::3631:c4ff:fe47:13f1%en0 UGc en0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::6203:8ff:fea2:4814%en0 prefixlen 64 scopeid 0x4
inet 192.168.71.40 netmask 0xffffff00 broadcast 192.168.71.255
inet6 2001:982:2345:1:6203:8ff:fea2:4814 prefixlen 64 autoconf
inet6 2001:982:2345:1:4011:119a:e527:e021 prefixlen 64 autoconf temporary
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
p2p0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 2304
en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::426c:8fff:fe44:95ea%en4 prefixlen 64 scopeid 0xb
inet6 fd00::426c:8fff:fe44:95ea prefixlen 64 detached autoconf
inet6 fd00::74a7:8f26:cd22:20b7 prefixlen 64 detached autoconf temporary
inet 192.168.178.22 netmask 0xffffff00 broadcast 192.168.178.255
–jeroen
via:
Posted in Apple, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2015/11/16
The only reliable way to create a remote print-screen is by using the Windows On-Screen Keyboard. It even works with Alt-Prt+Sc to make screenshots of individual Windows.
Just run OSK to start the On-Screen Keyboard.
–jeroen
via: osx – How to print screen in Remote Desktop Client (RDS) on Mac OS X? – Super User.
Posted in Apple, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2015/10/15
LOL:
The if syntax of your script was a bit…well, iffy.
Indeed it is:
#!/bin/bash #toggle AppleShowAllFiles current_value=$(defaults read com.apple.finder AppleShowAllFiles) if [ $current_value = "TRUE" ] then defaults write com.apple.finder AppleShowAllFiles FALSE else defaults write com.apple.finder AppleShowAllFiles TRUE fi killall Finder
Even the alternative if statement is:
if [[ $(defaults read com.apple.finder AppleShowAllFiles) == TRUE ]]
–jeroen
via osx – Toggle AppleShowAllFiles with a simple bash script? – Stack Overflow.
Posted in Apple, bash, Development, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2015/10/09
When you’re not a frequent iTunes user, and recycle computer systems, then every once in a while you will get you in to a situation where you have Music on your iPod, but not on your PC any more.
Whereas iTunes is great at putting music on an iPod, it cannot get it back.
There are numerous paid tools to get the music from your iPod, but doing it manually is not that hard. Below are a few links to get you started, but they all come down to this:
The steps to copy them back
Music and Music/F* folders inside it using this chflags trick from Unhiding Unix Directories | Apple Support Communities:
chflags nohidden Musicchflags nohidden Music/F*Some links explaining this in more detail:
–jeroen
Posted in Apple, iPod, iTunes, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9 | 2 Comments »