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 alpine | |
| RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories && \ | |
| echo 'http://dl-4.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \ | |
| apk add --update elixir gettext-dev erlang-crypto nodejs && \ | |
| rm -rf /var/cache/apk | |
| RUN adduser -D -h /app app | |
| USER app |
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 lua | |
| -- | |
| http = require("socket.http") | |
| string = require("string") | |
| ltn12 = require ("ltn12") | |
| function encodetable(table) | |
| local str = "" |
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 -*- | |
| # vim: fileencoding=utf-8 | |
| # | |
| # Copyright © 2009 Adrian Perez <aperez@igalia.com> | |
| # | |
| # Distributed under terms of the GPLv2 license. | |
| """ | |
| Collectd network protocol implementation. |
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 pydhcplib.dhcp_packet import * | |
| from pydhcplib.dhcp_network import * | |
| import threadpool | |
| netopt = { "client_listen_port": "68", | |
| "iface": "eth0", | |
| "server_listen_port": "67", | |
| "listen_address": "0.0.0.0" | |
| } |
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 escript | |
| -module(erbot). | |
| -export([start/0]). | |
| -define(_SERVER, "irc.oftc.net"). | |
| -define(_NICK, "4funBot"). | |
| -define(_CHANNEL, "#sysadms"). | |
| start() -> | |
| {ok, Socket} = gen_tcp:connect(?_SERVER, 5222, [binary, {packet, 0}]), |
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
| import redis | |
| from ConfigParser import RawConfigParser, NoSectionError | |
| class RedisConfigParser(RawConfigParser): | |
| def __init__(self, defaults): | |
| self.redis = redis.Redis(defaults['redis']) | |
| self.redis.select(1) | |
| self.namespace = defaults['namespace'] |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/stat.h> | |
| #include <sys/errno.h> | |
| #define MAX_LINE 1024 | |
| typedef struct group { | |
| char name[MAX_LINE]; |