this:
FROM localhost:5000/ubuntu/base-12.04:latest
MAINTAINER The CTI Solutions Inc. Team
ADD delete_me_code/ /var/www/current/
RUN mkdir /var/www/current/log
RUN mkdir /var/www/current/tmp
RUN mkdir /var/www/current/var
this:
FROM localhost:5000/ubuntu/base-12.04:latest
MAINTAINER The CTI Solutions Inc. Team
ADD delete_me_code/ /var/www/current/
RUN mkdir /var/www/current/log
RUN mkdir /var/www/current/tmp
RUN mkdir /var/www/current/var
package main | |
import ( | |
"code.google.com/p/go.crypto/ssh" | |
//"net/http" | |
"io/ioutil" | |
"net" | |
) | |
func main() { |
#!/bin/sh | |
dd if=/dev/zero of=$HOME/zero.small.file iflag=nocache oflag=direct bs=1024 count=102400 | |
dd if=/dev/zero of=$HOME/zero.file iflag=nocache oflag=direct bs=4096 | |
rm $HOME/zero.small.file | |
rm $HOME/zero.file |
#!/bin/bash | |
sudo apt-get update && sudo apt-get install -y htop tmux vim man nmap curl git-core sysstat bwm-ng iotop ipcalc sl mtr dnsutils |
#!/bin/bash | |
if test -f $HOME/.profile | |
then | |
PROFILE_FILE="$HOME/.profile" | |
elif test -f $HOME/.bash_profile | |
then | |
PROFILE_FILE="$HOME/.bash_profile" | |
else | |
echo "Creating a new .bash_profile file." |
#!/usr/bin/env ruby | |
file_string = File.read('mail.redact.small') | |
line_array = Array.new | |
file_string.each_line { |line| line_array << line } | |
uid_array = Array.new | |
line_array.each do |line| |
# The version of Ruby to be installed | |
ruby_ver="1.9.3-p429" | |
# The base path to the Ruby | |
ruby_home="/usr/local" | |
# Enable truly non interactive apt-get installs | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update |
a = { :a => nil }
running this code first causes the below to return in reverse order.
b = { :a => nil }
running this code first causes the below to return in correct order.
{ :y => true, :s => true }.collect { |k, v| k }
is the code that returns the array. It is run the same way every iteration.
For this bug to manifest, irb must be restarted between tests. Once an irb session has returned the array in a particular direction, it will continue to return it in that direction no matter what is done until you exit and restart irb. (Thus, this bash script to automate starting and using irb.) This bug does not happen in ruby 1.9.3, meaning no matter what you do, you will always get the array returned in the same direction. The results are repeatably reliable.
The test_ruby_bug.txt file is the output of this script.
class DeKernel | |
def self.run | |
system "clear" | |
puts "It's generally recommended to leave at least three of your latest kernels" | |
all_kernels = Kernels.find_all_kernels | |
installed_kernels = Kernels.find_installed_kernels(all_kernels) | |
kernels_to_remove = Kernels.ask_which_to_remove(installed_kernels) | |
Kernels.purge_packages_from_kernels_list(kernels_to_remove) | |
Kernels.print_other_kernels_message | |
end |