Skip to content

Instantly share code, notes, and snippets.

View DarkaOnLine's full-sized avatar

Darius Matulionis DarkaOnLine

View GitHub Profile

Keybase proof

I hereby claim:

  • I am darkaonline on github.
  • I am darkaonline (https://keybase.io/darkaonline) on keybase.
  • I have a public key ASCvSklIupF0eikiFaupKgNEATkexuE7yCER4W08i2ACeAo

To claim this, I am signing this object:

@DarkaOnLine
DarkaOnLine / vhost.sh
Created June 12, 2016 08:03
Create virtual host for apache2
#!/bin/bash
### Set default parameters
action=$1
domain=$2
rootDir=$3
owner=$(who am i | awk '{print $1}')
email='darius@matulionis.lt'
sitesEnable='/etc/apache2/sites-enabled/'
sitesAvailable='/etc/apache2/sites-available/'
@DarkaOnLine
DarkaOnLine / php-storm-eap-update.sh
Created December 21, 2015 06:57
PHPStorm EAP linux updater
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# IMPORTANT. Run with sudo!
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
read url
# Download file from url
echo "Downloading PhpStorm to ~/Desktop"
@DarkaOnLine
DarkaOnLine / commonjs.module.js
Created November 25, 2015 06:40
Common js module boiler plate
(function (root, factory) {
if (typeof exports === 'object') {
// CommonJS
module.exports = factory(require('b'));
} else if (typeof define === 'function' && define.amd) {
// AMD
define(['b'], function (b) {
return (root.returnExportsGlobal = factory(b));
});
} else {