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
package main | |
import ( | |
"fmt" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"time" | |
) | |
type Person struct { |
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/bash | |
# | |
# Startup script for nomad | |
# | |
# chkconfig: 345 86 14 | |
# description: Nomad Server | |
# processname: nomad | |
# pidfile: /var/run/nomad.pid | |
# | |
### BEGIN INIT INFO |
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
USE information_schema; | |
SET @page_size = @@innodb_page_size; | |
SET @bp_pages = @@innodb_buffer_pool_size/@page_size; | |
SELECT P.TABLE_NAME, P.PAGE_TYPE, | |
CASE WHEN P.INDEX_NAME IS NULL THEN NULL WHEN P.TABLE_NAME LIKE '`SYS_%' THEN P.INDEX_NAME WHEN P.INDEX_NAME <> 'PRIMARY' THEN 'SECONDARY' ELSE 'PRIMARY' END AS INDEX_TYPE, | |
COUNT(DISTINCT P.PAGE_NUMBER) AS PAGES, | |
ROUND(100*COUNT(DISTINCT P.PAGE_NUMBER)/@bp_pages,2) AS PCT_OF_BUFFER_POOL, | |
CASE WHEN P.TABLE_NAME IS NULL THEN NULL WHEN P.TABLE_NAME LIKE 'SYS_%' THEN NULL ELSE ROUND(100*COUNT(DISTINCT P.PAGE_NUMBER)/CASE P.INDEX_NAME WHEN 'PRIMARY' THEN TS.DATA_LENGTH/@page_size ELSE TS.INDEX_LENGTH/@page_size END, 2) END AS PCT_OF_INDEX | |
FROM INNODB_BUFFER_PAGE AS P |
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
defaults write com.apple.notificationcenterui bannerTime SECONDS |
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
PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
Request timeout for icmp_seq 0 | |
64 bytes from 8.8.8.8: icmp_seq=1 ttl=56 time=11.822 ms | |
64 bytes from 8.8.8.8: icmp_seq=2 ttl=56 time=12.853 ms | |
64 bytes from 8.8.8.8: icmp_seq=3 ttl=56 time=12.298 ms | |
64 bytes from 8.8.8.8: icmp_seq=4 ttl=56 time=12.360 ms | |
64 bytes from 8.8.8.8: icmp_seq=5 ttl=56 time=21.016 ms | |
64 bytes from 8.8.8.8: icmp_seq=6 ttl=56 time=13.369 ms | |
Request timeout for icmp_seq 7 | |
Request timeout for icmp_seq 8 |