Skip to content

Instantly share code, notes, and snippets.

View conf's full-sized avatar

Aleksey Shein conf

View GitHub Profile
@conf
conf / dump2pdf.sh
Last active December 26, 2019 11:41 — forked from nicolas-raoul/dump2pdf.sh
#!/bin/sh
# Usage example: ./dump2pdf thread-dump.txt # will create thread-dump.pdf
ruby tdg.rb $1 > /tmp/graph.dot
dot -Tpdf /tmp/graph.dot -o ${1%.*}.pdf
@conf
conf / Jenkinsfile
Last active July 14, 2017 07:55
Declarative Pipeline Test
@Library('globalLibrary') _
pipeline {
agent any
options {
ansiColor('xterm')
timestamps()
timeout(time: 1, unit: 'HOURS')
}
environment {
@conf
conf / gtktest.rb
Created December 1, 2014 07:47
OSX Yosemite GTK test
#!/usr/bin/env ruby
require 'gtk2'
Gtk.init
w = Gtk::Window.new('Title')
w.show_all
Gtk.main
@conf
conf / monkey_patches.rb
Created October 31, 2014 12:32
Monkey patch ActiveSupport::TimeZone to fix TZInfo::AmbiguousTime errors
# put this file in config/initializers/monkey_patches.rb
require 'monkey_patches/active_support/time_zone'
<div class="reviews"data-chars="190" data-more="больше" data-less="скрыть">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Vestibulum laoreet, nunc eget laoreet sagittis,
quam ligula sodales orci, congue imperdiet eros tortor ac lectus.
Duis eget nisl orci. Aliquam mattis purus non mauris
blandit id luctus felis convallis.
Integer varius egestas vestibulum.
Nullam a dolor arcu, ac tempor elit. Donec.
</div>
@conf
conf / README.markdown
Created March 22, 2012 22:22
PHP workflow with multiple checked out branches

Clone repository

cd 
git clone [email protected]:php-src.git

or if you're behind firewall

@conf
conf / xvfb_daemon.sh
Created March 2, 2012 18:13 — forked from tommeier/xvfb_daemon.sh
Xvfb startup init script for headless selenium started via Jenkins
#!/bin/bash
# /etc/init.d/xvfb_daemon
# Xvfb startup script.
# Tom Meier <[email protected]>
#
### BEGIN INIT INFO
# Provides: xvfb
# Short-Description: Start/stop/restart daemon
# Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server
# Example Use: