Skip to content

Instantly share code, notes, and snippets.

View Mindgames's full-sized avatar
:octocat:

Mathias Åsberg Mindgames

:octocat:
View GitHub Profile
.container {
max-width: 400px;
margin-top: 100px;
}
#form .form-group {
margin-bottom: 5px;
}
#form .help-block {
display: block;
@Mindgames
Mindgames / bewrMB.markdown
Last active August 28, 2016 16:51
bewrMB
@Mindgames
Mindgames / scss
Created May 29, 2016 22:07
Scss variables
// Variables
//
// Copy settings from this file into the provided `_custom.scss` to override
// the Bootstrap defaults without modifying key, versioned files.
// Table of Contents
//
// Colors
// Paths
<?php
// Function to make it possible to mix box with Whey
?>
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#myMix">
Mix
</button>
@Mindgames
Mindgames / Digital-ocean-wordpress-mysql-crash-fix.md
Last active March 18, 2016 11:05
DigitalOcean Mysql Wordpress Issue Fix

Edit my.cnf

Use $locate my.cnf or $grep my.cnf

Below [mysqld] add following.

innodb_buffer_pool_size=64M
@Mindgames
Mindgames / gist:556dc7d1e452d0cefcb7
Created February 11, 2016 22:04
Amazon S3 download with Curl
#!/bin/sh
file=path/to/file
bucket=your-bucket
resource="/${bucket}/${file}"
contentType="application/x-compressed-tar"
dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`"
stringToSign="GET
${contentType}
${dateValue}
${resource}"
@Mindgames
Mindgames / Facebookmeta.txt
Created February 1, 2016 19:59
Facebook meta tags
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
@Mindgames
Mindgames / DockerGTH
Last active January 16, 2016 00:01
Docker GTH
# Stop all running containers
docker stop $(docker ps -a -q)
# Remove all running containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@Mindgames
Mindgames / docker_test_haproxy.cfg
Last active January 1, 2016 20:14
Example haproxy.cfg file for a Docker test installation of WordPress containers [http://cloudstore.interoute.com/main/knowledge-centre/blog/coreos-docker-vdc-part3]
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
user haproxy
group haproxy
defaults
log global
mode http
option httplog