This file contains 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
<?php | |
/** | |
* Ask santa for less fugly code next year | |
* | |
* Happy new year from Ignas:) | |
*/ | |
//Open alternate window |
This file contains 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
*/1 * * * * su -s /bin/sh root -c 'cd <project_dir> && /usr/bin/git pull && node node_modules/gulp/bin/gulp.js --production && composer update && chown -R user:user *' |
This file contains 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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/public/ | |
RewriteCond /public/%{REQUEST_URI} -d | |
RewriteCond %{REQUEST_URI} !(.*)/$ | |
RewriteRule ^(.*)$ /public/$1/ | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/public/ |
This file contains 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
SELECT | |
IF(ISNULL(DB)+ISNULL(ENGINE)=2,'Database Total', | |
CONCAT(DB,' ',IFNULL(ENGINE,'Total'))) "Reported Statistic", | |
LPAD(CONCAT(FORMAT(DAT/POWER(1024,pw1),2),' ', | |
SUBSTR(units,pw1*2+1,2)),17,' ') "Data Size", | |
LPAD(CONCAT(FORMAT(NDX/POWER(1024,pw2),2),' ', | |
SUBSTR(units,pw2*2+1,2)),17,' ') "Index Size", | |
LPAD(CONCAT(FORMAT(TBL/POWER(1024,pw3),2),' ', | |
SUBSTR(units,pw3*2+1,2)),17,' ') "Total Size" | |
FROM |
This file contains 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
'use strict' | |
(function() { | |
})(); |
This file contains 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
#!/bin/bash | |
_artisan() | |
{ | |
local cache commands artisanOutput word | |
_get_comp_words_by_ref -n : -c word | |
cache=/tmp/.artisan_command_cache_$BASHPID | |
commands=() |
This file contains 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 * as types from './../mutation-types' | |
export default function loadInitialState () { | |
return store => { | |
const actions = [ | |
types.UPDATE_PROJECT_LIST | |
] | |
actions.forEach(action => store.dispatch(action)) | |
} |
This file contains 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 Dexie from 'dexie' | |
/** | |
* Usage: db.table_a.with('table_a_children', 'parent_id', 'children', 'id') | |
* | |
* This will return all items from table 'table_a' | |
* where each item will have a 'children' array with linked records from 'table_a_children' table | |
*/ | |
Dexie.addons.push((db) => { | |
/** |
This file contains 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
<?php | |
namespace App\Libraries\Date; | |
use Carbon\Carbon; | |
/** | |
* Class DateRange | |
* | |
* @package App\Libraries\Date |
This file contains 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
#!/bin/sh | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
brew cask install google-chrome iterm2 sequel-pro vagrant virtualbox slack spotify boom bettertouchtool vlc phpstorm basecamp bittorrent zsh | |
brew install git | |
mv /usr/local/Caskroom/bittorrent/latest/Bittorrent.app /Applications/Bittorrent.app |
OlderNewer