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
############ CRDROID ################ | |
mkdir -p ~/build | |
export USER=$(whoami) | |
git config --global user.name "Daniel P" | |
git config --global user.email "dduuch@gmail.com" | |
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo | |
chmod a+x ~/bin/repo | |
yes | repo init -u https://github.com/dduuch/crdroid-d855.git -b 8.1-d855 | |
cd .repo/manifests/ | |
git remote add crdroid https://github.com/crdroidandroid/android.git |
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
temporary solution. | |
Execute that inside the container: | |
``` | |
apk update \ | |
&& apk upgrade | |
&& rm -rf /var/cache/apk/* \ | |
&& cp /certs/your-cert.crt /usr/local/share/ca-certificates/ \ | |
&& update-ca-certificates | |
``` |
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 | |
sudo apt update | |
sudo apt install -y curl git vim | |
if [ $(hostname --fqdn) != $(hostname) ]; then | |
echo "Hostname doesn't match to this one set in /etc/hosts." | |
echo "Fixing..." | |
HOSTNAME=$(hostname --fqdn) | |
sudo tee /etc/hostname <<EOF |
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 | |
PROMETHEUS_VERSION=${PROMETHEUS_VERSION:-'2.27.1'} | |
ALERTMANAGER_VERSION=${ALERTMANAGER_VERSION:-'0.21.0'} | |
NODE_EXPORTER_VERSION=${NODE_EXPORTER_VERSION:-'1.1.2'} | |
if command -v yum ; then | |
sudo yum update -y | |
sudo yum install -y wget | |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
yum -y install centos-release-openshift-origin epel-release git pyOpenSSL | |
yum -y install openshift-ansible |
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 | |
BLACKBOX_EXPORTER_VERSION=${BLACKBOX_EXPORTER_VERSION:-'0.19.0'} | |
MYSQL_EXPORTER_VERSION=${MYSQL_EXPORTER_VERSION:-'0.12.1'} | |
APACHE_EXPORTER_VERSION=${APACHE_EXPORTER_VERSION:-'0.8.0'} | |
ZOOKEEPER_EXPORTER_VERSION=${ZOOKEEPER_EXPORTER_VERSION:-'v0.1.12'} | |
STATSD_EXPORTER_VERSION=${STATSD_EXPORTER_VERSION:-'0.15.0'} | |
if id -u 'centos'; then | |
USER='centos' |
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 | |
cat << EOF | sudo tee /etc/yum.repos.d/grafana.repo | |
[grafana] | |
name=grafana | |
baseurl=https://packages.grafana.com/oss/rpm | |
repo_gpgcheck=1 | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=https://packages.grafana.com/gpg.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
# More info how to create such file: | |
# https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options | |
Include | |
# Pico+ | |
CalSync # Install Google Calendar Sync (if Google Calendar is being installed) | |
DialerFramework # Install Dialer Framework (Android 6.0+) | |
GoogleTTS # Install Google Text-to-Speech Engine (Micro+ on 5.0-, Pico+ on 6.0+) | |
PackageInstallerGoogle # Install Package Installer (Android 6.0 only & Android 8.0+) |
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 | |
# At first, unpack TWRP backup by typing: | |
# NOTE: /data/data is where the application informations are located | |
# cd TWRP/BACKUPS/<ID>/<BACKUP DIR> ; for i in {0..5}; do tar xvf data.ext4.win00$i /data/data/ -C data ; done | |
BACKUP_DATA_DIR="data/data" | |
APPS=$(ls $BACKUP_DATA_DIR/ | grep -E 'authenticator2|inmobile|jakdojade|lidl|mbank|pekao|revolut|securesms|melodis|telegram|uber|yanosik|whatsapp|canon|secret|fitatu|hbogo|brother|player|speed') | |
if [ ! -d "$BACKUP_DATA_DIR" ]; then |
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 | |
USE_FEDORA=${USE_FEDORA:-''} | |
if [ ! -f "/swapfile" ]; then | |
sudo fallocate -l 10G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
fi |
OlderNewer