Skip to content

Instantly share code, notes, and snippets.

rvm use ruby-1.9.2@redis-pubsub-demo --create
THIS IS URGENT. Our domains are non-responsive to end-users.
After adjusting the DNS for the three domains listed above (bhrsc.com, bhrsc.info, bhrsc.org) I can't seem to get anything to work for these domains. I've created a new DNS account with Namecheap.com and would really love to have them manage DNS.
I've tried clicking the "Modify" link under the "Use Other Nameservers" section inside the "Web Settings" tab for all three domains. Even when I fill out the proper name server domains (the IPs fill out properly, etc...) there is no indication that anything has changed. I've tried this UI as well as another one.
The bulk edit feature I also tried. I clicked "View my account" next to the main navigation. I checked the proper websites (I tried one, I tried all three, etc...) and I clicked the "Edit DNS" button. I then properly selected the radio buttons, filled in the NameServer column and IP address column and yet ... nothing happens when I click "Submit".
Output looks like this:
{
"phases": [
{
"type": "reduce",
"assets": ["/wanelo/stor/s3tomanta-logfiles"],
"exec": "head -n 10 $MANTA_INPUT_FILE | mpipe"
},
{
"type": "map",
"exec": "echo 'input object:' $(cat $MANTA_INPUT_FILE)"
@hjhart
hjhart / reset_slack
Created August 1, 2014 00:31
Log out user from Slack.app and reopen Slack.app
#!/bin/bash
shut_down_slack() {
RELAUNCH_SLACK=0
local process_pattern='[S]lack.app'
local process_identifier='Slack'
ps -e | grep "$process_pattern" > /dev/null
if [ $? -eq 0 ]; then
@hjhart
hjhart / webkit_server
Last active August 29, 2015 14:06
Compiling webkit_server on SmartOS
Error 1:
changed WindowMaximize.cpp
Also changed something to include QApplication because QApplication does not exist by default.
error: incomplete type ‘QApplication’ used in nested name specifier
#include <QApplication>
Error 2:
Changed the WebPage.h page to add
@hjhart
hjhart / Gemfile
Last active March 15, 2023 15:04
Trial Fluentd configuration for parsing HAProxy logs from Syslog
source 'https://rubygems.org'
gem 'fluentd'
gem 'fluent-plugin-td'
gem 'fluent-plugin-elasticsearch'
recipients = ['james', 'stephanie', 'lauren', 'james k', 'brittany', 'lyrica', 'dad', 'mom']
senders = recipients.dup
results = recipients.map do |recipient|
sender = senders.sample
while(sender == recipient)
sender = senders.sample
end
senders.delete(sender)
[recipient, sender]
@hjhart
hjhart / query.sql
Last active March 18, 2019 09:51
Identifying Expensive PostgreSQL queries
select substr(query, 0, 250), calls,
to_char(total_time/(60*60), '999,999,9999,999') as "Cumulative Time (hrs)", rows,
to_char(total_time/calls, '999.999') as per_call_ms
from pg_stat_statements
order by total_time desc
limit 12;
@hjhart
hjhart / omnibus.sh
Last active January 13, 2017 00:13 — forked from sax/omnifuss.sh
Create omnibus chef on SmartOS
# On image: 08589eda-d64e-11e6-89a3-0b55371be927 # base-64-lts 16.4.0
pkgin -y install ruby-2.3.3 gmake build-essential ;
pushd /root
gem install bundler --no-ri --no-rdoc
gem install omnibus --no-ri --no-rdoc
# Until this PR is merged: https://github.com/chef/dep-selector-libgecode/pull/41
# Change any of these versions
gem 'private_repo', git: '[email protected]:hjhart/private_repo.git', branch: :master
gem 'private_repo', github: 'hjhart/private_repo'
# Into this version
gem 'private_repo', git: "https://github.com/hjhart/private_repo"