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
| ...... | |
| ====================================================================== | |
| ERROR: test_email_export (core2.dumper.test.test_files.TestEmailMetadataExport) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/romanko/work/workspace/release-1.3/coredata/src/core2/dumper/test/test_files.py", line 476, in test_email_export | |
| dumper.dump_object(email) | |
| File "/home/romanko/work/workspace/release-1.3/coredata/src/core2/dumper/utils.py", line 402, in wrapper | |
| func(*args) | |
| File "/home/romanko/work/workspace/release-1.3/coredata/src/core2/dumper/dumpers/documents.py", line 185, in dump_object |
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 | |
| DEVICE_NAME="DualPoint Stick" | |
| echo "device: $DEVICE_NAME" | |
| enabled=`xinput --list-props "$DEVICE_NAME" | grep -e "Device Enabled\ (126):\s*1"` | |
| if [ -n "$enabled" ]; then | |
| xinput --set-prop "$DEVICE_NAME" "Device Enabled" 0 | |
| else | |
| xinput --set-prop "$DEVICE_NAME" "Device Enabled" 1 | |
| fi |
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 | |
| GATEWAY=`route | grep default | awk '{print $2}'` | |
| GOOGLE=google.com | |
| GDNS=8.8.8.8 | |
| get_ping_avg() { | |
| ADDRESS=$1 | |
| ping -c 5 -q $ADDRESS | tail -n 1 | awk '{print $4}' | awk -F / '{printf "%.1f", $2}' | |
| } |
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
| WITH document_count AS ( | |
| SELECT -1 as count | |
| ) | |
| SELECT d.*, | |
| f.*, | |
| d.origin_snapshot_id, | |
| dc.count COUNT | |
| FROM ( | |
| SELECT d.* | |
| FROM document_all 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
| with read_acl as ( | |
| select r.id FROM ( | |
| SELECT nx_get_read_acls_for as id FROM nx_get_read_acls_for( | |
| '{members,Allir,tjonamal,vatryggingar,Beini_til_ut,__G_Everything_94baf0db-056b-4d29-b968-f4c7afdb36f2,__G_Everything_6215382d-cc0f-401e-a52e-dc78254641d7, __G_Everything_d0e60f95-457a-47c2-ac9d-36beb0fcff6e,__D_UserProject_4c288ace-9b29-48d7-844d-58365dea1b6e,__G_Everything_4c288ace-9b29-48d7-844d-58365dea1b6e, __G_Everything_6d3d70f0-a097-4d62-8c78-032f8dc38df8,__G_Everything_042c797a-b359-4203-866c-dc42661e5d35,__G_Everything_e2bcd4ff-67b5-4d05-b41b-fe830db170f1, __G_Everything_c386eb9e-4346-4578-9e0f-8f242cf136af,__G_Everything_a1302dc7-fdeb-4f9e-a67a-596a6a2a7e50,__G_Everything_9cd12dbd-b320-4f0a-bdd4-072b114cbcdc, __G_Everything_e6e4859c-5063-4dd3-9164-60e5ea9619df,__D_UserProject_b8b711c0-6162-4b14-a63e-4d9c61efbf84,__G_Everything_b8b711c0-6162-4b14-a63e-4d9c61efbf84, __G_Everything_8e92aed5-5971-416d-b4aa-abd537e16868,__D_UserProject_eebe3f2b-1c96-4b1d-9e1 |
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
| #!/usr/bin/python | |
| import re, subprocess | |
| import string | |
| import argparse | |
| import errno | |
| MEM_VALUE_REGEX_PATTERN = re.compile('(?P<name>.*):\s*(?P<value>\d+).*kB') | |
| PG_SYSTEM_PROCESS_REGEX_PATTERN = re.compile('.*postgres:.*process') | |
| PS_PG_LINE_REGEX_PATTERN = re.compile('[^ ]*\s*(?P<pid>\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
| DEBUG 2014-05-13 09:02:54,962 processor 18803 140166426408704 Processing ids: [] | |
| DEBUG 2014-05-13 09:02:54,963 processor 18803 140166426408704 alias=laika2 | |
| DEBUG 2014-05-13 09:02:54,964 processor 18803 140166426408704 Audit process lock acquired | |
| DEBUG 2014-05-13 09:02:55,064 processor 18802 140166426408704 Processing ids: [] | |
| DEBUG 2014-05-13 09:02:55,065 processor 18802 140166426408704 alias=laika | |
| DEBUG 2014-05-13 09:02:55,066 processor 18802 140166426408704 Audit process lock acquired | |
| DEBUG 2014-05-13 09:02:57,979 processor 18803 140166426408704 Processing ids: [] | |
| DEBUG 2014-05-13 09:02:57,980 processor 18803 140166426408704 alias=laika2 | |
| DEBUG 2014-05-13 09:02:57,981 processor 18803 140166426408704 Audit process lock acquired | |
| DEBUG 2014-05-13 09:02:58,081 processor 18802 140166426408704 Processing ids: [] |
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
| diff --git a/laika/laika/src/main/java/is/gagnavarslan/laika/service/base/blob/BlobServiceImpl.java b/laika/laika/src/main/java/is/gagnavarslan/laika/service/base/blob/BlobServiceImpl.java | |
| index d328775..06529a5 100644 | |
| --- a/laika/laika/src/main/java/is/gagnavarslan/laika/service/base/blob/BlobServiceImpl.java | |
| +++ b/laika/laika/src/main/java/is/gagnavarslan/laika/service/base/blob/BlobServiceImpl.java | |
| @@ -29,6 +29,8 @@ import org.jclouds.ContextBuilder; | |
| import org.jclouds.blobstore.BlobStore; | |
| import org.jclouds.blobstore.BlobStoreContext; | |
| import org.jclouds.logging.slf4j.config.SLF4JLoggingModule; | |
| +import org.slf4j.Logger; | |
| +import org.slf4j.LoggerFactory; |
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 | |
| if [[ $# -eq 0 || ! ($1 =~ ^[0-9]+$) ]] | |
| then | |
| echo "usage: `basename $0` <pid> [psql options]" | |
| exit | |
| fi | |
| PROC_PID=$1 | |
| shift |
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
| #!/usr/bin/python | |
| import re, subprocess | |
| import string | |
| import argparse | |
| import errno | |
| MEM_VALUE_REGEX_PATTERN = re.compile('(?P<name>.*):\s*(?P<value>\d+).*kB') | |
| PG_SYSTEM_PROCESS_REGEX_PATTERN = re.compile('.*postgres:.*process') | |
| PS_PG_LINE_REGEX_PATTERN = re.compile('[^ ]*\s*(?P<pid>\d+).* postgres: [^ ]+ (?P<dbname>[^ ]+) .*') |