This file contains 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/sh | |
mkdir -p playbook | |
cd playbook | |
touch production staging integration site.yml | |
mkdir -p group_vars host_vars library filter_plugins | |
mkdir -p roles/template/{tasks,handlers,templates,files,vars,defaults,meta} | |
touch roles/template/{tasks,handlers,templates,files,vars,defaults,meta}/main.yml |
This file contains 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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> /* for O_RDWR */ | |
#include <string.h> /* for memcpy */ | |
#include <linux/i2c-dev.h> /* for I2C_SLAVE */ | |
#include <time.h> | |
#include <inttypes.h> | |
#include <math.h> | |
/* define room id for mackrel*/ |
This file contains 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
@Grab('com.pi4j:pi4j-core:0.0.5') | |
@Grab('org.codehaus.groovy.modules.http-builder:http-builder:0.7.1') | |
import com.pi4j.io.gpio.GpioFactory | |
import com.pi4j.io.gpio.Pin | |
import com.pi4j.io.gpio.PinState | |
import com.pi4j.io.gpio.RaspiPin | |
import groovyx.net.http.HttpResponseException | |
import groovyx.net.http.RESTClient | |
import org.apache.http.HttpRequest |
This file contains 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
/* | |
* dht11.c: | |
* Simple test program to test the wiringPi functions | |
* DHT11 test | |
*/ | |
#include <wiringPi.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains 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 java.awt.* | |
import java.awt.image.* | |
import javax.imageio.* | |
long lastmod = System.currentTimeMillis() | |
(1..2000).each{ | |
def bi = new BufferedImage(2048, 1364, BufferedImage.TYPE_INT_RGB) | |
def g = bi.createGraphics() | |
g.setBackground(Color.black) |
This file contains 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
def proc = [ "ls", "-la"].execute() | |
proc.inputStream.eachLine{ | |
println it | |
} |