Skip to content

Instantly share code, notes, and snippets.

View chamerling's full-sized avatar
🤟

Christophe Hamerling chamerling

🤟
View GitHub Profile
@chamerling
chamerling / apache2_vhost_config_vuejs_dist
Last active May 13, 2020 07:49 — forked from 7rin0/apache2_vhost_config_vuejs_dist
VueJS: Apache / Nginx vhost config examples
<VirtualHost *:80>
DocumentRoot "/etc/openpaas/isiboard"
ServerName isiboard.local
<Directory /etc/openpaas/isiboard/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
Order allow,deny
allow from all
#!/usr/bin/env node
var fs = require('fs');
function getTemperature (device) {
fs.readFile('/sys/bus/w1/devices/' + device + '/w1_slave', 'utf8', function (err, data) {
var output = data.match(/t=(\d+)/);
var calc = output[1] / 1000;
{
"http://groups.event-processing.org/id/MyGroupA#group" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "MyGroupA group" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "The Play MyGroupA group" } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://rdfs.org/sioc/ns#Usergroup" } ]
},
"http://groups.event-processing.org/id/MyGroupB#group" :
{
{
"http://groups.event-processing.org/id/MyGroupA#group" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "MyGroupA group" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "The Play MyGroupA group" } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://rdfs.org/sioc/ns#Usergroup" } ]
},
"http://groups.event-processing.org/id/MyGroupB#group" :
{
@chamerling
chamerling / group.json
Last active December 14, 2015 13:08 — forked from stuehmer/group.json
{
"http://groups.event-processing.org/id/MyGroupName#group" :
{
"http://purl.org/dc/elements/1.1/title": [ { "type" : "literal", "value" : "My Group title" } ],
"http://purl.org/dc/elements/1.1/description": [ { "type" : "literal", "value" : "A group." } ],
"http://www.w3.org/2002/06/xhtml2/icon": [ { "type" : "uri", "value" : "http://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico" } ],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#type": [ { "type" : "uri", "value" : "http://rdfs.org/sioc/ns#Usergroup" } ]
},
"http://groups.event-processing.org/id/MyPrivateGroup#group" :
{
var util = require('util'),
http = require('http'),
events = require('events');
var Twitter = function(opts) {
this.username = opts.username;
this.password = opts.password;
this.track = opts.track;
this.data = '';
};
@chamerling
chamerling / gist:1601535
Created January 12, 2012 16:45 — forked from nbarendt/gist:1249754
Brute force chef-solo install script
#!/bin/bash
set -x
set -e
echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | sudo tee /etc/apt/sources.list.d/opscode.list
wget -qO - http://apt.opscode.com/packages@opscode.com.gpg.key | sudo apt-key add -
# set up debconf preseed so there's no prompt for the chef server URL
export PRESEED_FILE=/tmp/tmp_chef_preseed
@chamerling
chamerling / gitio
Created October 10, 2011 16:43 — forked from przemoc/gitio
Turn a github.com URL into a git.io URL.
#!/bin/sh
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard if xclip is available.
URL="$1"