| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| /* | |
| * Fabrizio Calderan, twitter @fcalderan, 2010.11.02 | |
| * I had an idea: could Inception movie be explained by a few javascript closures | |
| * and variable resolution scope (just for fun)? | |
| * | |
| * Activate javascript console =) | |
| */ | |
| <script> | |
| console.group("inception movie"); |
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
| (function() { | |
| // | |
| // Iterates over an array of numbers and returns the sum. Example: | |
| // | |
| // _.sum([1, 2, 3]) => 6 | |
| // | |
| _.sum = function(obj) { | |
| if (!$.isArray(obj) || obj.length == 0) return 0; | |
| return _.reduce(obj, function(sum, n) { |
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
| (function($) { | |
| function getTextWidth($element) { | |
| var tester = $("<div/>").text($element.text()) | |
| .css({ "position": "absolute", "float": "left", "white-space": "nowrap", "visibility": "hidden", "font": $element.css("font"), "text-transform": $element.css("text-transform"), "letter-spacing": $element.css("letter-spacing") }) | |
| .appendTo($element.parent()), | |
| width = tester.innerWidth(); | |
| tester.remove(); | |
| return width; | |
| } |
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
| echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-extract.desktop | |
| echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-apps.desktop | |
| echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-fs.desktop | |
| echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-miner-user-guides.desktop | |
| echo -e "\nHidden=true\n"|sudo tee --append /etc/xdg/autostart/tracker-store.desktop | |
| gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 | |
| gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false | |
| tracker reset --hard |
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
| ! Swap Alt and Cmd keys. | |
| keycode 37 = Control_L | |
| keycode 49 = less greater less greater backslash brokenbar bar | |
| keycode 133 = Alt_L Meta_L | |
| keycode 64 = Super_L | |
| keycode 108 = Super_R | |
| keycode 134 = ISO_Level3_Shift Multi_key | |
| keycode 105 = Control_R Multi_key | |
| clear Shift | |
| clear Lock |
Estimated time: 10 minutes
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
| <# | |
| .Synopsis | |
| Automates the TLS Enablement of RabbitMQ. | |
| .DESCRIPTION | |
| This script will use provided certs to create the TLS configuration for the RabbitMQ. Unless provided will generate the selfsigned certficate to do so.This script uses OpenSSL to generate certficates and test SSl. | |
| If not installed the script will download and install OpenSSL. | |
| .PARAMETER RabbitMQver | |
| The version of the RabbitMQ installed at "C:\Program Files\RabbitMQ Server\" to manipulate the service. | |
| .PARAMETER CA | |
| The certficate authority chain to be used. |
OlderNewer