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
/** | |
* Vertical centering CSS technique | |
*/ | |
div:before, | |
div p {display:inline-block; vertical-align:middle;} | |
div:before {content:" "; height:100%;} | |
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 | |
## | |
# Modified version of https://gist.github.com/3680107 | |
# | |
# Tested for use on Mac OS X 10.7.5 with Bash 3.2.48(1)-release | |
# | |
# Old module needs to be in system/cms/modules and a single word (Ex: blogs not site_blogs) | |
## |
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
<snippet> | |
<!-- put this file in /Packages/User/console_log.sublime-snippet --> | |
<content><![CDATA[console.log($SELECTION$1);]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>text.html,source.js</scope> | |
<description>console.log()</description> | |
</snippet> |
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
.modal .modal-body { | |
max-height: calc(100vh - 200px); | |
overflow-y: auto; | |
} |
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
this was tested using windows10 pro | |
when cloning a git this error was produced | |
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/RepositoryName': The requested URL returned error: 403 | |
to fix add the following git configuration | |
git config --global credential.helper "!aws codecommit credential-helper $@" | |
git config --global credential.UseHttpPath true | |
check if git has system credential.helper by typing |
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
//client/main.js | |
import moment from 'moment'; | |
import 'moment-timer'; | |
Template.body.onRendered(function(){ | |
new moment.duration(1000).timer({ start: true, loop: true }, () => { | |
console.log('moment timer run'); | |
}); | |
}); |
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
#placed in .htaccess together with coming-soon.html | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Allow all static image | |
RewriteRule ^static/img/(.*)$ static/img/$1 [L] | |
# Show coming soon page | |
RewriteCond %{REMOTE_ADDR} !=127.0.0.0 #internal public ip address | |
RewriteRule ^ coming-soon.html [L] |
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
docker rm -f container || echo "Container not found" |
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
# Install https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh to ~.git-prompt.sh | |
# Add to code below to ~.profile | |
# store colors | |
MAGENTA="\[\033[0;35m\]" | |
YELLOW="\[\033[01;33m\]" | |
BLUE="\[\033[00;34m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
CYAN="\[\033[0;36m\]" | |
GREEN="\[\033[32m\]" |
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
<VirtualHost laravel.localhost.com:80> | |
ServerAdmin [email protected] | |
DocumentRoot "/path/to/laravel/application/public/folder" | |
ServerName laravel.localhost.com | |
ErrorLog "logs/laravel.localhost.com.log" | |
CustomLog "logs/laravel.localhost.comm-access.log" common | |
SetEnv DATABASE_URL http://user:pass@localhost/ | |
</VirtualHost> |
OlderNewer