Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: disk-checker | |
labels: | |
app: disk-checker | |
spec: | |
selector: | |
matchLabels: | |
app: disk-checker |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Key was generated using: | |
tom% openssl genrsa -des3 -out example.com.key 2048 | |
Generating RSA private key, 2048 bit long modulus | |
....+++ | |
..........................................................................................................................+++ | |
e is 65537 (0x10001) | |
Enter pass phrase for example.com.key: | |
Verifying - Enter pass phrase for example.com.key: | |
%tom |
rpm -Uvh --force --nosignature --nodigest http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm | |
rpm -Uvh --force --nosignature --nodigest http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm | |
yum install -y curl ftp rsync sudo time wget which git-core | |
yum install -y gcc bzip2 make kernel-devel-`uname -r` | |
yum install -y gcc-c++ zlib-devel openssl-devel readline-devel | |
yum erase -y wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts | |
service vboxadd status 2>&1 >> /dev/null | |
if [ $? -eq 1 ]; then |
#! /bin/bash | |
# | |
# Put this script in ~/bin/google-chrome for example, then create | |
# a symlink to start using it, for example: | |
# | |
# shell% cd bin | |
# shell% ln -s google-chrome google-chrome-test | |
# shell% ./google-chrome-test | |
# Try to locate Google Chrome |
require 'active_resource' | |
ActiveResource::Base.class_eval do | |
private | |
alias original_find_or_create_resource_for find_or_create_resource_for | |
# names like "foo.bar" become "foo_bar" so constants lookup doesn't barf | |
def find_or_create_resource_for(name) | |
original_find_or_create_resource_for name.to_s.gsub('.', '_') |
# Pipe Ars Technica's live Apple event coverage into a Campfire room. | |
# http://arstechnica.com/apple/news/2010/01/tablet-live-event-liveblog.ars | |
# | |
# Usage: | |
# $ gem install -r hpricot tinder | |
# $ ruby -rubygems ars_live.rb -ssl mysubdomain myroomid myapikey | |
require "hpricot" | |
require "open-uri" | |
require "tinder" |
require File.dirname(__FILE__) + '/spec_helper' | |
describe "The library itself" do | |
Spec::Matchers.define :have_no_tab_characters do | |
match do |filename| | |
@failing_lines = [] | |
File.readlines(filename).each_with_index do |line,number| | |
@failing_lines << number + 1 if line =~ /\t/ | |
end | |
@failing_lines.empty? |
# tests at http://gist.github.com/3354 | |
class Hoptoad < ActiveResource::Base | |
self.site = "http://your_account.hoptoadapp.com" | |
class << self | |
@@auth_token = 'your_auth_token' | |
def find(*arguments) | |
arguments = append_auth_token_to_params(*arguments) |