This file contains hidden or 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
| 45a46 | |
| > | |
| 49a51,54 | |
| > if (result !== undefined && result.isCallback === true){ | |
| > result = result.apply(next, arguments); | |
| > } | |
| > | |
| 106c115 | |
| < return function () { | |
| --- |
This file contains hidden or 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
| var sys = require('sys'), | |
| spawn = require('child_process').spawn, | |
| ls = spawn('ls', ['-lh', '/usr']); | |
| ls.stdout.addListener('data', function (data) { | |
| sys.print('stdout: ' + data); | |
| }); | |
| ls.stderr.addListener('data', function (data) { | |
| sys.print('stderr: ' + data); |
This file contains hidden or 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
| [INFO] Launching Android emulator...one moment | |
| [DEBUG] From: /home/hitman/workspace/android-sdk-linux_86/tools/emulator | |
| [DEBUG] SDCard: /home/hitman/.titanium/android2.sdcard | |
| [DEBUG] AVD ID: 1 | |
| [DEBUG] AVD Skin: QVGA-P | |
| [DEBUG] SDK: /home/hitman/workspace/android-sdk-linux_86 | |
| [INFO] Creating shared 64M SD card for use in Android emulator(s) | |
| [DEBUG] /home/hitman/workspace/android-sdk-linux_86/tools/mksdcard 64M /home/hitman/.titanium/android2.sdcard | |
| [DEBUG] /home/hitman/workspace/android-sdk-linux_86/tools/emulator -avd titanium_1_QVGA-P -port 5560 -sdcard /home/hitman/.titanium/android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128 | |
| [TRACE] emulator: emulator window was out of view and was recentred |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>storage test w/ jstorage</title> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
| <script src="http://github.com/andris9/jStorage/raw/master/jstorage.js"></script> | |
| </head> | |
| <body style="font: 75% Lucida Grande, Trebuchet MS"> | |
| <div id="content"></div> |
This file contains hidden or 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
| //usage: $ node wav2mp3.js file1.wav file2.wav | |
| // converts to .mp3 format and deletes original .wav file | |
| // thanks to creationix for his assistance | |
| var fs = require('fs'); | |
| var sys = require('sys'); | |
| var Step = require('step'); | |
| var spawn = require('child_process').spawn; | |
| var exec = require('child_process').exec; | |
| var counter = 0; |
This file contains hidden or 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
| from http://docs.puppetlabs.com/learning/ral.html | |
| user { 'dave': | |
| ensure => present, | |
| uid => '507', | |
| gid => 'admin', | |
| shell => '/bin/zsh', | |
| home => '/home/dave', | |
| managehome => true, | |
| } |
This file contains hidden or 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
| user "root" do | |
| username "root" | |
| password "$1$PdV3HPti$WXmqrQEVj88fVTHevErxq." | |
| shell "/bin/bash" | |
| system true | |
| supports :manage_home => true | |
| end |
This file contains hidden or 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
| data_bag('users').each do |user_name| | |
| u = data_bag_item('users', user_name) | |
| user user_name do | |
| username user_name | |
| password u['password'] | |
| shell u['shell'] | |
| supports :manage_home => u['manage_home'] | |
| end | |
| end |
This file contains hidden or 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
| package 'sendmail' do | |
| action :install | |
| end | |
| service 'sendmail' do | |
| action [ :enable,:start ] | |
| end | |
| template "/etc/mail/sendmail.cf" do | |
| source "sendmail.cf.erb" |
This file contains hidden or 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
| # /etc/sudoers | |
| # | |
| # Generated by Chef for <%= node[:fqdn] %> | |
| Defaults !lecture,tty_tickets,!fqdn | |
| # User privilege specification | |
| root ALL=(ALL) ALL | |
| <% @sudoers_users.each do |user| -%> |