-
Install requirements and dependencies:
apt install git cpanminus automake build-essential libauthen-ntlm-perl libclass-load-perl libcrypt-openssl-rsa-perl libdata-uniqid-perl libdate-manip-perl libdigest-hmac-perl libdigest-md5-file-perl libdist-checkconflicts-perl libfile-copy-recursive-perl libio-tee-perl libjson-perl libmail-imapclient-perl libmodule-implementation-perl libmodule-runtime-perl libmodule-scandeps-perl libpackage-stash-perl libpackage-stash-xs-perl libpar-packer-perl libreadonly-perl libsys-meminfo-perl libterm-readkey-perl libtest-fatal-perl libtest-mock-guard-perl libtest-mockobject-perl libtest-pod-perl libtest-requires-perl libtry-tiny-perl libunicode-string-perl make makepasswd perl-doc rcs
-
Clone source code from git repository
git clone https://github.com/imapsync/imapsync.git
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 <stdio.h> | |
#include <string.h> | |
#include <time.h> | |
#include "clients.h" | |
#include "getifaddr.h" | |
#include "log.h" | |
struct client_type_s client_types[] = | |
{ |
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
The MIT License (MIT) | |
Copyright (c) 2019 Jonas Friedmann | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
-
Obtain authentication token
XHOST=rocketchat.dev.company.com:3000 curl -H "Content-type:application/json" \ http://${XHOST}/api/v1/login \ -d '{ "username": "test", "password": "test" }'
-
Store tokens in variable
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 bash | |
# Script to remove old uploads in Rocket.Chat instances for people using the filesystem storage method. | |
# This script makes sure to NOT remove users avatars. Because they are stored in the same directory we | |
# have to query the Mongo to check if a file is a regular file upload or a avatar. | |
# | |
# Env vars: | |
# - DELETE_OLDER_THAN_DAYS (defaults to 5) | |
# | |
# Written by: Jonas "frdmn" Friedmann <j@frd.mn> | |
# Requirements: mongo (cli), docker-compose, jq, tofrodos package |
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
/* MiniDLNA media server | |
* | |
* This file is part of MiniDLNA. | |
* | |
* Penguin images are the creation of Larry Ewing (lewing@isc.tamu.edu) using The GIMP. | |
* NETGEAR images Copyright (c) 2008- NETGEAR, Inc. All Rights Reserved. | |
* | |
* MiniDLNA is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. |
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/python | |
import subprocess | |
import re | |
# Get process info | |
ps = subprocess.Popen(['ps', '-caxm', '-orss,comm'], stdout=subprocess.PIPE).communicate()[0] | |
vm = subprocess.Popen(['vm_stat'], stdout=subprocess.PIPE).communicate()[0] | |
# Iterate processes |
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 | |
############################################################### | |
# LiveConfig mail path lookup by Jonas Friedmann (iWelt AG) # | |
# j@frd.mn # | |
# http://frd.mn # | |
# http://twitter.com/frdmn # | |
############################################################### | |
STRING=${1} |
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
//rocket.service.js | |
var Service = require('node-windows').Service; | |
var EventLogger = require('node-windows').EventLogger; | |
var logger = new EventLogger('Rocket.Chat'); | |
// Create a new service object | |
var svc = new Service({ | |
name:'Rocket.Chat', | |
description: 'Rocket.Chat Service', |