Skip to content

Instantly share code, notes, and snippets.

@indolering
indolering / terminal history
Created November 1, 2013 05:49
Various Apache 2 settings I've check to solve an 'ssl_error_rx_record_too_long error'
<IfModule mod_ssl.c>
<VirtualHost 46.149.28.113:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/secure.speech.is
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
@indolering
indolering / 15-secures.speech.is
Created November 1, 2013 23:12
Virtual host config
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/secure.speech.is
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/secure.speech.is>
/*
* Collapsible JSON Formatter - Formatter and colorer of raw JSON code
*
* jQuery Json Formatter plugin v0.1.3
*
* Usage
* -----
*
* $('#target').jsonFormat('#source'); // or
* $('#target').jsonFormat('#source', {options override defaults}); // see jf.config
➜ src git:(master) make -f makefile.unix namecoind
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH -DFOURWAYSSE2 -DUSE_SSL -o obj/nogui/auxpow.o auxpow.cpp
In file included from headers.h:93:0,
from auxpow.cpp:4:
util.h: In function ‘void ExitThread(unsigned int)’:
util.h:653:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
@indolering
indolering / gist:8032111
Created December 19, 2013 00:10
Wiki Fails
$ php wiki/maintenance/importDump.php --dbpassnamecoin --quiet wiki wiki/namecoin-backup.xml
Warning: XMLReader::read(): uploadsource://4f0bf45a95b883d50522af927935a2bf:1: parser error : Extra content at the end of the document in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): ^ in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): An Error Occured while reading in /home/nmcbits/wiki/includes/Import.php on line 399
Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.
[cherokee]$ php wiki/maintenance/importDump.php --dbpassnamecoin wiki wiki/namecoin-backup.xml
Warning: XMLReader::read(): uploadsource://8bfa14cccee0d97b5c815f481da57d1a:1: parser error : Extra content at the end of the document in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): ^ in /home/nmcbits/wiki/includes/Import.php on line 399
Warning: XMLReader::read(): An Error Occured while reading in /home/nmcbits/wiki/includes/Import.php on line 399
Expected <mediawiki> tag, got
Backtrace:
#0 /home/nmcbits/wiki/maintenance/importDump.php(282): WikiImporter->doImport()
#1 /home/nmcbits/wiki/maintenance/importDump.php(241): BackupReader->importFromHandle(Resource id #49)
#2 /home/nmcbits/wiki/maintenance/importDump.php(91): BackupReader->importFromFile('wiki')
@indolering
indolering / gist:8104827
Created December 23, 2013 21:19
OS X install
➜ ansible git:(master) ✗ sudo port install automake autoconf db48 boost openssl qt4-mac qrencode
---> Computing dependencies for automake
---> Cleaning automake
---> Computing dependencies for autoconf
---> Cleaning autoconf
---> Computing dependencies for db48
---> Cleaning db48
---> Computing dependencies for boost
---> Cleaning boost
<?php
error_reporting(E_ALL);
require_once 'jsonRPCClient.php';
header("Content-Type:application/json");
header("Access-Control-Allow-Origin: *");
$bitcoin = new jsonRPCClient('http://user:[email protected]:port/');
$output = -1;
PLAY [bits] *******************************************************************
GATHERING FACTS ***************************************************************
ok: [i-46-149-18-47.compute.is-1.greenqloud.com]
TASK: [Add Repo] **************************************************************
changed: [i-46-149-18-47.compute.is-1.greenqloud.com] => {"changed": true, "cmd": ["sh", "-c", "echo 'deb http://download.opensuse.org/repositories/home:/p_conrad:/coins/xUbuntu_13.04/ ./' > '/etc/apt/sources.list.d/obs-pconrad-coins.list'"], "delta": "0:00:00.003253", "end": "2014-01-04 21:37:56.994752", "rc": 0, "start": "2014-01-04 21:37:56.991499", "stderr": "", "stdout": ""}
TASK: [Add Key] ***************************************************************
ok: [i-46-149-18-47.compute.is-1.greenqloud.com] => {"changed": false}
BE BOLD IN YOUR EDITS! I seriously wrote this in <10 minutes and I am open to all comments/alternatives. The point isn’t to upset/reject Khal,
randy-waterhouse
“indolering you must be delicate in how you handle this since khalahan still possess the alert key and seriously who else could be lead dev at this stage?
czzstage?
indolering
It's not pulling contrib from Khal, the codebase remains in his "hands", Just the forum and website. And basically anyone else, he hasn't actively contributed [to the codebase] in months [AFAIK].