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
grafana: | |
adminUser: admin | |
adminPassword: prom-operator | |
ingress: | |
enabled: true | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
nginx.ingress.kubernetes.io/use-regex: "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
MYSQL-SERVER >= 5.7 | |
sudo mysql -uroot -p | |
USE mysql; | |
UPDATE user SET authentication_string=PASSWORD('YOUR_PASSWORD') WHERE User='root'; | |
UPDATE user SET plugin="mysql_native_password"; | |
FLUSH PRIVILEGES; | |
quit; | |
MYSQL-SERVER < 5.7 |
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
# ## Configure 'ip' variable to bind kubernetes services on a | |
# ## different ip than the default iface | |
# ## We should set etcd_member_name for etcd cluster. The node that is not a etcd member do not need to set the value, or can set the empty string value. | |
[all] | |
node1 ansible_host=91.91.91.91 ip=10.10.10.1 etcd_member_name=etcd1 | |
node2 ansible_host=92.92.92.92 ip=10.10.10.2 | |
node3 ansible_host=93.93.93.93 ip=10.10.10.3 | |
# node4 ansible_host=95.54.0.15 # ip=10.3.0.4 etcd_member_name=etcd4 | |
# node5 ansible_host=95.54.0.16 # ip=10.3.0.5 etcd_member_name=etcd5 | |
# node6 ansible_host=95.54.0.17 # ip=10.3.0.6 etcd_member_name=etcd6 |
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 | |
// Symfony 2.8 | |
require __DIR__.'/vendor/autoload.php'; | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
use PhpCsFixer\Fixer\Import\OrderedImportsFixer; |
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 fibonacci($limit){ | |
$first = 0; | |
$second = 1; | |
for($i = 0; $i < $limit; $i++){ | |
yield $first; | |
list($first, $second) = [$second, $first + $second]; |
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
conky.config = { | |
update_interval = 1, | |
cpu_avg_samples = 2, | |
net_avg_samples = 2, | |
out_to_console = false, | |
override_utf8_locale = true, | |
double_buffer = true, | |
no_buffers = true, | |
text_buffer_size = 32768, |
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 bash | |
set -e; | |
############################## | |
#### Tanimlamalar | |
############################# | |
ssh_user='vagrant'; | |
ssh_port=22; |
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
#/etc/nginx/sites-enabled/development | |
server { | |
listen 80; | |
listen 443 ssl; | |
#parse domain | |
server_name | |
~^(?<domain_name>.+)\.(?<dir_name>[^\d]*)(?<version>\d+)\.lo$ | |
~^(?<domain_name>.+)\.(?<dir_name>.+)\.lo$; |
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
ansible hosts -b -m get_url \ | |
-a 'url=https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar dest=/usr/bin/wp mode=0777' |
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
Komutlar | |
-- uzaktan baglanti | |
ssh user@192.168.1.1 | |
-- dosyalama | |
ls -lah | |
cd .. | |
mkdir klasor | |
cp -r klasor yeni_klasor | |
mv yeni_klasor yepyeni_klasor |
NewerOlder