This file contains 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
wf_production=# VACUUM ANALYZE partial_batch; | |
ERROR: relation "partial_batch" does not exist | |
wf_production=# SELECT relname, age(relfrozenxid) AS age FROM pg_class WHERE relkind = 'r' ORDER BY age DESC LIMIT 1; | |
relname | age | |
----------------+----------- | |
completed_tick | 188429724 | |
(1 row) | |
wf_production=# VACUUM ANALYZE partial_batch; | |
ERROR: relation "partial_batch" does not exist |
This file contains 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
<% | |
seed = IPAddr.new(ipaddress).to_i | |
minutes_offset = (seed % 60) * 2 | |
hour = (minutes_offset / 60) % 24 | |
minute = minutes_offset % 60 | |
dailyminute = minute | |
weeklyminute = (minute + 20) % 60 | |
monthlyminute = (minute + 40) % 60 | |
-%> |
This file contains 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
description "Monitoring wrapper" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
export RUNLEVEL | |
pre-start script | |
RETURN=0 | |
LOOPS=300 | |
for i in $(seq $LOOPS); do | |
ping -W1 -c1 mon-001.sjc1.yammer.com |
This file contains 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
ipwatchd: up | |
memcached: up | |
mysql: up | |
nginx: up | |
redis-server: up | |
rngd: up | |
rsyslog: up | |
ssh: up | |
enterprise-manage: | |
enterprise-manage-unicorn: up |
This file contains 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
admin@github-int-yammer-com:~$ ls -alh /data/enterprise | |
total 64K | |
drwxr-xr-x 2 root root 4.0K 2013-01-14 12:02 . | |
drwxr-xr-x 15 git git 4.0K 2012-08-15 14:28 .. | |
lrwxrwxrwx 1 root root 37 2013-01-14 12:02 chef.log -> /var/log/chef/chef.20130114120254.log | |
-rw-r--r-- 1 root root 77 2013-01-14 07:25 chef_metadata.json | |
lrwxrwxrwx 1 root root 30 2013-01-14 12:02 code_debs -> /data/enterprise/ghp/code_debs | |
lrwxrwxrwx 1 root root 30 2013-01-14 12:02 cookbooks -> /data/enterprise/ghp/cookbooks | |
-rw-r--r-- 1 root root 2.7K 2012-02-07 00:55 customer.gpg | |
-rw-r--r-- 1 root root 19K 2013-01-14 12:02 dna.json |
This file contains 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
Processing OrganizationsController#update (for 10.160.16.206 at 2013-01-14 16:18:45) [PUT] | |
Parameters: {"action"=>"update", "_method"=>"put", "id"=>"thirdparty", "field"=>"profile_location", "value"=>"[FILTERED]", "controller"=>"organizations"} | |
User Load (0.3ms) SELECT * FROM `users` WHERE (`users`.`id` = 3) LIMIT 1 | |
SQL (0.3ms) SELECT count(*) AS count_all FROM `users` WHERE (type <> 'Organization' AND login <> 'ghost' AND suspended_at IS NULL) | |
Organization Load (0.2ms) SELECT * FROM `users` WHERE (`users`.`login` = 'thirdparty') AND ( (`users`.`type` = 'Organization' ) ) LIMIT 1 | |
Team Load (0.2ms) SELECT * FROM `teams` WHERE (`teams`.`name` = 'Owners') AND (`teams`.organization_id = 56) ORDER BY name ASC LIMIT 1 | |
User Load (0.3ms) SELECT `users`.* FROM `users` INNER JOIN `team_members` ON `users`.id = `team_members`.user_id WHERE ((`team_members`.team_id = 8)) | |
SQL (0.1ms) BEGIN | |
Profile Load (0.5ms) SELECT * FROM `profiles` WHERE (`profiles`.user_id = 56) LIMIT 1 | |
Profile Create |
This file contains 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
location / { | |
proxy_set_header X-Forwarded-For $http_x_forwarded_for; | |
proxy_set_header Host $server_name; | |
proxy_redirect off; | |
proxy_pass http://localhost:9090/clank; | |
} | |
location ~ ^/(assets/|api/|clank)(.*)$ { | |
proxy_set_header X-Forwarded-For $http_x_forwarded_for; | |
proxy_set_header Host $server_name; |
This file contains 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
sdhillon@sysadmin-002:~$ ldapsearch -H ldaps://ns-004.sjc1.yammer.com -x -b "dc=yammer,dc=com" "cn=github-bind" | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <dc=yammer,dc=com> with scope subtree | |
# filter: cn=github-bind | |
# requesting: ALL | |
# | |
# search result |
This file contains 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
/opt/workfeed/current/log/*.log | |
{ | |
rotate 3 | |
size 1G | |
copytruncate | |
notifempty | |
missingok | |
daily | |
postrotate | |
/bin/kill -USR1 `cat /opt/workfeed/shared/pids/unicorn.pid` |
This file contains 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
define drop_access ($groupname = $title, $except = "") { | |
$groupdir = "/etc/ygroups" | |
file { "${groupdir}/${groupname}": | |
ensure => file, | |
mode => "0640", | |
owner => "root", | |
content => $except, | |
require => File['/etc/ygroups']; | |
if defined( File['/etc/security/access.conf'] ) { |