Distro | Desktop Environment |
---|---|
Fedora | GNOME |
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 | |
set -eou pipefail | |
#========== Step 1: Disable Swap ============ | |
echo "Disabling Swap......." | |
sudo swapoff -a | |
sudo sed -i '/^[^#]/ s/\(^.*swap.*$\)/#\1/' /etc/fstab | |
free -h | |
echo "" |
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
```yaml | |
apiVersion: kubedb.com/v1alpha2 | |
kind: MySQL | |
metadata: | |
name: wordpress-mysql | |
namespace: demo | |
spec: | |
version: 8.0.21 | |
replicas: 3 | |
topology: |
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
apiVersion: stash.appscode.com/v1beta1 | |
kind: BackupSession | |
metadata: | |
name: instant-trigger | |
namespace: <namespace> | |
spec: | |
invoker: | |
apiGroup: stash.appscode.com | |
kind: BackupConfiguration | |
name: <backupconfiguration name> |
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
/* | |
* author: Bart Zaalberg <https://github.com/bartzaalberg> | |
* | |
* Check http://doc.qt.io/qt-5/stylesheet-syntax.html especially the subtopics: | |
* The Style Sheet Syntax (http://doc.qt.io/qt-5/stylesheet-syntax.html) | |
* Qt Style Sheets Reference (http://doc.qt.io/qt-5/stylesheet-reference.html) | |
*/ | |
* { | |
border: none; |
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
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
version: "2" | |
services: | |
universe: | |
build: . | |
working_dir: /usr/src | |
environment: | |
- NODE_ENV=default | |
- PORT=3000 | |
volumes: | |
- /usr/src |
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 | |
DB_NAME="database_name" | |
DB_USER="username" | |
DB_PASS="password" | |
DB_HOST="localhost" | |
DB_PORT="3306" | |
while ! nc -q 1 $DB_HOST $DB_PORT </dev/null; do | |
echo "Waiting for database to be ready....." | |
sleep 5 |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: kube-dns | |
namespace: kube-system | |
data: | |
upstreamNameservers: | | |
["8.8.8.8", "8.8.4.4"] |
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
# this pvc will be used to store downloaded init.sql file | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: init-script | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
volumeMode: Filesystem | |
resources: |
NewerOlder