This file contains hidden or 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
| <!-- Add this where you want your link, if you already have a element or button you would like to use, just add onClick="randomMe" to the element code, see example --> | |
| <a onClick="randomMe()" rel="nofollow" href="#">Link do ankiety</a> | |
| <!-- Add this script anywhere on page, it will exectue when user click link / element and will give user a random number between 1 and 100 where we send all with 50 or less to one url and the others with more then 50 to the other one, that should give us a likley 50/50 splitt over time --> | |
| <script> | |
| function randomMe() { | |
| // Generate a number between 1 and 100 | |
| var myNumber = Math.floor((Math.random() * 100) + 1); | |
| // If number is over 50.. | |
| if (myNumber > 50) { |
This file contains hidden or 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
| .container { | |
| max-width: 400px; | |
| margin-top: 100px; | |
| } | |
| #form .form-group { | |
| margin-bottom: 5px; | |
| } | |
| #form .help-block { | |
| display: block; |
This file contains hidden or 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
| // 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 |
This file contains hidden or 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 | |
| // 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> |
Edit my.cnf
Use
$locate my.cnf
or
$grep my.cnf
Below [mysqld] add following.
innodb_buffer_pool_size=64M
This file contains hidden or 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 | |
| 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}" |
This file contains hidden or 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
| <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" /> |
This file contains hidden or 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
| # 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) |