/mouse enable
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
select reltuples, relpages, pg_relation_size(oid),oid::regclass | |
from pg_class | |
where reltuples=0 and relpages > 0 and relkind = 'r' |
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
[45780972.168136] sd 0:2:2:0: [sdc] Unhandled sense code | |
[45780972.168209] sd 0:2:2:0: [sdc] | |
[45780972.168271] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE | |
[45780972.168337] sd 0:2:2:0: [sdc] | |
[45780972.168399] Sense Key : Medium Error [current] | |
[45780972.168553] sd 0:2:2:0: [sdc] | |
[45780972.168615] Add. Sense: Unrecovered read error | |
[45780972.168724] sd 0:2:2:0: [sdc] CDB: | |
[45780972.168787] Read(10): 28 00 58 ac 97 70 00 00 08 00 | |
[45780972.169387] end_request: critical medium error, dev sdc, sector 1487705968 |
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
[Unit] | |
Description=Vrack Connectivity | |
Wants=network.target | |
Before=network.target | |
BindsTo=sys-subsystem-net-devices-eth1.device | |
After=sys-subsystem-net-devices-eth1.device | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes |
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
-- list index not in tablespace | |
SELECT i.relname as indname, | |
i.relowner as indowner, | |
idx.indrelid::regclass, | |
am.amname as indam, | |
idx.indkey, | |
pg_tablespace.spcname, | |
ARRAY( | |
SELECT pg_get_indexdef(idx.indexrelid, k + 1, true) | |
FROM generate_subscripts(idx.indkey, 1) as k |
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
# -*- coding: utf8 -*- | |
from django.core.management.base import BaseCommand | |
from django.db import connection | |
from django.core import mail | |
import logging | |
logger = logging.getLogger(__name__) | |
class Command(BaseCommand): | |
args = '' |
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 pg_ctlcluster 9.4 main stop | |
sudo cp /datas/postgresl/9.4/main/pg_xlog/* /xlog/9.4/ | |
sudo chown -R postgres:postgres /xlog/9.4/ | |
sudo mv /datas/postgresl/9.4/main/pg_xlog/ /datas/postgresl/9.4/main/pg_xlog_old/ | |
sudo ln -s /xlog/9.4/ /datas/postgresl/9.4/main/pg_xlog | |
sudo chown -R /xlog/9.4/ | |
sudo pg_ctlcluster 9.4 main start |
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
Aide | |
Aide de Seller Central: Gestion de mon stock: Références: Explication des codes d'erreur: Error Code Series 13000: Erreur 13013 | |
Erreur 13013 | |
This SKU does not exist in your Amazon inventory so we could not process this record. Pour corriger cette erreur dans les fichiers futurs, ajoutez ce SKU à votre compte Amazon. |
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
from PyPDF2 import PdfFileWriter,PdfFileReader | |
pdf1=PdfFileReader(open("C:/Users/andy/Documents/temp.pdf")) | |
pdf2=PdfFileReader(open("C:/Users/andy/Documents/temp.pdf")) | |
writer = PdfFileWriter() | |
# add the page to itself | |
for i in range(0,pdf1.getNumPages()): | |
writer.addPage(pdf1.getPage(i)) | |
NewerOlder