MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
#!/bin/sh | |
# | |
# Thanks @tylerhall for this tip | |
rm ~/Library/Application\ Support/VirtualHostX/". " | |
# you can also do some fun like this | |
# echo "99999999999999999999" > ~/Library/Application\ Support/VirtualHostX/". " |
//------------------------------------------------------------------------------ | |
/** | |
* Converting to boolean using !! operator | |
* | |
* Sometimes we need to check if some variable exists or if it has a valid value, | |
* to consider them as true value. For do this kind of validation, you can use | |
* the !! (Double negation operator) a simple !!variable, which will automatically | |
* convert any kind of data to boolean and this variable will return false only if | |
* it has some of these values: 0, null, "", undefined or NaN, otherwise it will | |
* return true. |
# Source: http://stackoverflow.com/a/35630637/1601332 | |
# Credit: @iron77 | |
# File path: ~/Library/Application Support/Sublime Text 3/Packages/User/confirm_delete.py | |
from Default.side_bar import * | |
class DeleteFileCommand(sublime_plugin.WindowCommand): | |
def run(self, files): | |
if len(files) == 1: | |
message = "Delete File %s?" % files[0] |
/** | |
* Chrome Extension: Gmail syntax highlighting | |
* @author : [devartis](http://www.devartis.com/) | |
* @url : https://chrome.google.com/webstore/detail/gmail-syntax-highlighting/pcipmnfalbiopheelcmpllcjciifkaeh | |
* @file : main.js | |
* @version : Modified | |
*/ | |
function convert() { | |
var selObj = window.getSelection(); |
#!/bin/bash | |
# This script creates a new project (or site) under /var/sites and creates | |
# new virtual host for that site. With the options a site can also | |
# install the latest version of Laravel directly. | |
# This script was originally based on the following script by @Nek from | |
# Coderwall: https://coderwall.com/p/cqoplg | |
# Display the usage information of the command. | |
createProjectUsage() { |