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
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). |
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 [(none)]> SHOW GLOBAL VARIABLES; | |
+--------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| Variable_name | Value | | |
+--------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------- |
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 [(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 | |
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/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: |
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/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 = [] |
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
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 |