This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Solution: | |
| Launch Keychain Access by clicking Applications > Utilities > Keychain Access | |
| On the left upper pane, under Keychains select System | |
| On the left lower, under Category select All Items | |
| On the right side of the screen scroll to the bottom and locate the two items called VPN(IPSec) | |
| Double-click the VPN(IPSec) whos kind is IPSec XAuth Password | |
| Click the Access Control button/tab. The applications permitted to use this keychain item will be displayed below. If you’re prompted for your password, enter it. | |
| Click the plus (+) sign | |
| When the Finder window appears, press Cmd + Shift + G on your keyboard | |
| When the Go To Folder dialog appears, enter /usr/libexec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ls ./maus/music/Stevie\ Ray\ Vaughn\ and\ Double\ Trouble/Texas\ Flood/*.mp3 | |
| | sed 's/^\./http:\/\/red.act.ed/' | |
| | sed 's/ /%20/g' | |
| > playlist.m3u | |
| Which produces a file of the form: | |
| $ cat playlist.m3u | |
| http://red.act.ted/maus/music/Stevie%20Ray%20Vaughn%20and%20Double%20Trouble/Texas%20Flood/01%20Love%20Struck%20Baby.mp3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| What about JSON bindings for XMPP? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import mosquitto | |
| def on_connect(rc): | |
| if rc == 0: | |
| print "Connected" | |
| def on_message(msg): | |
| # Do something | |
| print msg.topic | |
| print msg.payload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Image | |
| import StringIO | |
| buffer = file("xyz.jpg").read() | |
| si = StringIO.StringIO(buffer) | |
| i = Image.open(si) | |
| i.show() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Extracting *.tar.gz using tar: | |
| tar -xzvf file.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed 's|.*LINE_TO_MATCH.*|//&|g' fileToComment.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # All ports | |
| sudo lsof -i -P | |
| # Listening ports | |
| sudo lsof -i -P | grep "LISTEN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Corrects brace types in lib/CMakeLists.txt | |
| # Adds python module installation | |
| diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt | |
| index 915fcac..957c2e5 100644 | |
| --- a/lib/CMakeLists.txt | |
| +++ b/lib/CMakeLists.txt | |
| @@ -1,4 +1,5 @@ | |
| add_subdirectory(cpp) | |
| +add_subdirectory(python) |
OlderNewer