This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| file_to_disk = './tmp/large_disk.vdi' | |
| Vagrant::Config.run do |config| | |
| config.vm.box = 'base' | |
| config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024] | |
| config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk] | |
| end |
| site :opscode | |
| metadata | |
| cookbook 'redis', | |
| git: 'git://github.com/miah/chef-redis.git' | |
| cookbook 'monitor', | |
| git: 'git://github.com/portertech/chef-monitor.git' |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use 5.010000; | |
| use JSON; | |
| use LWP::UserAgent; | |
| use URI; |
| /etc/init.d/<servicename>: | |
| # chkconfig: 345 20 80 | |
| # description: my service | |
| 345 - 3,4,5 runlevels | |
| 20 - start priority | |
| 80- stop prioroty |
| def create_build_info(self, build_name, build_number, dependencies, build_dependencies): | |
| """ | |
| Returns a build info dictionary which is formated to correctly deploy | |
| a new build to artifactory. | |
| Make a put request with this build info to api/build | |
| """ | |
| build_info = {'version': '1.0.1', | |
| 'name': build_name, | |
| 'number': str(build_number), | |
| 'type': 'GENERIC', |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap Masonry Template</title> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700"> |
| //List<Item> items = GetQboItemsWithDateTimeFiler(commonService, 1, 100, new DateTime(2013, 6, 30, 11, 0, 0)); | |
| public List<Intuit.Ipp.Data.Qbo.Item> GetQboItemsWithDateTimeFiler(DataServices dataServices, int startPage, int resultsPerPage, DateTime filterCreateTimeAfter) | |
| { | |
| var filter = "CreateTime :AFTER: " + filterCreateTimeAfter.ToString("yyyy-MM-dd\"T\"HH:mm:sszzz"); | |
| var httpWebRequest = WebRequest.Create(dataServices.ServiceContext.BaseUrl + "items/v2/" + dataServices.ServiceContext.RealmId) as HttpWebRequest; | |
| if (httpWebRequest != null) | |
| { |
I recently had the following problem:
We didn't want to open the MySQL port to the network, but it's possible to SSH from the Jenkins machine to the MySQL machine. So, basically you would do something like
ssh -L 3306:localhost:3306 remotehost
| angular.module("MyApp", ["SocketProvider"]) | |
| .controller("MyController", ["$scope", "socket", function($scope, socket) { | |
| // Fetch initial data | |
| $scope.person = null; | |
| socket.get("/person/1").success(function(data) { | |
| $scope.person = data; | |
| }).error(function() { |