$# Number of arguments
$* All arguments
$@ All arguments, starting from first
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 | |
/* | |
* The MIT License | |
* | |
* Copyright (c) 2016 Frantisek Preissler <[email protected]> | |
* | |
* 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 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
## content of: /etc/fail2ban/jail.local | |
[mail-smtp] | |
enabled = true | |
logpath = /var/log/mail.log | |
filter = mail-smtp | |
maxretry = 1 | |
action = iptables-multiport[name=mail-smtp, port="25,587", protocol=tcp] |
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
#!/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 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
<?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 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
alfresco: | |
links: | |
- database | |
- solr | |
- activemq | |
- pdf-renderer | |
- imagemagick | |
- libreoffice | |
- tika | |
ports: |
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
#! /bin/sh | |
# imapcopy -- Sync IMAP accounts (from server account A to server account B) | |
# Copyright (C) 2016 Frantisek Preissler, <[email protected]> | |
# 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 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 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 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
(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 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 bash | |
function usage { | |
echo -n " | |
NAME | |
create-certs.sh - create CA, server and client certificates | |
SYNOPSIS | |
create-certs.sh [OPTION]... |
OlderNewer