Skip to content

Instantly share code, notes, and snippets.

let(:runner) do
memoized_runner('pd-gocd::agent') do |node|
#.....
end
end
@Randommood
Randommood / fmtcomment
Last active August 29, 2015 14:18 — forked from jeddenlea/fmtcomment
#!/usr/bin/env python
"""
Select some text and then "!fmtcomment". It understands "//" and
"#" comments, works with indenting in spaces and tabs. It assumes
you want to squeeze your text within 80-chars, and treats tabs as
4 spaces thusly.
E.g., will turn
// Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
@Randommood
Randommood / mount_gcp_disk.md
Last active August 28, 2015 00:15 — forked from yannvery/mount_gcp_disk.md
Mount GCP Disk

How to mount a disk on gcp compute instance

List all disks

df -k

Create directory where disk will be mount

sudo mkdir -p /data

Find hard drive to mount

You'll find it in this directory, this kind of disk is oftently call sdb

@Randommood
Randommood / opencv_v3.0.0_install_c++_project_.travis.yml
Created January 14, 2016 00:30 — forked from cgddrd/opencv_v3.0.0_install_c++_project_.travis.yml
Travis CI configuration file to install OpenCV v3.0.0 (beta) for use with C++ projects. Modified for v3.0.0 from original scripts available at: https://github.com/jayrambhia/Install-OpenCV.
language:
- cpp
compiler:
- gcc
before_install:
- sudo apt-get update
install: