Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| db.getCollection('list').aggregate([ | |
| { | |
| $facet: { | |
| "events":[{ | |
| $match: { | |
| 'type': 'Event' | |
| } | |
| }], | |
| "tasks": [{ | |
| $match: { |
| // ==UserScript== | |
| // @name AtlassianTuner | |
| // @description Custom javascript to inject onto Atlassian's Jira and Confluence to make experience better (at least for me) | |
| // @namespace https://gist.github.com/lipkau/481342249739847f2d7f8d3099783ce4 | |
| // @author Oliver Lipkau | |
| // @version 0.10.1 | |
| // @include https://*.bsh-sdd.com* | |
| // @require https://code.jquery.com/jquery-2.2.4.min.js#sha256=BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44= | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js#sha256=WofcoLT8gToeaSmVRe28qpnlFxdBJH1n4K6Bk3YowvU= | |
| // @run-at document-start |
When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.
Basic empty web app with actuators has three such gaps:
0 1410ms
|------|---------------------------|-----|------|---------|--------|--------|
| 578 | |144(5)| | 133(6) |
windows
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for `%s`\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "%s> " "$command" |
It seems there is some problems between Vagrant 1.6.2 and VirtualBox 4.3.12 (the latest at the time or writing this),
switching back to VirutalBox 4.3.6 or VirtualBox 4.3.8 seems to eliminate the problem.
update 1: Try both Vagrant 1.6.2 and VirtualBox 4.3.12 on Mac and they seem to work fine!
update 2: You need to enable Virtual Machine option in your BIOS to make VirtualBox work as expected. Saw someone mention about this in Laravel forum about this and it is true.
Also, Vagrant version should be 1.6.2.
| <?php | |
| function toArray($object) { | |
| $dump = '$dump = '.var_export($object, true); | |
| $dump = preg_replace('/object\([^\)]+\)#[0-9]+ /', 'array', $dump); | |
| $dump = preg_replace('/[a-zA-Z_]+::__set_state/', '', $dump); | |
| $dump = str_replace(':protected', '', $dump); | |
| $dump = str_replace(':private', '', $dump); | |
| $dump .= ';'; | |
| eval($dump); | |
| return $dump; |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass