Skip to content

Instantly share code, notes, and snippets.

$CPAN::Config = {
'auto_commit' => q[1],
'build_cache' => q[5],
'build_dir' => q[~/.cpan/build],
'cache_metadata' => q[1],
'commandnumber_in_prompt' => q[1],
'cpan_home' => q[~/.cpan],
'dontload_hash' => { },
'ftp' => q[ ],
'ftp_passive' => q[1],
sub sig_child_handler {
while ( ( $SIGCHLD_PID = waitpid( -1, WNOHANG ) ) > 0 ) {
E3::dbprint("caught $SIGCHLD_PID\n" ) if $E3::DEBUG;
if (exists $childPID{$SIGCHLD_PID}) {
delete $childPID{$SIGCHLD_PID};
if ($children_spawned > 0) {
E3::dbprint("decrement children_spawned counter\n" ) if $E3::DEBUG;
}
} else {
E3::dbprint("not our child\n" ) if $E3::DEBUG;
<VirtualHost *:80>
ServerName www.labdev.co.uk
ServerAdmin webmaster@labdev.co.uk
DocumentRoot /home/scott/labdev
ErrorLog /var/log/apache2/www.labdev.co.uk-error.log
CustomLog /var/log/apache2/www.labdev.co.uk-access.log common
<Directory /home/scott/labdev>
Order Allow,Deny
Allow from all
// Include the SoftwareSerial library so you can use its functions.
// We're using the software serial library as the Arduino only has one
// hardware serial port, and it's a shame to waste it on a 9600bps device.
#include <NewSoftSerial.h>
#include <Ethernet.h>
// Define the pins used for the software serial port. Note that we won't
// actually be transmitting anything over the transmit pin.
#define rxPin 3
We couldn’t find that file to show.
We couldn’t find that file to show.
ykpersonalize -2 -ouid=112233445566 -ofixed=cccccccccccc -o-static-ticket -o-strong-pw1 -o-strong-pw2
@cornet
cornet / delayed_job.rb
Created September 12, 2011 13:53 — forked from akmathur/delayed_job
Script to start/stop delayed_job
#!/usr/bin/env ruby
# -*- ruby -*-
require 'rubygems'
require 'daemon_spawn'
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
class DelayedJobWorker < DaemonSpawn::Base
def start(args)
ENV['RAILS_ENV'] ||= args.first || 'development'
Dir.chdir Rails.root
@cornet
cornet / SSLTest.java
Created September 15, 2011 15:42
Java SSL Test
/*
* Makes simple connection to SSL enabled site.
* Useful for debugging SSL Exceptions :)
*
* To Run:
* $ javac SSLTest.java
* $ java -Djavax.net.debug=all SSLTest
*
*/
import java.io.IOException;
Live
====
INSERT INTO `delayed_jobs` (`priority`, `attempts`, `handler`, `last_error`, `run_at`, `locked_at`, `failed_at`, `locked_by`, `created_at`, `updated_at`) VALUES (0, 0, '--- !ruby/struct:Delayed::PerformableMailer \n
object: !ruby/class NotifyMailer\n
method_name: :msc_change\n
args: \n
- !ruby/ActiveRecord:Device \n
attributes: \n
id: 31\n