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
| module Forecast | |
| # The farm is collected into this object. | |
| class Farm | |
| def initialize(name) | |
| @name = name | |
| @roles = [] | |
| end | |
| def add_role(role) |
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
| # 1. Make an empty extension | |
| # 2. ext_tables.php | |
| <?php | |
| require_once t3lib_extMgm::extPath('dblist_hook') . '/class.user_tx_belisthook.php'; | |
| $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/class.db_list_extra.inc']['getTable'][] = 'user_tx_belisthook'; | |
| ?> |
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
| a28d5c34f6628eeba492d1e2eca71336233f07c7 |
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
| sudo apt-get install -y puppet | |
| git clone https://github.com/3ev/bobbypuppet /var/local # << where?? | |
| sudo puppet apply --... /var/local/bobbypuppet/manifests/init.pp | |
| # now just checkout projects |
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
| #!/bin/sh | |
| # vim: ts=8 | |
| ######################################################################### | |
| # # | |
| # MySQL performance tuning primer script # | |
| # Writen by: Matthew Montgomery # | |
| # Report bugs to: https://bugs.launchpad.net/mysql-tuning-primer # | |
| # Inspired by: MySQLARd (http://gert.sos.be/demo/mysqlar/) # | |
| # Version: 1.6-r1 Released: 2011-08-06 # |
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
| def run_spec(file) | |
| unless File.exist?(file) | |
| puts "#{file} does not exist" | |
| return | |
| end | |
| puts "Running #{file}" | |
| system "bundle exec rspec #{file}" | |
| puts | |
| 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
| /* | |
| This is just for reference. | |
| To use me: | |
| npm install bleno | |
| node peripheral.js | |
| */ | |
| var bleno = require('bleno'); | |
| var now = Date.now(); |
This file has been truncated, but you can view the full file.
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
| The Project Gutenberg EBook of The Complete Works of William Shakespeare, by | |
| William Shakespeare | |
| This eBook is for the use of anyone anywhere at no cost and with | |
| almost no restrictions whatsoever. You may copy it, give it away or | |
| re-use it under the terms of the Project Gutenberg License included | |
| with this eBook or online at www.gutenberg.org | |
| ** This is a COPYRIGHTED Project Gutenberg eBook, Details Below ** | |
| ** Please follow the copyright guidelines in this file. ** |
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
| asdfasdf |
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
| #!/usr/bin/ruby | |
| require 'rss' | |
| require 'open-uri' | |
| puts "Let me read you a story..." | |
| strings = [] | |
| url = 'http://feeds.bbci.co.uk/news/world/rss.xml' | |
| open(url) do |rss| | |
| feed = RSS::Parser.parse(rss) | |
| feed.items.each do |item| | |
| strings.push "#{item.title}" |
OlderNewer