Page MenuHomePhabricator
Paste Active Pastes
  • From 45abfe2f5a2960bdf3751c5523ef3fc8f62d9f5b Mon Sep 17 00:00:00 2001
    From: Joshua Spence <josh@freelancer.com>
    Date: Thu, 13 Dec 2018 11:29:39 +1100
    Subject: [PATCH] Temp
    ...
    • Thu, Dec 13, 12:24 AM
    • 23 Lines
    • Diff
  • <?php
    final class PhabricatorRepositoryRewindManagementWorkflow
    extends PhabricatorRepositoryManagementWorkflow {
    ...
    • Nov 1 2018, 12:45 PM
    • 223 Lines
  • extension="apcu.so"
    [PHP]
    ;;;;;;;;;;;;;;;;;;;
    ; About php.ini ;
    ...
    • Aug 17 2018, 8:07 PM
    • 2,031 Lines
  • https://secure.phabricator.com/differential/diff/46823/
    
    ...
    • Aug 15 2018, 5:33 PM
    • 6 Lines
  • <?php
    final class PhageRemoteWorkflow
    extends PhageWorkflow {
    ...
    • Aug 2 2018, 10:20 PM
    • 242 Lines
  • {
    "releases": [
    {
    "version": 1,
    "patch": "phabricator:20160605.user.03.builtinunique.sql",
    ...
    • Jul 20 2018, 11:17 PM
    • 2,738 Lines
  • ~/src/phacility/core/repo/local/9 $ du -hs
    656M .
    ~/src/phacility/core/repo/local/9 $ du -hs
    800M .
    ~/src/phacility/core/repo/local/9 $ du -hs
    ...
    • Jun 25 2018, 4:31 PM
    • 29 Lines
  • ~/src/phacility/core/lib/phabricator ((HEAD detached at 4dc8e2de5)) $ ps aux | grep git
    amckinley 22503 10.7 0.0 4335160 7192 ?? S 1:43PM 2:55.28 /Library/Developer/CommandLineTools/usr/libexec/git-core/git-remote-https origin https://github.com/torvalds/linux.git
    amckinley 23605 4.8 0.0 4334136 7236 ?? S 2:00PM 2:03.66 /Library/Developer/CommandLineTools/usr/libexec/git-core/git-remote-https origin https://github.com/torvalds/linux.git
    amckinley 22507 4.5 3.0 4945176 499152 ?? S 1:44PM 1:29.84 /Library/Developer/CommandLineTools/usr/libexec/git-core/git index-pack --stdin --fix-thin --keep=fetch-pack 22505 on phacility-mbp.local --check-self-contained-and-connected --pack_header=2,6124316
    amckinley 23648 1.9 1.6 4879128 260812 ?? S 2:00PM 1:05.62 /Library/Developer/CommandLineTools/usr/libexec/git-core/git index-pack --stdin --fix-thin --keep=fetch-pack 23640 on phacility-mbp.local --check-self-contained-and-connected --pack_header=2,6124316
    ...
    • Jun 24 2018, 9:47 PM
    • 7 Lines
  • [2018-06-07 12:43:45] EXCEPTION: (AphrontQueryException) #1317: Query execution was interrupted at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:355]
    arcanist(head=master, ref.master=b199ca808660), libcore(), phabricator(head=master, ref.master=b8b2d1672dc3), phutil(head=master, ref.master=20eff1c8d14f), secure(head=master, ref.master=988cf9bd7958), services(head=master, ref.master=3d2895d3949f)
    #0 AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:289]
    #1 AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:185]
    #2 AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:8]
    ...
    • Jun 7 2018, 5:44 PM
    • 14 Lines
  • CREATE TABLE {$NAMESPACE}_support.support_issue_fngrams_common (
    id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    ngram CHAR(3) NOT NULL COLLATE {$COLLATE_TEXT},
    needsCollection BOOL NOT NULL,
    UNIQUE KEY `key_ngram` (ngram),
    ...
    • May 1 2018, 12:27 AM
    • 7 Lines
  • SELECT * FROM `search_namedquery` WHERE (engineClassName IN ('PhabricatorSearchApplicationSearchEngine')) AND (userPHID IN
    ('PHID-USER-3mxbucwvimb364qpvyv3', 'scope.global')) ORDER BY `id` DESC
    • May 1 2018, 12:26 AM
    • 2 Lines
  • ~/src/phacility/phabricator (master) $ ./bin/storage upgrade
    Before running storage upgrades, you should take down the Phabricator web
    interface and stop any running Phabricator daemons (you can disable this
    warning with --force).
    ...
    • May 1 2018, 12:03 AM
    • 56 Lines
  • PHP message: [2018-04-30 17:22:56] EXCEPTION: (PHPExcel_Exception) Invalid cell coordinate [1 at [/opt/PHPExcel/Classes/PHPExcel/Cell.php:594]
    PHP message: arcanist(head=master, ref.master=ad3087e5e151), phabricator(head=master, ref.master=15e6e2adea61), phutil(head=master, ref.master=20eff1c8d14f)
    PHP message: #0 <#2> PHPExcel_Cell::coordinateFromString(string) called at [/opt/PHPExcel/Classes/PHPExcel/Worksheet.php:1218]
    PHP message: #1 <#2> PHPExcel_Worksheet::createNewCell(string) called at [/opt/PHPExcel/Classes/PHPExcel/Worksheet.php:1178]
    PHP message: #2 <#2> PHPExcel_Worksheet::getCell(string) called at [/opt/PHPExcel/Classes/PHPExcel/Worksheet.php:1085]
    ...
    • Apr 30 2018, 6:19 PM
    • 13 Lines
  • [2018-04-19 22:40:01] EXCEPTION: (AphrontQueryException) #1100: Table 'interface' was not locked with LOCK TABLES at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:355]
    arcanist(head=experimental, ref.master=73f5afd44110, ref.experimental=925c60e7b837), corgi(head=master, ref.master=6371578c9d32), instances(head=metric-worker, ref.master=6782155a425a, ref.metric-worker=c1a7d26c12a7), libcore(), phabricator(head=unique-interface, ref.master=0a83f253ed03, ref.unique-interface=80d5258c2fdc), phutil(head=master, ref.master=20eff1c8d14f), services(head=master, ref.master=31dc1ff46b0b)
    #0 AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:289]
    #1 AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:185]
    #2 AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:8]
    ...
    • Apr 19 2018, 10:47 PM
    • 23 Lines
  • perl -pe 's/[\x00-\x7f]+//g' filename.bundle.min.js| perl -C7 -ne 'for(split(//)){print sprintf("U+%04X", ord)." ".$_."\n"}'
    U+FFFD �
    U+00E7 ç
    U+00F6 ö
    U+00FC ü
    ...
    • Apr 17 2018, 9:51 PM
    • 621 Lines
  • <?php
    final class InstancesBootstrapWorkflow extends InstancesWorkflow {
    protected function didConstruct() {
    ...
    • Apr 17 2018, 8:56 PM
    • 148 Lines
  • ~/src/phacility/phabricator (master) $ arc diff
    Linting...
    OKAY No lint messages.
    LINT OKAY No lint problems.
    Running unit tests...
    ...
    • Apr 13 2018, 6:29 PM
    • 8 Lines
  • > POST /doc/2010-08-01/?Version=2010-08-01&Namespace=Phacility&Action=PutMetricData&MetricData.member.1.MetricName=foobar&MetricData.member.1.Value=42&MetricData.member.1.Dimensions.member.1.Name=InstanceID&MetricData.member.1.Dimensions.member.1.Value=i-fcf6823c&MetricData.member.2.MetricName=bangbaz&MetricData.member.2.Value=101&MetricData.member.2.Dimensions.member.1.Name=InstanceID&MetricData.member.2.Dimensions.member.1.Value=i-fcf6823c&MetricData.member.2.Dimensions.member.2.Name=InstanceType&MetricData.member.2.Dimensions.member.2.Value=m3.large HTTP/1.1
    Host: monitoring.us-west-1.amazonaws.com
    Accept: */*
    X-Amz-Date: 20180412T224449Z
    Authorization: AWS4-HMAC-SHA256 Credential=AKIAITTBCMVG5IUSW3NQ/20180412/us-west-1/cloudwatch/aws4_request,SignedHeaders=host;x-amz-date,Signature=f7809dc8218f7423adc6143c1477b1ed7b1c4cc3b62bc3dfe34670e5833e7e81
    ...
    • Apr 12 2018, 10:45 PM
    • 36 Lines
  • debug1: Sending command: sudo -E -n -u ubuntu -- /core/bin/bastion ssh --host aux001.phacility.com -- 'touch ~/foo'
    debug2: channel 0: request exec confirm 1
    debug3: send packet: type 98
    debug2: channel_input_open_confirmation: channel 0: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    ...
    • Apr 11 2018, 11:25 PM
    • 44 Lines
  • ~/src/phacility/core (master) $ ./bin/remote --trace deploy aux001.phacility.com
    Deploying host aux001.phacility.com (with role aux).
    >>> [0] <exec> $ ssh -t -q -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' bastion-external.phacility.net -- 'sudo -E -n -u ubuntu -- /core/bin/bastion ssh --host aux001.phacility.com -- '\''cat '\''\'\'''\''/core/conf/device.id'\''\'\'''\'''\'''
    <<< [0] <exec> 1,166,734 us
    >>> [1] <exec> $ ssh -t -q -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' bastion-external.phacility.net -- 'sudo -E -n -u ubuntu -- /core/bin/bastion ssh --host aux001.phacility.com -- '\''sudo -En -- add-apt-repository -y -- '\''\'\'''\''ppa:git-core/ppa'\''\'\'''\'''\'''
    ...
    • Apr 11 2018, 11:20 PM
    • 12 Lines
  • {
    "agent": {
    "metrics_collection_interval": 10,
    "region": "us-west-1",
    "logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
    ...
    • Apr 11 2018, 8:45 PM
    • 77 Lines
  • /**
    * @phutil-external-symbol class PhabricatorEnv
    **/
    protected function newConduitClient() {
    $key_path = $this->getPath('conf/keystore/client.key');
    ...
    • Apr 11 2018, 7:04 PM
    • 24 Lines
  • ~/src/phacility/core (master) $ ./bin/host download --file F5518806 --save-as ./foo
    [2018-04-11 17:53:50] EXCEPTION: (PhutilMissingSymbolException) Failed to load class or interface 'PhabricatorEnv': the class or interface 'PhabricatorEnv' is not defined in the library map for any loaded phutil library.
    If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded `phabricator` without upgrading `libphutil`, or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted.
    ...
    • Apr 11 2018, 6:04 PM
    • 17 Lines
  • P2088 nuker.php
    <?php
    require_once '/usr/local/phab/phabricator/scripts/__init_script__.php';
    $phids = file_get_contents('php://stdin');
    ...
    • Apr 6 2018, 12:03 AM
    • 69 Lines
  • diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php
    index 8206b787..ef01fda4 100644
    --- a/src/unit/engine/PhpunitTestEngine.php
    +++ b/src/unit/engine/PhpunitTestEngine.php
    @@ -52,7 +52,7 @@ final class PhpunitTestEngine extends ArcanistUnitTestEngine {
    ...
    • Feb 1 2018, 10:58 AM
    • 196 Lines
  • <?php
    /**
    * This storage engine is similar to @{class:PhabricatorS3FileStorageEngine},
    * but supports the use of
    ...
    • Dec 28 2017, 2:09 AM
    • 188 Lines
    • PHP
  • <?php
    /**
    * This mail adapter is similar to
    * @{class:PhabricatorMailImplementationAmazonSESAdapter}, but supports the use
    ...
    • Dec 28 2017, 2:08 AM
    • 63 Lines
    • PHP
  • <?php
    /**
    * Drop in /extensions/ to quickly switch user accounts. For dev only!
    */
    ...
    • Dec 7 2017, 1:56 PM
    • 84 Lines
  • <?php
    /**
    * Dump this in /src/extensions, and get a "Copy PHID to clipboard" action on every page.
    */
    ...
    • Dec 7 2017, 12:47 PM
    • 42 Lines
  • diff --git a/src/unit/ArcanistUnitTestResult.php b/src/unit/ArcanistUnitTestResult.php
    index ec25c20f..9a5f6d78 100644
    --- a/src/unit/ArcanistUnitTestResult.php
    +++ b/src/unit/ArcanistUnitTestResult.php
    @@ -174,6 +174,13 @@ final class ArcanistUnitTestResult extends Phobject {
    ...
    • Nov 6 2017, 12:37 PM
    • 30 Lines
  • ~/official6% ../phab-repos/arcanist/bin/arc diff --trace
    ARGV '/home/mruuska/phab-repos/arcanist/bin/../scripts/arcanist.php' 'diff' '--trace'
    LOAD Loaded "phutil" from "/home/mruuska/phab-repos/libphutil/src".
    LOAD Loaded "arcanist" from "/home/mruuska/phab-repos/arcanist/src".
    Config: Reading user configuration file "/home/mruuska/.arcrc"...
    ...
    • Oct 16 2017, 3:51 PM
    • 130 Lines
  • <select name="timezone"><optgroup label="Default"><option value="">Default (UTC)</option></optgroup><optgroup label="UTC-11"><option value="Pacific/Midway">Pacific/Midway</option><option value="Pacific/Niue">Pacific/Niue</option><option value="Pacific/Pago_Pago">Pacific/Pago_Pago</option></optgroup><optgroup label="UTC-10"><option value="Pacific/Honolulu">Pacific/Honolulu</option><option value="Pacific/Johnston">Pacific/Johnston</option><option value="Pacific/Rarotonga">Pacific/Rarotonga</option><option value="Pacific/Tahiti">Pacific/Tahiti</option></optgroup><optgroup label="UTC-9"><option value="America/Adak">America/Adak</option><option value="Pacific/Gambier">Pacific/Gambier</option><option value="Pacific/Marquesas">Pacific/Marquesas</option></optgroup><optgroup label="UTC-8"><option value="America/Anchorage">America/Anchorage</option><option value="America/Juneau">America/Juneau</option><option value="America/Metlakatla">America/Metlakatla</option><option value="America/Nome">America/Nome</option><option ...
    • Oct 4 2017, 10:02 AM
    • 1 Line
    • HTML
  • phabricator@us-west-tails-02:/phab_path/phabricator$ bin/search index T173111 --trace --force
    >>> [2] <connect> phabricator_maniphest
    <<< [2] <connect> 1,322 us
    >>> [3] <query> SELECT `task`.*, 0 _ft_rank FROM `maniphest_task` task WHERE (task.id in (173111)) ORDER BY `task`.`id` DESC
    <<< [3] <query> 4,904 us
    ...
    • Sep 26 2017, 2:10 AM
    • 100 Lines
  • diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
    index 569a906..64490e7 100644
    --- a/src/__phutil_library_map__.php
    +++ b/src/__phutil_library_map__.php
    @@ -48,6 +48,8 @@ phutil_register_library_map(array(
    ...
    • Sep 14 2017, 10:17 PM
    • 144 Lines
  • diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
    index 569a906..64490e7 100644
    --- a/src/__phutil_library_map__.php
    +++ b/src/__phutil_library_map__.php
    @@ -48,6 +48,8 @@ phutil_register_library_map(array(
    ...
    • Sep 14 2017, 10:13 PM
    • 22 Lines
  • ~/src/phacility/arcanist (T12981) $ arc unit
    PASS 375ms ArcanistLibraryTestCase::testEverythingImplemented
    PASS 496ms ArcanistLibraryTestCase::testLibraryMap
    PASS 1.8s ArcanistLibraryTestCase::testMethodVisibility
    Exception
    ...
    • Sep 14 2017, 6:23 PM
    • 8 Lines
  • ~/src/phacility/arcanist (T12981) $ arc lint
    >>> Lint for src/lint/linter/xhpast/rules/ArcanistLongNameXHPASTLinterRule.php:
    Warning (TXT3) Line Too Long
    ...
    • Sep 14 2017, 6:19 PM
    • 18 Lines
  • ~/src/phacility/core (cloudformation) $ ssh ubuntu@ec2-52-53-74-79.us-west-1.compute.amazonaws.com
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    ...
    • Sep 8 2017, 4:35 PM
    • 22 Lines
  • #!/bin/bash
    confirm() {
    echo "Press RETURN to continue, or ^C to cancel.";
    read -e ignored
    ...
    • Aug 13 2017, 12:30 AM
    • 112 Lines
  • #!/bin/bash
    confirm() {
    echo "Press RETURN to continue...";
    read -e ignored
    ...
    • Aug 12 2017, 9:05 PM
    • 382 Lines
  • P2067 legaldb
    mysql> select phid, version, dateCreated, dateModified from legalpad_documentbody;
    +--------------------------------+---------+-------------+--------------+
    | phid | version | dateCreated | dateModified |
    +--------------------------------+---------+-------------+--------------+
    | PHID-LEGB-2vfojxquxkyifhzw5pcw | 1 | 1493130321 | 1493130321 |
    ...
    • Jul 20 2017, 11:08 PM
    • 42 Lines
  • (subnetter) ~/src/cloudformation $ python subnetter.py
    us-east-1a.admin-1: 10.0.0.0 => 10.0.0.255 (10.0.0.0/24)
    us-east-1b.admin-2: 10.0.1.0 => 10.0.1.255 (10.0.1.0/24)
    us-east-1.customer-foo: 10.0.2.0 => 10.0.2.63 (10.0.2.0/26)
    ...
    • Jul 14 2017, 7:59 PM
    • 11 Lines
  • from ipaddr import IPv4Network, collapse_address_list
    def compute_layout():
    net = IPv4Network("10.0.0.0/16")
    all_26s = list(net.iter_subnets(new_prefix=26))
    ...
    • Jul 14 2017, 7:58 PM
    • 81 Lines
  • # private subnet
    resource "aws_subnet" "example-customer-private-1a" {
    vpc_id = "${aws_vpc.private-cluster.id}"
    cidr_block = "172.32.3.0/24"
    ...
    • Jun 30 2017, 3:53 PM
    • 121 Lines
  • P2063 shared.tf
    # create the apc
    resource "aws_vpc" "private-cluster" {
    cidr_block = "172.32.0.0/16"
    tags {
    ...
    • Jun 30 2017, 3:53 PM
    • 94 Lines
  • diff --git a/.gitignore b/.gitignore
    old mode 100644
    new mode 100755
    diff --git a/.gitreview b/.gitreview
    old mode 100644
    ...
    • Jun 29 2017, 11:58 PM
    • 395 Lines
    • Javascript
  • diff --git a/.gitignore b/.gitignore
    old mode 100644
    new mode 100755
    diff --git a/.gitreview b/.gitreview
    old mode 100644
    ...
    • Jun 21 2017, 11:06 PM
    • 376 Lines
    • Javascript
  • USE phabricator_search;
    SELECT documentPHID, MAX(fieldScore) AS documentScore FROM (SELECT document.phid AS documentPHID, IF(field.field = 'titl', 1024, 0) + MATCH(corpus, stemmedCorpus) AGAINST ('\"http\"' IN BOOLEAN MODE) AS fieldScore FROM `search_document` document JOIN `search_documentfield` field ON field.phid = document.phid JOIN `search_documentrelationship` AS `authorPHIDs` ON `authorPHIDs`.phid = document.phid AND `authorPHIDs`.relation = 'auth' AND `authorPHIDs`.relatedPHID in ('PHID-USER-ba8aeea1b3fe2853d6bb') JOIN `search_documentrelationship` AS `statuses` ON `statuses`.phid = document.phid AND `statuses`.relation = 'open' WHERE MATCH(corpus, stemmedCorpus) AGAINST ('\"http\"' IN BOOLEAN MODE) AND field.phidType IN ('DREV') AND document.documentType IN ('DREV') LIMIT 1000) query JOIN `search_document` root ON query.documentPHID = root.phid GROUP BY documentPHID ORDER BY documentScore DESC LIMIT 0, 100;
    • Jun 9 2017, 10:52 PM
    • 3 Lines
  • LDAP Hostname: ldaps://domain.example.com
    LDAP Port: 636
    Base DN: dc=domain,dc=example,dc=com
    Search Attributes: userPrincipalName (also tried sn, uid, and cn)
    Anonymous Username/Password: blank
    ...
    • Jun 9 2017, 3:54 AM
    • 8 Lines
    • Plain Text
  • Daemon 77767 STDE [Thu, 08 Jun 2017 16:17:59 +0300] [2017-06-08 16:17:58] EXCEPTION: (PhutilProxyException) Task "2170137" encountered a permanent failure and was cancelled. {>} (PhabricatorWorkerPermanentFailureException) Unable to load mail message (with ID "82674") while preparing to deliver it. at [<phabricator>/src/applications/metamta/PhabricatorMetaMTAWorker.php:38]
    Daemon 77767 STDE [Thu, 08 Jun 2017 16:17:59 +0300] arcanist(head=experimental, ref.master=129d51fa0936, ref.experimental=dc65bfbe5434), corgi(head=master, ref.master=47559c2f3db1), instances(head=move1, ref.master=776ec695ac60, ref.move1=b210213eb42b), ledger(head=master, ref.master=4da4a24b8779), libcore(), phabricator(head=utf81, ref.master=c3f905af6c7e, ref.utf81=a0c615b9c747, custom=1), phutil(head=stable, ref.master=74a1350416eb, ref.stable=13662252b754), secure(head=master, ref.master=56aa37f74c65), services(head=move1, ref.master=490e2a8b0429, ref.move1=b28e0bea1aa6)
    Daemon 77767 STDE [Thu, 08 Jun 2017 16:17:59 +0300] #0 <#3> PhabricatorMetaMTAWorker::loadMessage() called at [<phabricator>/src/applications/metamta/PhabricatorMetaMTAWorker.php:15]
    Daemon 77767 STDE [Thu, 08 Jun 2017 16:17:59 +0300] #1 <#3> PhabricatorMetaMTAWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:123]
    Daemon 77767 STDE [Thu, 08 Jun 2017 16:17:59 +0300] #2 <#3> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
    ...
    • Jun 8 2017, 1:19 PM
    • 9 Lines
  • diff --git a/src/console/view/PhutilConsoleTable.php b/src/console/view/PhutilConsoleTable.php
    index 7c29f99..d19141d 100644
    --- a/src/console/view/PhutilConsoleTable.php
    +++ b/src/console/view/PhutilConsoleTable.php
    @@ -30,6 +30,7 @@ final class PhutilConsoleTable extends PhutilConsoleView {
    ...
    • Jun 1 2017, 3:35 AM
    • 63 Lines
  • <?php
    require_once 'libphutil/src/__phutil_library_init__.php';
    $DUMP_DIRECTORY = "wiki-cron/dump/"; // tracadmin dump
    ...
    • May 29 2017, 8:59 AM
    • 116 Lines
    • PHP
  • <?php
    $viewer = PhabricatorUser::getOmnipotentUser();
    ...
    • May 28 2017, 10:51 PM
    • 84 Lines
    • PHP
  • <<< [16] <exec> 355,303,527 us
    >>> [17] <conduit> differential.parsecommitmessage() <bytes = 448>
    >>> [18] <http> http://phabricator/api/differential.parsecommitmessage
    <<< [18] <http> 268,027 us
    ...
    • May 22 2017, 2:02 PM
    • 82 Lines
  • mysql> select tasks_in_subpri_bucket, priority, subpri_bucket from (select count(*) as tasks_in_subpri_bucket, priority, round(subpriority, 2) as subpri_bucket from maniphest_task group by priority, subpri_bucket order by priority, subpri_bucket) as q where tasks_in_subpri_bucket > 1;
    +------------------------+----------+------------------+
    | tasks_in_subpri_bucket | priority | subpri_bucket |
    +------------------------+----------+------------------+
    | 14 | 0 | -0.06 |
    ...
    • May 19 2017, 2:56 AM
    • 170 Lines
  • diff --git a/src/applications/project/controller/PhabricatorProjectEditPictureController.php b/src/applications/project/controller/PhabricatorProjectEditPictureController.php
    index 9d0c16efb..21930a718 100644
    --- a/src/applications/project/controller/PhabricatorProjectEditPictureController.php
    +++ b/src/applications/project/controller/PhabricatorProjectEditPictureController.php
    @@ -80,7 +80,8 @@ final class PhabricatorProjectEditPictureController
    ...
    • May 18 2017, 9:19 PM
    • 14 Lines
  • [Thu May 18 11:48:56.066035 2017] [:error] [pid 4437] [client 192.168.86.162:61117] [2017-05-18 11:48:56] ERROR 2: Invalid argument supplied for foreach() at [/home/apache/Phabricator/phabricator/src/applications/differential/editor/DifferentialTransactionEditor.php:1710]
    [Thu May 18 11:48:56.066934 2017] [:error] [pid 4437] [client 192.168.86.162:61117] arcanist(head=master, ref.master=3c4735795a29), phabricator(head=master, ref.master=ef839192aa5a), phutil(head=master, ref.master=a900d7b63e95)
    [Thu May 18 11:48:56.066953 2017] [:error] [pid 4437] [client 192.168.86.162:61117] #0 DifferentialTransactionEditor::updateRevisionHashTable(DifferentialRevision, DifferentialDiff) called at [<phabricator>/src/applications/differential/editor/DifferentialTransactionEditor.php:638]
    [Thu May 18 11:48:56.066957 2017] [:error] [pid 4437] [client 192.168.86.162:61117] #1 DifferentialTransactionEditor::applyFinalEffects(DifferentialRevision, array) called at [<phabricator>/src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php:1008]
    [Thu May 18 11:48:56.066961 2017] [:error] [pid 4437] [client 192.168.86.162:61117] #2 PhabricatorApplicationTransactionEditor::applyTransactions(DifferentialRevision, array) called at [<phabricator>/src/applications/transactions/editengine/PhabricatorEditEngine.php:2060]
    ...
    • May 18 2017, 10:03 AM
    • 23 Lines
  • # cat /etc/hhvm/config.hdf
    Server {
    WarmupRequests {
    * = /mnt/hhvm_warmup/search-search_new.php.hbf
    }
    ...
    • May 12 2017, 1:35 AM
    • 29 Lines
  • import re
    def enforce_commitmsg(ui, repo, hooktype, node=None, source=None, parent1=None, parent2=None, *args, **kwargs):
    cmt = repo[node]
    msg = cmt.description()
    ...
    • May 5 2017, 2:36 PM
    • 23 Lines
    • Python
  • <?php
    final class DifferentialSetBaseCommitConduitAPIMethod
    extends DifferentialConduitAPIMethod {
    ...
    • May 4 2017, 7:59 PM
    • 61 Lines
    • PHP
  • diff --git a/src/parser/xhpast/__tests__/PHPASTParserTestCase.php b/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
    index 5a77464..9141c2b 100644
    --- a/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
    +++ b/src/parser/xhpast/__tests__/PHPASTParserTestCase.php
    @@ -130,16 +130,6 @@ final class PHPASTParserTestCase extends PhutilTestCase {
    ...
    • May 4 2017, 2:14 PM
    • 129 Lines
    • Diff
  • # Virtual Hosts
    #
    # Required modules: mod_log_config
    # If you want to maintain multiple domains/hostnames on your
    ...
    • Apr 27 2017, 5:07 PM
    • 22 Lines
  • #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
    # In particular, see
    ...
    • Apr 27 2017, 5:05 PM
    • 532 Lines
  • [Tue Apr 25 11:24:41.879197 2017] [core:notice] [pid 28049] AH00052: child pid 74754 exit signal Segmentation fault (11)
    [Tue Apr 25 11:25:55.037450 2017] [core:warn] [pid 28049] AH00045: child process 74751 still did not exit, sending a SIGTERM
    [Tue Apr 25 11:25:55.038653 2017] [core:warn] [pid 28049] AH00045: child process 74752 still did not exit, sending a SIGTERM
    ...
    • Apr 25 2017, 6:26 PM
    • 67 Lines
  • ```
    Austins-MacBook-Pro:arcanist amckinley$ arc diff
    Linting...
    LINT OKAY No lint problems.
    Running unit tests...
    ...
    • Apr 24 2017, 11:17 PM
    • 127 Lines
  • src/workflow/ArcanistDiffWorkflow.php:966- throw new Exception(pht('Repository API is not supported.'));
    src/workflow/ArcanistDiffWorkflow.php:967- }
    src/workflow/ArcanistDiffWorkflow.php:968-
    src/workflow/ArcanistDiffWorkflow.php:969- if (count($changes) > 250) {
    src/workflow/ArcanistDiffWorkflow.php:970- $message = pht(
    ...
    • Apr 19 2017, 5:54 AM
    • 36 Lines
  • [amckinley phabricator]$ php '/Users/amckinley/Sites/phacility/core/lib/phabricator/scripts/sql/manage_storage.php' upgrade --force --namespace 'phabricator_unittest_e7r3njkcfmb3hxq2bm6sorvz'
    Storage is up to date. Use "storage status" for details.
    Synchronizing static tables...
    Verifying database schemata on "localhost"...
    Found no adjustments for schemata.
    ...
    • Apr 18 2017, 5:20 PM
    • 20 Lines
  • PUSH STAGING Pushing changes to staging area...
    # Push received by "secure003.phacility.net", forwarding to cluster host.
    # Waiting up to 120 second(s) for a cluster write lock...
    # Acquired write lock immediately.
    # Waiting up to 120 second(s) for a cluster read lock on "secure002.phacility.net"...
    ...
    • Apr 18 2017, 12:30 AM
    • 21 Lines
  • [amckinley phabricator]$ echo '{"objectIdentifier": "PHID-CDWN-nqqj6rv6iyaq5s4nt3z3", "transactions": [{"type": "name", "value": "Assemble in the barnyard"}]}' | arc call-conduit --conduit-uri http://local.phacility.com/ --conduit-token <snip> countdown.edit | json_pp
    {
    "response" : {
    "object" : {
    "id" : "7",
    ...
    • Apr 13 2017, 7:16 PM
    • 12 Lines
  • [amckinley phabricator]$ echo '{"queryKey": "upcoming"}' | arc call-conduit --conduit-uri http://local.phacility.com/ --conduit-token <snip> countdown.search | json_pp
    {
    "error" : null,
    "errorMessage" : null,
    "response" : {
    ...
    • Apr 13 2017, 7:02 PM
    • 37 Lines
  • [amckinley core]$ phage remote deploy --hosts secure001-4 --limit 1
    [secure001] Deploying host secure001.phacility.net (with role secure, using key deploy.key).
    [secure001] gpg: keyring `/tmp/tmpi1_n8aki/secring.gpg' created
    [secure001] gpg: keyring `/tmp/tmpi1_n8aki/pubring.gpg' created
    [secure001] gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com
    ...
    • Apr 12 2017, 6:31 PM
    • 100 Lines
  • diff --git a/README b/README
    --- a/README
    +++ b/README
    @@ -66,8 +66,8 @@
    ...
    • Mar 26 2017, 8:19 PM
    • 15 Lines
    • Diff
  • # Create a raw diff in Phabricator
    post_data = {
    'api.token': phab_api_token,
    'diff': diff,
    ...
    • Mar 24 2017, 2:11 PM
    • 35 Lines
    • Python
  • diff --git a/src/applications/differential/storage/DifferentialDiff.php b/src/applications/differential/storage/DifferentialDiff.php
    index 415c46bb27..1814355cfd 100644
    --- a/src/applications/differential/storage/DifferentialDiff.php
    +++ b/src/applications/differential/storage/DifferentialDiff.php
    @@ -313,6 +313,38 @@ final class DifferentialDiff
    ...
    • Feb 13 2017, 4:24 PM
    • 43 Lines
  • ```
    lines=2
    foobar1
    foobar2
    foobar3
    ...
    • Jan 3 2017, 3:18 PM
    • 21 Lines
  • javascript:(function () {
    var phabricatorURL = 'http://your.phabricator.url';
    var templateSlug = encodeURIComponent('"slug/for/template/"');
    var tokenURL = phabricatorURL + '/login/refresh/';
    var tokenXhr = new XMLHttpRequest();
    ...
    • Dec 22 2016, 2:28 PM
    • 64 Lines
    • Javascript
  • <VERB> PhabricatorTaskmasterDaemon Working on task 35362582 (PhabricatorApplicationTransactionPublishWorker)...
    object(PhabricatorMetaMTAMail)#421 (14) {
    ["actorPHID":protected"]=>
    string(30) "..."
    ["parameters":protected]=>
    ...
    • Dec 21 2016, 3:27 AM
    • 96 Lines
  • Had to do a little freehand scribbling to remove some company stuff and extra distracting functionality, but I'm pretty sure this will still work. Execute the code thus:
    $ php email2uer.php jdoe
    It should just come back with something like:
    johndoe@yourcompany.com
    (or warn you that this user id isn't in the Phabricator SQL database...)
    ...
    • Dec 13 2016, 3:28 AM
    • 38 Lines
  • As of Apache 2.4.5, `mod_proxy_wstunnel` is available, which (of course) requires `mod_proxy`: https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html
    This module is part of recent Debian/Ubuntu packages, so you should be able to just `a2enmod proxy_wstunnel && systemctl restart apache2` before continuing. For other platforms, use whatever magic you normally would use to check if a module is available and enabled.
    Your Apache configuration should already have this:
    ...
    • Dec 12 2016, 3:40 AM
    • 22 Lines
    • Remarkup
  • server {
    listen [::]:80;
    server_name src.example.com src-files.example.com;
    location / {
    ...
    • Dec 11 2016, 8:55 PM
    • 52 Lines
    • Nginx Configuration
  • (Skim the Notes at the bottom before starting.)
    === Prerequisites & Assumptions ===
    * You want secure transport
    ...
    • Dec 11 2016, 5:50 AM
    • 85 Lines
    • Remarkup
  • <?php
    final class ShowRepositoryInRevisionList
    extends DifferentialCustomField {
    ...
    • Dec 7 2016, 12:45 AM
    • 28 Lines
  • P2021 dasffas
    asdfasfasfsaf
    • Dec 5 2016, 6:02 PM
    • 1 Line
  • ################################################################################
    #
    # Track repository in Phabricator
    #
    ################################################################################
    ...
    • Nov 29 2016, 5:30 PM
    • 74 Lines
    • Bash Scripting
  • <?php
    /*
    This does 2 things:
    - Adds a label to the JIRA ticket with the repository name
    ...
    • Nov 24 2016, 1:19 AM
    • 238 Lines
  • I have a lots of mail in queued,now i fixed it but i dont want sent them cause the amount is too large,what should i do to kill these in queued mails?
    • Nov 21 2016, 12:52 PM
    • 1 Line
  • <?php
    /**
    * Keeps files on local disk, but sudo-s as the daemon user for it.
    *
    ...
    • Nov 10 2016, 10:42 PM
    • 179 Lines
  • // File is: ./src/applications/project/controller/PhabricatorProjectBoardViewController.php
    // line above is: $panel->setHeaderTag($count_tag);
    // Doing what PhabricatorProjectBoardViewController::getCreateURI() used to do before 6f7bb8c removed it
    ...
    • Oct 28 2016, 12:27 PM
    • 34 Lines
    • PHP
  • <?php
    final class ConpherenceThreadSearchController
    extends ConpherenceController {
    ...
    • Oct 15 2016, 4:21 AM
    • 44 Lines
  • epriestley@orbital ~/dev/libphutil $ cat .arcconfig
    {
    "phabricator.uri": "https://secure.phabricator.com/",
    "aliases": {
    "duck-sound": [
    ...
    • Oct 14 2016, 1:49 AM
    • 11 Lines
  • <?php
    /**
    * This is just a thin layer on top of the regular Form patern, which mostly
    * saves a bit of boilerplate.
    ...
    • Sep 21 2016, 7:41 PM
    • 279 Lines
    • PHP
  • <?php
    final class AddSubscribersFromJIRAIssuesHeraldCustomAction
    extends HeraldAction {
    ...
    • Jul 14 2016, 11:51 PM
    • 128 Lines
  • #! /usr/bin/env python2
    # Produces a table of filenames x commits, showing where a file was touched.
    # Useful for rebasing feature branch into reasonable commits.
    # usage:
    ...
    • Jul 7 2016, 6:08 PM
    • 54 Lines
  • #!/usr/bin/env php
    <?php
    require_once 'scripts/__init_script__.php';
    ...
    • Jul 1 2016, 12:47 PM
    • 391 Lines
  • <?php
    final class GetDependenciesWorkflow extends ArcanistWorkflow {
    public function getWorkflowName() {
    return 'get-dependencies';
    ...
    • Jun 15 2016, 11:52 PM
    • 50 Lines
  • diff --git a/src/parser/__tests__/PhutilPygmentizeParserTestCase.php b/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
    index 81144f6..7c512a0 100644
    --- a/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
    +++ b/src/parser/__tests__/PhutilPygmentizeParserTestCase.php
    @@ -30,6 +30,14 @@ final class PhutilPygmentizeParserTestCase extends PhutilTestCase {
    ...
    • Jun 2 2016, 5:23 PM
    • 19 Lines
  • f735050 2016-01-02 (HEAD, origin/master, origin/HEAD, master) Merge branch 'master' of https://github.com/phacility/phabricator [root]
    b856fb7 2015-12-28 Merge branch 'master' of https://github.com/phacility/phabricator [Christopher Johnson]
    d7d819f 2015-12-10 Merge branch 'master' of https://github.com/phacility/phabricator [Christopher Johnson]
    265e84b 2015-12-05 Merge branch 'master' of https://github.com/phacility/phabricator [Christopher Johnson]
    3fe60eb 2015-12-02 Merge branch 'master' of https://github.com/phacility/phabricator [Christopher Johnson]
    ...
    • Apr 25 2016, 6:48 PM
    • 52 Lines
  • <?php
    final class PhabricatorSpanishSpanishTranslation
    extends PhutilTranslation {
    ...
    • Apr 14 2016, 10:43 PM
    • 1,566 Lines
  • #!/usr/bin/env php
    <?php
    $root = dirname(dirname(dirname(__FILE__)));
    $phab = dirname($root).'/phabricator';
    ...
    • Mar 30 2016, 11:41 PM
    • 238 Lines
  • root@phabricator:/home/phabricator/phabricator# git status
    On branch master
    Your branch is behind 'origin/master' by 116 commits, and can be fast-forwarded.
    (use "git pull" to update your local branch)
    ...
    • Mar 10 2016, 2:07 AM
    • 119 Lines