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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/2005/Atom" xmlns:atom="http://www.w3.org/2005/Atom"> | |
| <xs:element name="feed"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element ref="atom:title"/> | |
| <xs:element ref="atom:link"/> | |
| <xs:element ref="atom:updated"/> | |
| <xs:element ref="atom:id"/> | |
| <xs:element ref="atom:author"/> |
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/bash | |
| # Requirements | |
| # trang found here http://code.google.com/p/jing-trang/ | |
| # xjc found in in jdk 6 and above. | |
| SOURCE_XML=src/test/resources/se/tv4/vman/api | |
| TARGET_XSD=src/main/java/se/tv4/vman/api | |
| for i in `echo asset category productGroups`; do | |
| echo "generating java for $TARGET_XSD/$i" |
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/env ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| doc = Nokogiri::HTML(open(ARGV[0])) | |
| doc.xpath('//img').each do |img| | |
| puts img if img["alt"].nil? | |
| 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
| #!/usr/bin/env ruby | |
| git_dir=ARGV[0].nil? ? "." : ARGV[0] | |
| since=ARGV[1].nil? ? 7: ARGV[1] | |
| git_log = "" | |
| Dir.chdir(git_dir) do | |
| git_log = %x{git log --since="#{since} days ago" --format=%an | sort | uniq -c} | |
| end | |
| git_data = git_log.split("\n") | |
| total_authors = git_data.size | |
| total_commits = 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
| Veewee::Session.declare({ | |
| :cpu_count => '1', :memory_size=> '2048', | |
| :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', | |
| :os_type_id => 'RedHat_64', | |
| :iso_file => "CentOS-6.0-x86_64-minimal.iso", :iso_src => "http://vault.centos.org/6.0/isos/x86_64/CentOS-6.0-x86_64-minimal.iso", :iso_md5 => "b9fff4dad7aad0edaa564d7a251cb971", :iso_download_timeout => 1000, | |
| :iso_download_instructions => "We can not download the ISO , you need to download it yourself and put it in the iso directory\n"+ | |
| "- URL: http://isoredirect.centos.org/centos/6/isos/x86_64/ ", | |
| :boot_wait => "10", :boot_cmd_sequence => [ | |
| '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>' | |
| ], |
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
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>daniel nyström [danielnystrom.se]</title> | |
| <meta name="author" content="Daniel Nyström" /> | |
| <link rel="stylesheet" type="text/css" href="/css/style.css"> | |
| <link rel="alternate" href="/atom.xml" type="application/atom+xml"/> | |
| </head> |
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
| ant http://wiki.jenkins-ci.org/display/JENKINS/Ant+Plugin | |
| javadoc http://wiki.jenkins-ci.org/display/JENKINS/Javadoc+Plugin | |
| Hudson Xvnc plugin http://wiki.hudson-ci.org/display/HUDSON/Xvnc+Plugin | |
| Maven Integration plugin http://wiki.jenkins-ci.org/display/JENKINS/Maven+2+Project+Plugin | |
| Jenkins Rake plugin http://wiki.jenkins-ci.org/display/JENKINS/Rake+Plugin | |
| Jenkins ruby metrics plugin http://wiki.jenkins-ci.org/display/JENKINS/Ruby+Metrics+Plugin | |
| CVS Plugin http://wiki.jenkins-ci.org/display/JENKINS/CVS+Plugin | |
| Hudson Ruby Plugin http://wiki.hudson-ci.org/display/HUDSON/Ruby+Plugin | |
| Radiator View Plugin http://wiki.jenkins-ci.org/display/JENKINS/Radiator+View+Plugin | |
| Jenkins Subversion Plug-in http://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin |
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
| exec {'set-vncpasswd': | |
| command => "mkdir $jenkins_home/.vnc && /bin/echo -e \"vncpasswd\\nvncpasswd\" > /tmp/pass && vncpasswd $jenkins_home/.vnc/passwd < /tmp/pass && rm /tmp/pass", | |
| creates => "$jenkins_home/.vnc/passwd", | |
| logoutput => true, | |
| path => ["/bin", "/usr/bin"], | |
| require => File[$jenkins_home], | |
| user => $jenkins_username, | |
| } |
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
| git checkout "`git rev-list master -n 1 --first-parent --before=2008-03-02`" |
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 | |
| file_map = {} | |
| Dir["**/*.{rb,java,erb,js,html,css,jsp,xml}"].each do |path| | |
| ext = File.extname(path) | |
| if file_map.has_key? ext | |
| current_count = file_map[ext] | |
| count = current_count + File.open(path).readlines.size | |
| file_map[ext] = count | |
| else | |
| file_map[ext] = File.open(path).readlines.size |