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
.tg_head_split { | |
max-width: 2000px !important; | |
} | |
.im_page_wrap { | |
max-width: 2000px !important; | |
} | |
.im_dialogs_col_wrap { |
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
stream closed (EOFError) | |
Backtrace: | |
IO(TCPSocket)#read_nonblock at core/io.rb:2851 | |
Net::BufferedIO#rbuf_fill at /home/someone/.rvm/rubies/rbx-3.60/gems/gems | |
/rubysl-net-protocol-2.0.1/lib/rubysl/net/protocol | |
/protocol.rb:153 | |
Net::BufferedIO#read at /home/someone/.rvm/rubies/rbx-3.60/gems/gems | |
/rubysl-net-protocol-2.0.1/lib/rubysl/net/protocol |
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
module ForceLoader | |
def self.load_directory(path, namespace = nil) | |
return if !Rails.env.development? | |
base_path = Rails.root.join(*path.split(/[\/\\]/)) | |
Dir[base_path.join("**", "*.rb")].each do |file| | |
model_name = Pathname.new(file.to_s).basename.to_s.chomp('.rb').camelcase | |
if namespace | |
model_name = namespace.to_s + "::" + model_name | |
end | |
begin |
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
#! /bin/bash | |
curl $1 -o blah.tar.gz | |
tar_output=`tar xvf blah.tar.gz` | |
dir_name=`echo $tar_output | awk -e '{print $1}'` | |
file_name=`ls $dir_name` | |
echo "downloaded and extracted [$file_name]" | |
mv ./$dir_name* ./ -i | |
rm -f ./$dir_name* | |
rmdir $dir_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
PID_FILENAME = 'tmp/pids/puma.pid' | |
ARG_FILENAME = 'tmp/pids/puma.args' | |
BASE_ARGS = ["--pidfile=#{PID_FILENAME}"] | |
ALLOWED_ARGS = ['daemonize', 'port', 'environment'] | |
def parse_args | |
if File.exists? ARG_FILENAME | |
f = File.open(ARG_FILENAME) | |
args = YAML.load(f.read) |