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
$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], |
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
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; |
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
<VirtualHost *:80> | |
ServerName www.labdev.co.uk | |
ServerAdmin [email protected] | |
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 |
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
// 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 |
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
ykpersonalize -2 -ouid=112233445566 -ofixed=cccccccccccc -o-static-ticket -o-strong-pw1 -o-strong-pw2 |
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
#!/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 |
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
/* | |
* 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; |
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
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 |
OlderNewer