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 | |
$text = 'hkHlLFwvwYoo1IcY'; | |
//$text = 'hkHlLFwvwYoo1I'; | |
//$text = 'hkHlLFwv'; | |
$key = md5('SAMPLE SALT'); | |
$em = encrypt_m($text, $key); | |
$eo = encrypt_o($text, $key); |
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] | |
output_buffering = Off | |
expose_php = Off | |
max_execution_time = 300 | |
max_input_time = 600 | |
memory_limit = 1G | |
post_max_size = 1G | |
upload_max_filesize = 1G | |
allow_url_fopen = Off | |
[Date] |
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 | |
sudo yum install epel-release | |
sudo yum install https://repo.ius.io/ius-release-el7.rpm | |
sudo yum update | |
sudo yum install git236 |
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 | |
"""Replace list's owner address. | |
This script is intended to be run as a bin/withlist script, i.e. | |
% bin/withlist -l -r replace_owner listname from_address to_address | |
If run standalone, it prints this help text and exits. | |
""" |
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 | |
export LANG=C | |
BACKUPDIR=/backup/daily | |
DATE=`date` | |
if test ! -d $BACKUPDIR; then | |
mkdir -p $BACKUPDIR | |
chmod 700 $BACKUPDIR |
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
bindkey '^P' history-search-backward | |
bindkey '^N' history-search-forward |
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 | |
SERVICE_NAME=postfix | |
SERVICE_DOMAINS=example.com | |
IS_ACTIVE=$(systemctl is-active ${SERVICE_NAME}) | |
if [ "${IS_ACTIVE}" != "active" ]; then | |
exit 0 | |
fi |
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 | |
DEVICE=$1 | |
ip addr show dev ${DEVICE} | sed -e 's/^.*inet6 \([^ ]*\)\/.*scope global.*$/\1/;t;d' |
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 | |
declare(strict_types=1); | |
$config = new PhpCsFixer\Config(); | |
return $config | |
->setRiskyAllowed(true) | |
->setRules([ | |
'@Symfony' => true, |
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 | |
# VERSION:20211203 | |
_uid=$(id -u) | |
if test $_uid -ne 0; then | |
echo "Error : This script have to run as root" | |
exit 1 | |
fi |
OlderNewer