Skip to content

Instantly share code, notes, and snippets.

View ykocaman's full-sized avatar

ykocaman ykocaman

  • istanbul
View GitHub Profile
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"
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
# ## 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
@ykocaman
ykocaman / .php_cs
Last active August 10, 2019 11:57
<?php
// Symfony 2.8
require __DIR__.'/vendor/autoload.php';
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;
<?php
function fibonacci($limit){
$first = 0;
$second = 1;
for($i = 0; $i < $limit; $i++){
yield $first;
list($first, $second) = [$second, $first + $second];
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,
#!/usr/bin/env bash
set -e;
##############################
#### Tanimlamalar
#############################
ssh_user='vagrant';
ssh_port=22;
@ykocaman
ykocaman / development
Last active June 27, 2018 14:22
Nginx development config with all php version. For example http://test.dev7.lo runs index.php in /home/www/test with version 7.0
#/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$;
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'
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