Skip to content

Instantly share code, notes, and snippets.

.flex-even {
flex: 1 0 0px;
}
@tomrishworth
tomrishworth / gist:b457157620728074fcd6a086477a991a
Created November 30, 2017 19:57
CINSF API Docker Commands
docker exec -it cinsf-api-web bash
$bg-light: #f6f6f6;
$border-light: #ddd;
$text-light: #888;
$text-color: #666666;
// Containers
.container-xs {
max-width: 450px;
margin-left: auto;
ssh-add -L
ssh-add -K ~/.ssh/id_rsa
sudo ssh-add -K ~/.ssh/id_rsa
@tomrishworth
tomrishworth / gist:4e45a6dd75b8c0cdcf57c7af0e67251e
Last active February 13, 2017 20:45
Depoly subfolder to github pages
git subtree push --prefix subfolder-name-here origin gh-pages
git subtree push --prefix build origin gh-pages
@tomrishworth
tomrishworth / Sass loop
Created September 7, 2016 04:01
Sass loop
@for $i from 1 through 10 {
$delay-start: 50;
$delay: 50ms;
.navbar-nav > li:nth-child(#{$i}) {
a, .dropdown-toggle {
transition-delay: ($delay * $i + $delay-start) !important;
}
}
}
{
"always_show_minimap_viewport": true,
"auto_complete_delay": 0,
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"auto_find_in_selection": true,
"binary_file_patterns":
[
".sass-cache/*"
],
"bold_folder_labels": true,
# Symlink project directory
ln -s ~/projects/fund-manager-api www
# Load Aliases
source scripts/aliases.sh
dstart
dartisan migrate:refresh --seed
docker rmi lmsportal_mysql_1
body {
&:after {
position: fixed;
bottom: 0;
right: 0;
content: 'xs (- 768px)';
background: #333;
color: #fff;
padding: 3px 6px;
@include MQ(S) {
Add new virtual hosts settings to settings.yml
Vagrant up
Vagrant ssh
cd into project folder
clone repo from Pantheon
create settings.local.php(duplicate and rename example.settings.local.php)
edit database settings
change base_url
grab files & database from Pantheon
unzip db and rename to database.sql