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
<?php | |
/* | |
* The MIT License | |
* | |
* Copyright (c) 2016 Frantisek Preissler <github@ntisek.cz> | |
* | |
* 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 |
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 | |
## | |
# Usage: | |
# $ cd /home/git/gitlab | |
# $ CURRENT_VERSION=8-9-stable TARGET_VERSION=8-10-stable SHELL_VERSION=v3.2.3 WORKHOUSE_VERSION=v0.7.8 sh update.sh | |
## | |
cd /home/git/gitlab/ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>3.4</version> | |
<date>2018-08-30T16:19:20Z</date> | |
<groups> | |
<group> | |
<name>Templates/Modules</name> | |
</group> | |
</groups> | |
<templates> |
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
alfresco: | |
links: | |
- database | |
- solr | |
- activemq | |
- pdf-renderer | |
- imagemagick | |
- libreoffice | |
- tika | |
ports: |
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
import os | |
import subprocess | |
import time | |
## If the parent process is ignoring that output, | |
## the Popen call cannot destroy the process as it has data sitting in a pipe and generates zombie processes. | |
#p = subprocess.Popen('ls -l /tmp', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) | |
#time.sleep(10) |
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
(base) root@magrathea:~# conda install -c conda-forge opencv | |
Collecting package metadata (current_repodata.json): done | |
Solving environment: failed with initial frozen solve. Retrying with flexible solve. | |
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source. | |
Collecting package metadata (repodata.json): done | |
Solving environment: failed with initial frozen solve. Retrying with flexible solve. | |
Solving environment: - | |
Found conflicts! Looking for incompatible packages. | |
This can take several minutes. Press CTRL-C to abort. | |
failed | |
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 | |
function usage { | |
echo -n " | |
NAME | |
create-certs.sh - create CA, server and client certificates | |
SYNOPSIS | |
create-certs.sh [OPTION]... |
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/sh | |
# imapcopy -- Sync IMAP accounts (from server account A to server account B) | |
# Copyright (C) 2016 Frantisek Preissler, <github@ntisek.cz> | |
# Released under the terms of The MIT License | |
#if [ $# != 4 ] | |
if [ $# != 1 ] | |
then | |
# echo Usage: imapcopy [SOURCE-USER] [SOURCE-PASS] [TARGET-USER] [TARGET-PASS] |
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
# Docker, Docker Compose | |
alias docker-clear='docker rm -f $(docker ps -q -a); docker rmi -f $(docker images -q); docker system prune --all --force --volumes' | |
alias docker-down='docker-compose down' | |
alias docker-images='docker images --all' | |
alias docker-logs='docker-compose logs --tail=1000 -f -t' | |
alias docker-ps='docker ps -a' | |
alias docker-up='DATE_FROM=`date`; echo "BUILD START: $DATE_FROM" ; docker-compose up -d --build; DATE_TO=`date`; echo -e "BUILD START: $DATE_FROM\nBUILD END: $DATE_TO\n"' | |
alias docker-up-nohup='DATE_FROM=`date`; echo "BUILD START: $DATE_FROM" ; nohup docker-compose up -d --build $ && DATE_TO=`date`; echo -e "BUILD START: $DATE_FROM\nBUILD END: $DATE_TO\n"' | |
# Kubernetes |
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
# [...] | |
# Docker functions | |
function docker-exec() { | |
Container=$1 | |
echo "Running command: docker exec -ti $Container /bin/bash" | |
docker exec -ti $Container /bin/bash | |
} | |
function docker-exec-sh() { |
OlderNewer