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
05b794c 2015-08-13 12:09:32 -0400 Chris Earnhardt and Mitch Saltykov | WIP - Chris stuff! | |
diff --git a/app/models/assessment.rb b/app/models/assessment.rb | |
index 00932ca..cfa66e6 100644 | |
--- a/app/models/assessment.rb | |
+++ b/app/models/assessment.rb | |
@@ -744,13 +744,18 @@ class Assessment < ActiveRecord::Base | |
end | |
def has_been_appended? | |
- reopened_at? |
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
// Given this HTML: | |
// <div data-presents='foobar'></div> | |
// Old style | |
// Usually written by passing org.casebook.views | |
// to an anonymous function as `ns`. | |
org.casebook.views('foobar', { | |
initialize: function() { | |
var el = this | |
}, |
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
Pivotal Tracker: in a story's History view, replace the timestamps (e.g., "3 hours ago", "Jan. 1") with full-precision ones (e.g., "1 Jan 2014, 12:34pm"). | |
$("span[data-millis]").each(function(index) { $(this).html($(this).parent('span').attr('title'));}) |
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
deploy@dr-logging-1|dr /var/log $ traceroute 10.42.36.155 | |
traceroute to 10.42.36.155 (10.42.36.155), 30 hops max, 60 byte packets | |
1 * * * | |
2 * * * | |
3 * * * | |
4 * * * | |
5 * * * | |
6 * * * | |
7 * * * | |
8 * * * |
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
[root@splunk ~]# lsof -i -P | grep 5043 | |
[root@splunk ~]# | |
[root@splunk ~]# cat /opt/logstash/server/etc/conf.d/logstash.conf | |
input { | |
lumberjack { | |
port => 5043 | |
ssl_certificate => "/etc/ssl/logstash.pub" | |
ssl_key => "/etc/ssl/logstash.key" |
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
metropolitan:casebook2 (master) $ script/show-branch-info | |
Pruning origin | |
URL: [email protected]:casebook/casebook2.git | |
* [pruned] origin/old_branch_1 | |
* [pruned] origin/old_branch_2 | |
2012-09-14 11:09:29 -0400 12 minutes ago John Doe origin/master | |
2012-09-14 11:09:29 -0400 12 minutes ago John Doe origin/HEAD | |
2012-09-14 09:48:47 -0400 2 hours ago Jane Doe origin/topic_branch_1 | |
2012-09-14 09:48:14 -0400 2 hours ago Jimmy Doe origin/production_branch |
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
$('a.backtrace').map(function(){ | |
var t = $(this).text(); | |
if (/^Interrupted system call/.test(t)){ | |
return parseInt(t.split(' ')[6].split('/')[9]); | |
} | |
}) |
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
for d in $(find . -type d -print0 | xargs -0); do printf '%d\t%s\n' $(find "$d" -type f | wc -l) "$d"; done |
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 | |
echo -e "kern.sysv.shmmax=6442450944\nkern.sysv.shmmin=1\nkern.sysv.shmmni=256\nkern.sysv.shmseg=64\nkern.sysv.shmall=393216" > /etc/sysctl.conf | |
reboot | |
exit | |
sysctl -w kern.sysv.shmmax=6442450944 | |
sysctl -w kern.sysv.shmmin=1 | |
sysctl -w kern.sysv.shmseg=64 | |
sysctl -w kern.sysv.shmall=393216 |
NewerOlder