Skip to content

Instantly share code, notes, and snippets.

@AliYmn
AliYmn / main.py
Last active December 17, 2017 18:57
python3 file compression zip
import subprocess # Terminal'den komut girmek için kullandığımız komuttur.
# Sıkıştırma İşlemleri
class Compression():
"Sıkıştırma işlemlerini yapan, sınıftır."
def __init__(self,file_path):
self.file_path = file_path # sıkıştırılacak dosyalarımızı bu değişkene aktarıyoruz.
def zipfile(self):
[vc_row width="no-padded" id="formix"][vc_column align="center" align_sm="center" hidden_on_small="on" hidden_on_xsmall="on" width="1/1"][rev_slider_vc alias="medical"][/vc_column][/vc_row][vc_row width="no-padded" id="formix"][vc_column align="center" align_sm="center" hidden_on_large="on" hidden_on_medium="on" width="1/1"][rev_slider_vc alias="2"][/vc_column][/vc_row][vc_row][vc_column align="center" width="1/1"][heading header_size="big" header_align="center" margin_top="50" margin_bottom="0" scroll_animation="fadeIn"]ما نقدمه[/heading][bordered_divider divider_height="3" divider_width="60" margin_top="30" margin_bottom="60" scroll_animation="fadeIn" scroll_animation_delay="0.1"][services category="blue-services" image_shape="none" image_size="medium" icon_animation="none" link_image="off" tag_title="h2" link_title="off" margin_top="0" margin_bottom="50" scroll_animation="fadeInUp" scroll_animation_delay="0.2" scroll_animation_timing="all-same"][bordered_divider divider_height="3" divider_width="1000" marg
https://easyengine.io/blog/solution-couldnt-extract-wordpress-archive-error/ bu işlemleri yapip mevcut siteyi sil
https://easyengine.io/docs/commands/site/delete/ yeniden kur
@AliYmn
AliYmn / lets.go
Created September 5, 2017 13:53 — forked from cptangry/lets.go
Tek dosyada Go dilinin temel konuları ve örnekler
package main //Çalıştrılacak her Go kaynak dosyasında yer almalıdır.
// Go Dilinde tek satırlık yorum/açıklama
import (
"fmt" // Standart kütüphaneyi projemize dahil ettik
"io/ioutil" // Temel io işlemleri
"log" // log
"math" // Matematiksel işlem ve değer tanımlarını içeren kütüphaneyi içe aktardık
"net/http"
"os" // İşletim sistemi işlemleri
sudo apt-get -y install python-pip
sudo pip install docker-compose
mkdir ~/docker
cd ~/docker
nano docker-compose.yml
@AliYmn
AliYmn / info.txt
Last active August 23, 2017 07:28
Server Name : vcenter 6.0 192.168.1.95
Description : VMware vCenter Server Appliance
Guest : SUSE Linux Enterprise 11 (64-bit)
Snapshot Status : No Snapshots
VM .vmx Path : [datastore1 (2)] vcenter 6.0 192.168.1.95/vcenter 6.0 192.168.1.95.vmx
Virtual Disks : Hard disk 1 | 12.0GB | Thin: True | [datastore1 (2)] vcenter 6.0 192.168.1.95/vcenter 6.0 192.168.1.95.vmdk
Hard disk 2 | 1.0GB | Thin: False | [datastore1 (2)] vcenter 6.0 192.168.1.95/vcenter 6.0 192.168.1.95_1.vmdk
Hard disk 3 | 25.0GB | Thin: True | [datastore1 (2)] vcenter 6.0 192.168.1.95/vcenter 6.0 192.168.1.95_2.vmdk
Hard disk 4 | 50.0GB | Thin: True | [datastore1 (2)] vcenter 6.0 192.168.1.95/vcenter 6.0 192.168.1.95_3.vmdk
Hard disk 5 | 10.0GB | Thin: True | [datastore1 (2)] vcenter 6.0 192.168.1.95/vce
Makina : vcenter 6.0 192.168.1.95
cpu.readiness.average : 2
cpu.readiness.average : 2
cpu.readiness.average : 2
cpu.costop.summation : 0
cpu.costop.summation : 0
cpu.maxlimited.summation : 0
cpu.run.summation : 817
cpu.run.summation : 643
rescpu.actav5.latest : 1500
{
"clusterServices.cpufairness.latest": 215,
"clusterServices.effectivecpu.average": 276,
"clusterServices.effectivemem.average": 277,
"clusterServices.failover.latest": 280,
"clusterServices.memfairness.latest": 216,
"cpu.capacity.contention.average": 19,
"cpu.capacity.demand.average": 18,
"cpu.capacity.entitlement.average": 16,
"cpu.capacity.provisioned.average": 15,
#!/usr/bin/env python
import atexit
from pyVmomi import vim, vmodl
from pyVim.connect import SmartConnect, Disconnect
import humanize
MBFACTOR = float(1 << 20)
#!/usr/bin/env python
"""
Written by Lance Hasson
Github: https://github.com/JLHasson
Script to report all available realtime performance metrics from a
virtual machine. Based on a Java example available in the VIM API 6.0
documentationavailable online at:
https://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.wssdk.pg.
doc%2FPG_Performance.18.4.html&path=7_1_0_1_15_2_4
Requirements: