Skip to content

Instantly share code, notes, and snippets.


gmo gmolop

View GitHub Profile
gmolop /
Last active Oct 24, 2019 — forked from jasonlewis/
Bash script that creates a new project and virtual host for that project. Can also be used to quickly create a new Laravel project.
# 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:
# Display the usage information of the command.
createProjectUsage() {
gmolop / main.js
Last active Oct 26, 2017
Fix for Chrome Extension "Gmail syntax highlighting" by "devartis" Raw Raw
View main.js
* Chrome Extension: Gmail syntax highlighting
* @author : [devartis](
* @url :
* @file : main.js
* @version : Modified
function convert() {
var selObj = window.getSelection();
gmolop /
Created Mar 28, 2017
Sublime Text 3: Confirm dialog to delete file(s)
# Source:
# Credit: @iron77
# File path: ~/Library/Application Support/Sublime Text 3/Packages/User/
from Default.side_bar import *
class DeleteFileCommand(sublime_plugin.WindowCommand):
def run(self, files):
if len(files) == 1:
message = "Delete File %s?" % files[0]
gmolop / JavaScriptUsefulHacks.js
Last active May 4, 2016
JavaScript Useful Hacks
View JavaScriptUsefulHacks.js
* 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.
gmolop /
Created Oct 6, 2015 — forked from ericbroska/
The simple way to reset available trial time of VirtualHostX application (3.x, 4.x)
# Thanks @tylerhall for this tip
rm ~/Library/Application\ Support/VirtualHostX/". "
# you can also do some fun like this
# echo "99999999999999999999" > ~/Library/Application\ Support/VirtualHostX/". "
gmolop /
Last active Aug 29, 2015 — forked from vertexclique/
Alternative method for OS X


Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text