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
| { | |
| "title": "collectd-post", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "plugin: \"cpu\" AND plugin_instance: \"0\"", | |
| "alias": "cpu1", | |
| "color": "#7EB26D", | |
| "id": 0, |
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 | |
| # Laravel 5 new project setup bash script. | |
| # Inspired by Mitchell van Wijngaarden | |
| # Extended by John in 't Hout | |
| projectname=$1 | |
| git clone -o laravel -b develop https://github.com/laravel/laravel.git ${projectname} >/dev/null | |
| cd ${projectname} | |
| git checkout --orphan master |
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
| function type(e) { | |
| var t = Object.prototype.toString.call(e), | |
| r = /\[object (\w+)\]/i.exec(t); | |
| return r && r[1].toLowerCase(); | |
| } | |
| [1,"2", true, null, [], {}, function() {}, undefined].forEach(function(e){ | |
| console.log(type(e)) | |
| }); |
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
| var CPF = (function () { | |
| var eleven = 11; | |
| function mod(n) { | |
| var t = eleven, | |
| a = n % t; | |
| return (a < 2 ? 0 : t - n % t) + ''; | |
| } |
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 | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class ClearBeanstalkdQueueCommand extends Command { | |
| /** |
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
| server { | |
| listen [::]:80; | |
| listen 80; | |
| server_name app.example.com; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| server { |
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
| #XLarge DBInstanceClassMemory = 15892177440 = 14.8GB | |
| #/32 = 496630545 = 473MB | |
| #/64 = 248315272 = 236MB | |
| #/128 = 124157636 = 118MB | |
| #/256 = 62078818 = 59MB | |
| #/512 = 31039409 = 29MB | |
| #/12582880 = 1263 #default same divisor as max_connections = 4041.6MB = 4237924762 | |
| #/25165760 = 623 # half of max_connections = 1993.6MB | |
| #/50331520 = 315 # quarter of max_connections = 1008MB = 1056964608 | |
| #*(3/4) #default innodb pool size = 11922309120 |
NewerOlder