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
FROM node:6.6 | |
# add node modules folder to path and set global node path | |
ENV NODE_PATH /opt/node_modules | |
ENV PATH /opt/node_modules/.bin:$PATH | |
# copy dependency file for npm into the container --> everytime (to update possible dependencies) | |
ADD package.json /opt/package.json | |
# rm old node_modules |
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 systemd service definition for partuniverse | |
# | |
[Unit] | |
Description=partuniverse service definition | |
Requires=nginx.service partuniverse.socket | |
Before=nginx.service | |
After=network.target | |
[Service] |
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
{ stdenv, automake114x, autoconf, vim, glib, clang, libxml2, fetchurl, openssl, ncurses, pkgconfig, popt, screen }: | |
stdenv.mkDerivation rec { | |
name = "apt-dater-${version}"; | |
version = "1.0.2"; | |
src = fetchurl { | |
url = "https://github.com/DE-IBH/apt-dater/archive/v${version}.tar.gz"; | |
sha256 = "4d01e734f4dac32ff2eb279e6493a1019f2c2fce0e35cea48df027a593df0355"; | |
}; |
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
{ stdenv, automake, autoconf, vim, glib, clang, libxml2, fetchurl, openssl, ncurses, pkgconfig, popt }: | |
stdenv.mkDerivation rec { | |
name = "apt-dater-${version}"; | |
version = "1.0.2"; | |
src = fetchurl { | |
url = "https://github.com/DE-IBH/apt-dater/archive/v${version}.tar.gz"; | |
sha256 = "4d01e734f4dac32ff2eb279e6493a1019f2c2fce0e35cea48df027a593df0355"; | |
}; |
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
with import <nixpkgs> {}; { | |
luaEnv = stdenv.mkDerivation { | |
name = "lua"; | |
buildInputs = [ stdenv lua51Packages.luasocket lua51Packages.luaexpat lua51Packages.luasec ]; | |
LUA_PATH="${lua51Packages.luasec}/lib/lua/5.1/?.lua;${lua51Packages.luaexpat}/share/lua/5.1/?.lua;${lua51Packages.luasocket}/share/lua/5.\ | |
1/?.lua;./?.lua"; | |
LUA_CPATH="${lua51Packages.luasec}/lib/lua/5.1/?.so;${lua51Packages.luaexpat}/lib/lua/5.1/?.so;${lua51Packages.luasocket}/lib/lua/5.1/?.s\ | |
o;./?.so;/usr/lib/lua/5.1/?.so;/usr/lib/lua/5.1/loadall.so"; | |
}; | |
} |
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
-- Prosody Example Configuration File | |
-- | |
-- Information on configuring Prosody can be found on our | |
-- website at http://prosody.im/doc/configure | |
-- | |
-- Tip: You can check that the syntax of this file is correct | |
-- when you have finished by running: prosodyctl check config | |
-- If there are any errors, it will let you know what and where | |
-- they are, otherwise it will keep quiet. | |
-- |
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
<?php | |
class SpecialForm { | |
private $function = null; | |
private $callback = null; | |
public function __construct($function,$callback) { | |
$this->function = $function; | |
$this->callback = $callback; | |
} |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import subprocess | |
import re | |
import datetime | |
def main(): | |
if (len(sys.argv) != 2): |
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
<?php | |
$int = new DateInterval('P27DT19H26M39S'); | |
$now = new DateTime(); | |
var_dump($now); | |
$now->add($int); | |
var_dump($now); |
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
# -*- coding: utf-8 -*- | |
import VideoCapture | |
import datetime | |
import time | |
device = VideoCapture.Device() | |
device.setResolution(1920,1080) | |
while True: | |
now = datetime.datetime.now() |