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
curl -kX POST `ifconfig | grep -Po \([0-9a-fA-F]{2}:\){5}[0-9a-fA-F]{2} | perl -pe 's/^/-d mac\[\]=/'` 172.16.0.42:4444/robots/razor/complete |
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
require 'rake' | |
require 'net/ssh' | |
require 'net/scp' | |
require "net/http" | |
require "json" | |
USER = PASSWORD = 'vagrant' | |
HOSTS = { | |
'gold' => '172.16.0.2', | |
} |
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/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/basesystem-10.0-4.el6.noarch.rpm | |
Sending: /opt/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/basesystem-10.0-4.el6.noarch.rpm, Mimetype: application/octet-stream, Size:4784 | |
Start offset: undefined, End offset: undefined | |
/opt/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/dhcp-common-4.1.1-25.P1.el6.x86_64.rpm | |
Sending: /opt/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/dhcp-common-4.1.1-25.P1.el6.x86_64.rpm, Mimetype: application/octet-stream, Size:142064 | |
Start offset: undefined, End offset: undefined | |
/opt/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/ca-certificates-2010.63-3.el6_1.5.noarch.rpm | |
Sending: /opt/razor/image/os/7heF69c3hApMqxgzOWEmxd/Packages/ca-certificates-2010.63-3.el6_1.5.noarch.rpm, Mimetype: application/octet-stream, Size:543988 | |
Start offset: undefined, End offset: undefined |
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
//Nicole Buck | |
//Prog 109 Project 3 | |
var bet = 0; | |
var credits = 100; | |
var count = 0; | |
var slotImages = new Array("lemon.png", "plum.png", "bell.png", "diamond.png", "clover.jpg"); |
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
public void SavingFile() | |
{ | |
StreamWriter writer = new StreamWriter("books.txt"); | |
foreach (Book book in books) | |
{ | |
writer.WriteLine(book.ToString()); | |
} | |
} |
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
public class Package { | |
private double Height, Length, Width, weight; | |
private bool air = false; | |
public double Height | |
{ | |
get { return Height; } | |
set { Height = value; } | |
} | |
public double Length |
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
// Require Package | |
public class Assignment1 { | |
public static void main(String[] argv){ | |
// get package count | |
// packages = array of packages | |
// cost = 0; | |
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
This test works on Ruby 1.8.7, but blows up on ruby 1.9.2p318 | |
< Some Test Fails > | |
wrong number of arguments (2 for 0) | |
< Path Snip >/gems/activesupport-2.3.14/lib/active_support/ordered_hash.rb:16:in `block in to_yaml' | |
<The offending line> | |
out.seq(taguri, to_yaml_style) do |seq| | |
fails because it is called from |
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
/* gcc test.c -liptc -o a.out */ | |
/* libiptc must be root to run since it maps kernel stuff, otherwise it segfaults */ | |
#include <libiptc/libiptc.h> /* ip_t* */ | |
int main(int argc, char** argv){ | |
struct iptc_handle *handle = NULL; | |
handle = iptc_init("filter"); | |
iptc_free(handle); | |
return 0; | |
} |
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
/*This program was created by Hadossa Oudean.*/ | |
import java.io.*; | |
import javax.swing.*; | |
public class Week05 { | |
static File select; | |
static String path; | |
static boolean okay; | |
static boolean foundIt; |