$ uname -r
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/perl | |
| # Backups and compresses a SQL database, and uploads to Google Drive | |
| # Make sure ~/.my.cnf is set with mySQL login credentials | |
| # Follow instructions at https://developers.google.com/drive/web/auth/web-server to generate a client id and secret | |
| # Use bash script at https://github.com/soulseekah/bash-utils/blob/master/google-oauth2/google-oauth2.sh to create refresh token | |
| # Configuration Options | |
| my $HOST = ''; # mySQL server host |
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 | |
| # require: git version > 2.3 | |
| # require: `db/letsencrypt` existed in git repo | |
| if [[ -z "$CERTBOT_DOMAIN" ]] || [[ -z "$CERTBOT_VALIDATION" ]]; then | |
| echo '$CERTBOT_DOMAIN and $CERTBOT_VALIDATION environment variables required.' | |
| fi | |
| source /etc/letsencrypt/dns-auth.conf |
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 | |
| # | |
| # Description: | |
| # Erase all tapes loaded in a tape loader. | |
| # If FULL is given as parameter a full erase is done otherwise it just do a quick one. | |
| # BUGS: | |
| # It should count how many drives and do that part automagically | |
| # but it's hard to pair up drives with loaders when other tape drives exists also. | |
| # Haven't tested FULL | |
| # |
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
| # as zimbra user | |
| $ zmprov -l gaa |grep -v admin-domain.com >/tmp/accounts.zmp | |
| $ zmprov -l gad |grep -v admin-domain.com >/tmp/domains.zmp |
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
| .screen-custom { | |
| } | |
| .text-custom { | |
| position: relative; | |
| } | |
| .text-custom span:not(:empty) { | |
| background-color: rgba(67, 50, 42, 0.7); | |
| display: grid; |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <locale.h> | |
| int main ( ){ | |
| int i, j, linha, coluna, contador; | |
| char matriz[3][3]; | |
| setlocale(LC_ALL,""); /*Acentuação*/ | |
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 | |
| # ---------------------------------- | |
| # DEFINED - Global variables | |
| # ---------------------------------- | |
| # defined temporary folder | |
| DBBACKUP="dbbackup" | |
| # database configure |
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
| ####### installation of self-signed certificate into CentOS7 (RHEL) ####### | |
| mkdir -p /etc/pki/ca-trust/source/anchors | |
| cp /path/to/self_signed_cert.crt /etc/pki/ca-trust/source/anchors/self_signed_cert.crt | |
| chmod +x /etc/pki/ca-trust/source/anchors/self_signed_cert.crt | |
| sudo update-ca-trust | |
| ####### installation of self-signed certificate into Ubuntu (Debian) ####### | |
| mkdir -p /usr/local/share/ca-certificates/ | |
| cp /path/to/self_signed_cert.crt /usr/local/share/ca-certificates/self_signed_cert.crt | |
| chmod +x /usr/local/share/ca-certificates/self_signed_cert.crt |
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 | |
| archiveLocation=/backups | |
| archiveTempPath=/backups/tmp_backup | |
| archiveName=$(date '+%d-%m-%Y_%H:%M'); | |
| archiveFullName=$archiveName.tar.gz | |
| archivePath=$archiveLocation/$archiveFullName | |
| deleteLocalArchive=false | |
| backupPath=/var/www | |
| backupToRemoteServer=false |
OlderNewer