Page MenuHomePhabricator
Paste Active Pastes
  • description "Helpmebot"
    author "Simon Walker <simon@stwalkerster.co.uk>"
    start on started network
    stop on stopping network
    ...
    • Aug 22 2016, 5:33 PM
    • 16 Lines
  • <stwalkerster> https://en.wikipedia.org/wiki/Cylon_(Battlestar_Galactica)
    <HMBCounter> Wikipedia | Cylon (Battlestar Galactica) | The Cylons are a cybernetic civilization at war with the Twelve Colonies of humanity in the Battlestar Galactica science fiction franchise, in the original 1978 and 1980 series, the 2004 reimagining, as well as the spin-off prequel series, Caprica. In...
    <stwalkerster> https://en.wikipedia.org/wiki/battlestarwiki:Cylons_(RDM)
    <HMBCounter> Battlestar Wiki | Cylons (RDM)
    <stwalkerster> ?w Broadridge
    ...
    • Aug 20 2016, 10:18 PM
    • 14 Lines
  • diff --git a/pom.xml b/pom.xml
    index 396a31f..48b63fc 100644
    --- a/pom.xml
    +++ b/pom.xml
    @@ -28,6 +28,11 @@
    ...
    • Aug 14 2016, 10:47 PM
    • 64 Lines
    • Diff
  • [18:31:08][stwalkerster@fearow:~]
    bash $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.5 LTS
    ...
    • Aug 8 2016, 6:32 PM
    • 14 Lines
  • declare
    cursor c is
    select table_name
    from user_tables
    where compression <> 'ENABLED';
    ...
    • Aug 4 2016, 10:13 PM
    • 12 Lines
    • SQL
  • 2016-06-18 20:54:40,863 DEBUG Default.NetworkClient.Inbound - :(user) PRIVMSG (channel) :(message)
    Unhandled Exception:
    Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
    at Mono.Security.Protocol.Tls.RecordProtocol.ProcessAlert (AlertLevel alertLevel, AlertDescription alertDesc) [0x00000] in <filename unknown>:0
    ...
    • Jun 18 2016, 9:10 PM
    • 11 Lines
  • // Let's have a class. It's sealed for some reason so we can't extend it.
    public sealed class Foo
    {
    // This class has two properties, but has nothing useful here.
    public int Value1 {get;set;}
    ...
    • Jun 15 2016, 2:55 AM
    • 25 Lines
    • C#
  • var client = new ConduitClient(phabUrl, token);
    var maniphest = new Maniphest(client);
    var task = new ManiphestTask { Title = "Test task", Description = "woo test!" };
    ...
    • May 29 2016, 3:41 AM
    • 11 Lines
    • C#
  • #!/bin/bash -xe
    apt-get install php5-mysql php5-curl php5-apcu php5-gd
    cd /opt/phabricator/phabricator
    ...
    • May 28 2016, 10:21 PM
    • 19 Lines
    • Bash Scripting
  • #!/bin/bash -xe
    ################## update base packages ##################
    # disable cdrom
    ...
    • May 28 2016, 9:07 PM
    • 79 Lines
    • Bash Scripting
  • import os
    from common import marker_definitions
    from observer import JSObserver
    configWorldUnixName = os.environ.get('BUILD_WORLD_UNIX_NAME')
    ...
    • May 12 2016, 10:34 PM
    • 32 Lines
    • Python
  • // We define this function:
    function isHttps()
    {
    if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
    ...
    • May 12 2016, 5:16 PM
    • 44 Lines
    • PHP
  • EXPLAIN
    SELECT page_id, page_namespace, page_title
    FROM page
    LEFT JOIN pagelinks ON pl_namespace = page_namespace AND pl_title = page_title
    LEFT JOIN templatelinks ON tl_namespace = page_namespace AND tl_title = page_title
    ...
    • May 10 2016, 10:11 PM
    • 14 Lines
  • EXPLAIN
    SELECT page_id, page_namespace, page_title
    FROM page
    LEFT JOIN pagelinks ON pl_namespace = page_namespace AND pl_title = page_title
    LEFT JOIN templatelinks ON tl_namespace = page_namespace AND tl_title = page_title
    ...
    • Apr 17 2016, 4:33 PM
    • 11 Lines
    • SQL
  • EXPLAIN
    SELECT page_namespace, page_title
    FROM page
    LEFT JOIN pagelinks ON pl_namespace = page_namespace AND pl_title = page_title
    LEFT JOIN templatelinks ON tl_namespace = page_namespace AND tl_title = page_title
    ...
    • Apr 17 2016, 4:22 PM
    • 9 Lines
    • SQL
  • <?php
    ini_set("user_agent", 'ExampleProject/0.0 (wikimedia@stwalkerster.co.uk)');
    // bomb out early if no username specified
    ...
    • Apr 8 2016, 7:43 PM
    • 22 Lines
    • PHP
  • <?php
    $db = new PDO('mysql:host=localhost;dbname=enwiki_p', 'u2204', '');
    $statement = $db->prepare('select page_id, page_namespace, page_title from enwiki_p.categorylinks
    ...
    • Apr 8 2016, 6:11 PM
    • 38 Lines
    • PHP
  • -- create a temporary table to hold page IDs for results
    create temporary table if NOT EXISTS u2204__testing.pageid ( id int(11) PRIMARY KEY );
    -- enable recursion
    set MAX_SP_RECURSION_DEPTH = 255;
    ...
    • Apr 8 2016, 5:46 PM
    • 57 Lines
    • SQL
  • {{db-spam|help=off}}
    {| class="wikitable sortable"
    |+
    <ref>{{Cite web|url=www.akhbaarwala.com|title=Akhbaarwala|last=Srivastava|first=Priti|date=|website=Akhbaarwala|publisher=Priti Srivastava|access-date=}}</ref>
    ! colspan="2" |[[File:Akhbaarwala.png|thumb|271x271px|Newspaper Distributors]]
    ...
    • Apr 6 2016, 6:07 PM
    • 47 Lines
  • User Count Swap USS PSS RSS
    oident 1 0.00% 0.00% 0.00% 0.02%
    daemon 1 0.00% 0.00% 0.00% 0.02%
    ntp 1 0.01% 0.01% 0.01% 0.04%
    whoopsie 1 0.04% 0.00% 0.01% 0.07%
    ...
    • Mar 21 2016, 7:31 PM
    • 48 Lines
  • # Query 1: 0.00 QPS, 0.00x concurrency, ID 0x4230CEA3DE36DE14 at byte 334559
    # Scores: V/M = 0.32
    # Time range: 2016-03-13 22:10:24 to 2016-03-14 22:35:44
    # Attribute pct total min max avg 95% stddev median
    # ============ === ======= ======= ======= ======= ======= ======= =======
    ...
    • Mar 15 2016, 7:13 PM
    • 46 Lines
  • -ChanServ- 2 werdan7 +ARVefiorstv (SuperOp) (#wikipedia-en-help) [modified 4y 3w 3d ago, on Jan 28 22:07:00 2012]
    -ChanServ- 9 KFP +ARVefiorstv (SuperOp) (#wikipedia-en-help) [modified 4y 6w 2d ago, on Jan 08 23:39:09 2012]
    -ChanServ- 13 Golbez +AViotv (Op) (#wikipedia-en-help) [modified 6y 5w 5d ago, on Jan 12 18:53:30 2010]
    -ChanServ- 14 stwalkerster +ARVefiorstv (SuperOp) (#wikipedia-en-help) [modified 4y 6w 2d ago, on Jan 08 23:39:09 2012]
    -ChanServ- 16 bjelleklang +AViotv (Op) (#wikipedia-en-help) [modified 6y 5w 5d ago, on Jan 12 18:53:30 2010]
    ...
    • Feb 21 2016, 4:58 AM
    • 44 Lines
  • DEBUG Default.NetworkClient.Inbound [(null)] - :ChanServ!ChanServ@services. JOIN ##channelname * :Channel Services
    INFO Default.IrcClient [(null)] - Seen ChanServ!@ join channel ##channelname.
    ERROR Helpmebot.Services.JoinMessageService [(null)] - JoinMessage ratelimiting called with null channel or null hostname!
    • Feb 20 2016, 8:59 PM
    • 3 Lines