This file contains hidden or 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
### | |
### | |
### This module requires MySQL-python e.g. on Centos/RHEL | |
### * yum install MySQL-python | |
### | |
### Note: | |
### To setup database access: | |
### GRANT SUPER, PROCESS ON *.* TO your_user@localhost \ | |
### IDENTIFIED BY "your_password"; | |
### |
This file contains hidden or 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
--- ./gmond/python_modules/db/mysql.py-org 2014-10-23 10:20:38.000000000 +0900 | |
+++ ./gmond/python_modules/db/mysql.py 2014-10-23 12:23:31.000000000 +0900 | |
@@ -113,7 +113,7 @@ | |
if get_innodb: | |
cursor = conn.cursor(MySQLdb.cursors.Cursor) | |
cursor.execute("SHOW /*!50000 ENGINE*/ INNODB STATUS") | |
- innodb_status = parse_innodb_status(cursor.fetchone()[0].split('\n')) | |
+ innodb_status = parse_innodb_status(cursor.fetchone()[2].split('\n')) | |
cursor.close() | |
logging.debug('innodb_status: ' + str(innodb_status)) |
This file contains hidden or 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
--- ./gmond/python_modules/db/DBUtil.py-org 2014-10-23 10:24:40.000000000 +0900 | |
+++ ./gmond/python_modules/db/DBUtil.py 2014-10-23 10:35:23.000000000 +0900 | |
@@ -86,7 +86,7 @@ | |
innodb_status['active_transactions'] | |
for line in innodb_status_raw: | |
- istatus = line.split() | |
+ istatus = line.replace(',', '').replace(';', '').split() | |
isum = sumof(istatus) |
This file contains hidden or 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
... | |
ld: warning: directory not found for option '-L/usr/local/homebrew/Cellar/libpng/1.6.10/lib' | |
Undefined symbols for architecture x86_64: | |
"_lo_lseek64", referenced from: | |
_zif_pg_lo_seek in pgsql.o | |
"_lo_tell64", referenced from: | |
_zif_pg_lo_tell in pgsql.o | |
"_lo_truncate64", referenced from: | |
_zif_pg_lo_truncate in pgsql.o | |
ld: symbol(s) not found for architecture x86_64 |
This file contains hidden or 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
for i in `aws ec2 describe-security-groups | jq -r '@csv "\(.SecurityGroups[] | [.GroupId, .GroupName])"'`; do aws ec2 create-tags --resources `echo $i | cut -d ',' -f 1 | tr -d '"'` --tags Key=Name,Value=`echo $i | cut -d ',' -f 2 | tr -d '"'` ; done |
This file contains hidden or 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
#!/bin/bash | |
# You must accept the Oracle JDK License Update | |
# https://www.oracle.com/java/technologies/javase-downloads.html | |
# usage: get_oracle_jdk_x64.sh <jdk_version> <platform> <ext> | |
# jdk_version: 14 | |
# platform: linux or osx or windows | |
# ext: rpm or dmg or tar.gz or exec | |
jdk_version=${1:-14} |
This file contains hidden or 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
... | |
==> fontforge -lang=py -script /private/tmp/ricty-JOuT/Ricty-3.2.3/scripts/powerline-fontpatcher [] Ricty-Bold.tt | |
Executable based on sources from 14:57 GMT 31-Jul-2012-D. | |
Library based on sources from 14:57 GMT 31-Jul-2012. | |
usage: powerline-fontpatcher [-h] [--no-rename] [--source-font font] | |
font [font ...] | |
powerline-fontpatcher: error: argument font: can't open '[]': [Errno 2] No such file or directory: '[]' | |
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting | |
If reporting this issue please do so at (not Homebrew/homebrew): |
This file contains hidden or 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
sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d') |
This file contains hidden or 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
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url | |
bash <(curl -s http://mywebsite.com/myscript.txt) | |
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl | |
curl http://foo.com/script.sh | bash -s arg1 arg2 |
This file contains hidden or 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
iPhone 5s: | |
carrier: SoftBank | |
ua: Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 | |
width: 640 | |
height: 1136 | |
Nexus 5: | |
carrier: Others | |
ua: Mozilla/5.0 (Linux; Android 4.4.2; Nexus 5 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.105 Mobile Safari/537.36 | |
width: 1080 | |
height: 1920 |