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 python3 | |
# | |
# Copyright (C) 2024 Hasan CALISIR <[email protected]> - PSAUXIT.COM | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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 | |
function strto($to, $str) { | |
if ('lower' === $to) { | |
return mb_strtolower(str_replace(array('I', 'Ğ', 'Ü', 'Ş', 'İ', 'Ö', 'Ç'), array('ı', 'ğ', 'ü', 'ş', 'i', 'ö', 'ç'), $str), 'utf-8'); | |
} elseif ('upper' === $to) { | |
return mb_strtoupper(str_replace(array('ı', 'ğ', 'ü', 'ş', 'i', 'ö', 'ç'), array('I', 'Ğ', 'Ü', 'Ş', 'İ', 'Ö', 'Ç'), $str), 'utf-8'); | |
} else { | |
trigger_error('Lütfen geçerli bir strto() parametresi giriniz.', E_USER_ERROR); | |
} |
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
# Need for further perl module installation which not found in distribution repo | |
# Best way for scripted perl module installation | |
get_cpanm (){ | |
if ! command -v cpanm >/dev/null 2>&1; then # Check in $PATH | |
if [[ ! -f /usr/local/bin/cpanm ]]; then # Check in local path | |
{ | |
cd /tmp | |
curl -sLk https://cpanmin.us | perl - --sudo App::cpanminus | |
} >/dev/null 2>&1 | |
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
# Copyright 1999-2021 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=7 | |
inherit eutils flag-o-matic meson toolchain-funcs unpacker | |
MY_MKL_PV="10.0.5.025" | |
DESCRIPTION="UCI-compliant chess engine designed to play chess via neural network" |
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
# Copyright 1999-2021 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=7 | |
inherit fortran-2 toolchain-funcs | |
DESCRIPTION="OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version" | |
HOMEPAGE="http://xianyi.github.com/OpenBLAS/" | |
SRC_URI="https://github.com/xianyi/OpenBLAS/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
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 | |
# If you use certbot auto renawal with DNS validation you need exact version of dns-rfc2136 python module with certbot. | |
# This script simply updates dns-rfc2136 python module with pip ACCORDING TO CERTBOT VERSION to prevent breaking certificate renew automations if needed. | |
# Even you have fully updated system in some linux distros there may be version mismatch beetween these two packages.Then you get parse errors probably. | |
# This script rely on pip instead of package manager! If your distro repository has certbot-dns-rfc2136 package and already installed using pip can break things. | |
# One possible solution could be masking certbot-dns-rfc2136 updates from your package manager and rely on this script(pip). | |
# But this could also break other packages that depends certbot-dns-rfc2136. This depends which linux distro runs on your system. Be careful. | |
# Crontab: | |
# 0 4 * * * /path/scripts/certbot-dns-rfc2136.sh >/dev/null 2>&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
#!/bin/bash | |
# | |
# eix depended handy gentoo update cron script. | |
# * Prioritize portage upgrade if available. | |
# * Runs perl-cleaner for perl upgrade process. | |
# * Warns for reboot if pam upgraded. | |
# * Sends upgrade summary via mail. | |
#====================================================================================== | |
# send mail configuration: |
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 | |
# >> LDA-Dovecot << | |
# Find and delete mails which accidently sent to wrong mailbox if unseen yet. | |
# Works very fast in big mailboxes. Search for uniq_word in body. | |
mbox="INBOX" | |
mailbox="[email protected]" | |
date="2021-05-14" | |
str="uniq_word" |