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
FROM alpine:3.8 | |
LABEL maintainer "Alex Negulescu <alecs@sysops.ro>" | |
ENV MONGO_USERNAME root | |
ENV MONGO_PASSWORD password | |
RUN addgroup -S -g 9999 mongodb 2>/dev/null | |
RUN adduser -S -D -h /var/lib/mongodb -s /sbin/nologin -G mongodb -g mongodb -u 9999 mongodb 2>/dev/null |
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
version: '3.7' | |
services: | |
trudesk: | |
# polonel/trudesk:1.1.3 | |
image: polonel/trudesk:next | |
restart: always | |
# ports: | |
# - 8118:8118 | |
environment: | |
NODE_ENV: production |
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
sd_make() { | |
local accesstoken="" | |
local domain="" | |
local subject=$1 | |
local description=$2 | |
echo $1 | |
echo $2 | |
if [ -n "${subject}" -a -n "${description}" ]; then | |
curl "https://${domain}/api/v1/tickets/create" --compressed \ | |
-H "authority: ${domain}" -H 'accept: application/json, text/plain, */*' \ |
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
#!/sbin/openrc-run | |
USER=root | |
GROUP=root | |
SERVICE="${SERVICE}" | |
DIR="/opt/${SERVICE}" | |
PDIR="/run/${SERVICE}" | |
PID_FILE="${PDIR}/${SERVICE}.pid" | |
COMMAND="" | |
CMD_ARGS="" |
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
apk list -I -v | awk 'BEGIN {i=0}; { word=substr($3,2,index($3,"}")-2); if (word != "") { packs[i]=word; let i++ } }; END { for (id in packs) { printf packs[id]" " } }' |
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/bash | |
# | |
# iMSCP dns entries importer | |
# | |
# What you need: standard zone file with columns separated by a TAB and the target domain ID | |
# Usage: | |
# named2imscpSQL.sh domain.tld 93 | |
# | |
# Copyleft alecs@negulescu.me | |
# |
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
-- comfy-auth.lua | |
-- Copyright (c) 2014, Thomas Jost <schnouki@schnouki.net> | |
-- | |
-- Permission to use, copy, modify, and/or distribute this software for any | |
-- purpose with or without fee is hereby granted, provided that the above | |
-- copyright notice and this permission notice appear in all copies. | |
-- | |
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
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
perl -e "use POSIX; my $path = $ENV{PATH}; @cale = split '\;', $path; foreach my $el (@cale) { print $el.\"\n\"; }" | |
perl -e "use POSIX; my $path = $ENV{PATH}; @cale = split '\;', $path; foreach my $el (@cale) { print $el.\"\n\"; `nixfind $el -type f -name \"*glib*\"`; print \"\n\n\"; }" |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use File::Find; | |
my $modPattern = shift; | |
my @match; | |
find( { wanted => \&findModules, |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
#use 5.008; | |
our $HOSTURI = '#'; | |
our $CONSUMER_KEY = '#'; | |
our $CONSUMER_SECRET = '#'; | |
our $SECRET = '#'; | |
our $CALLBACK_URL = '#'; |
NewerOlder