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
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'fileutils' | |
| require 'date' | |
| require 'uri' | |
| # usage: ruby import.rb my-blog.xml | |
| # my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
| data = File.read ARGV[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
| apply plugin:'groovy' | |
| apply plugin:'idea' | |
| repositories { mavenCentral() } | |
| dependencies { | |
| groovy 'org.codehaus.groovy:groovy-all:1.8.4' | |
| } | |
| task makeDirs(description:'make all dirs for project setup') << { |
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
| 0. SSH to server | |
| 1. Edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml | |
| 2. set userSecurity to false: <userSecurity>false</userSecurity> | |
| 3. delete | |
| <authorizationStrategy> and <securityRealm> | |
| 4. /etc/init.d/bitnami restart |
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
| // A simple Groovy script running a BPMN 2.0 process with the Activiti engine (http://www.activiti.org/). | |
| // One of the tasks contains a Groovy script! | |
| // Resources: | |
| // Activiti, http://www.activiti.org/ | |
| // http://www.jorambarrez.be/blog/2010/08/09/hello_world_on_mysql/ | |
| // http://www.javabeat.net/articles/print.php?article_id=362 | |
| // H2, http://www.h2database.com/ | |
| @GrabResolver(name='activiti.repo', root='http://maven.alfresco.com/nexus/content/repositories/activiti/') |
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
| alias grep='grep --color=always -C 10 -ni' |
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 org.halyph.barcode; | |
| import java.awt.Color; | |
| import java.awt.Graphics2D; | |
| import java.awt.geom.AffineTransform; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; |
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
| public static float TotalRowHeights( | |
| Document document, PdfContentByte content, | |
| PdfPTable table, params int[] wantedRows) | |
| { | |
| float height = 0f; | |
| ColumnText ct = new ColumnText(content); | |
| // respect current Document.PageSize | |
| ct.SetSimpleColumn( | |
| document.Left, document.Bottom, | |
| document.Right, document.Top |
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 class is part of the book "iText in Action - 2nd Edition" | |
| * written by Bruno Lowagie (ISBN: 9781935182610) | |
| * For more info, go to: http://itextpdf.com/examples/ | |
| * This example only works with the AGPL version of iText. | |
| */ | |
| package part1.chapter03; | |
| import java.io.FileOutputStream; |
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
| import hudson.model.* | |
| import com.tikal.jenkins.plugins.multijob.*; | |
| void log(msg) { | |
| manager.listener.logger.println(msg) | |
| } | |
| threshold = Result.SUCCESS | |
| void aggregate_results() { |
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
| Started by user anonymous | |
| Building in workspace C:\Users\oivasiv\.jenkins\jobs\Main_Job\workspace | |
| Starting build job Job_Set_1. | |
| Finished Build : #8 of Job : Job_Set_1 with status :SUCCESS | |
| Starting build job Job_Set_2. | |
| Finished Build : #8 of Job : Job_Set_2 with status :SUCCESS | |
| --------------------------------------------------------------------------------------------------------------- | |
| Aggregated status report | |
| --------------------------------------------------------------------------------------------------------------- | |
| Main_Job #8 - SUCCESS |