Skip to content

Instantly share code, notes, and snippets.

View Erilbeth's full-sized avatar

Erilbeth

  • Asseco
  • Istanbul, Turkey
View GitHub Profile
@Erilbeth
Erilbeth / reader.go
Created April 4, 2019 14:18
A Reader
package main
/*Write a program which reads information from a file and represents it
in a slice of structs. Assume that there is a text file which contains
a series of names. Each line of the text file has a first name and a last name,
in that order, separated by a single space on the line.
Your program will define a name struct which has two fields,
fname for the first name, and lname for the last name.
Each field will be a string of size 20 (characters).
MySQL [(none)]> SHOW GLOBAL VARIABLES;
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------
MySQL [(none)]> SHOW GLOBAL STATUS;
+-----------------------------------------------+-----------------+
| Variable_name | Value |
+-----------------------------------------------+-----------------+
| Aborted_clients | 8827861 |
| Aborted_connects | 96 |
| Binlog_cache_disk_use | 36573 |
| Binlog_cache_use | 17083300 |
| Binlog_stmt_cache_disk_use | 0 |
| Binlog_stmt_cache_use | 1269 |
#!/usr/bin/python
import string
sentence = "g fmnc wms bgblr rpylqjyrc gr zw fylb. \
rfyrq ufyr amknsrcpq ypc dmp. \
bmgle gr gl zw fylb gq glcddgagclr ylb rfyr\'q ufw rfgq rcvr gq qm jmle. \
sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
mylist = []
for i in sentence:
#!/usr/bin/python
sentence = "g fmnc wms bgblr rpylqjyrc gr zw fylb. \
rfyrq ufyr amknsrcpq ypc dmp. \
bmgle gr gl zw fylb gq glcddgagclr ylb rfyr\'q ufw rfgq rcvr gq qm jmle. \
sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."
list_numbers = [ord(i) for i in sentence]
list_sentence = []
@Erilbeth
Erilbeth / mysql.yaml
Created August 18, 2017 14:20 — forked from stewartwebb/mysql.yaml
Example DataDog MySQL YAML
init_config:
instances:
- server: localhost
user: datadog
pass: password_here
options:
replication: 0 # Set this to 1 on Slave server
galera_cluster: 0 # I assume we're not running a Galera cluster so put to 0