- Install MySQL, Golang & Git
- Create a schema called cbng_review
- Create an OAuth application via
https://meta.wikimedia.org/wiki/Special:OAuthConsumerRegistration/propose
- Select OAuth 1.0a
- Do not select 'This consumer is for use only by xxxx.'
- Enable 'User identity verification only, no ability to read pages or act on a user's behalf.'
git clone https://github.com/cluebotng/reviewng
- Within the repo create
config.yaml
with suitable settings, example below - Import the database tables & seed data
mysql cbng_review < sql/schema.sql
This file contains 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
+sub edit_page { | |
+ my $logger = shift; | |
+ my $wiki = shift; | |
+ my $title = shift; | |
+ my $text = shift; | |
+ my $summary = shift; | |
+ | |
+ my $ref = $wiki->api({action => 'query', meta => 'tokens', type => 'csrf'}); | |
+ if(!$ref) { | |
+ $logger->error("Could not retrieve CSRF token"); |
This file contains 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
import dataclasses | |
from typing import List, Union | |
@dataclasses.dataclass() | |
class RecordType1: | |
pass | |
@dataclasses.dataclass() |
This file contains 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
<WPEditSet> | |
<WPEdit> | |
<EditType>change</EditType> | |
<EditID>xxxxxx</EditID> | |
<comment></comment> | |
<user>x.x.x.x</user> | |
<user_edit_count>256</user_edit_count> | |
<user_distinct_pages>123</user_distinct_pages> | |
<user_warns>19</user_warns> | |
<prev_user>x.x.x.x</prev_user> |
This file contains 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
update: all | |
pin: True | |
search: True | |
close_prs: True |
This file contains 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
000 -> 0.0 | |
001 -> 0.0 | |
002 -> 0.0 | |
003 -> 0.0 | |
004 -> 0.0 | |
005 -> 0.0 | |
006 -> 0.0 | |
007 -> 0.0 | |
008 -> 0.0 | |
009 -> 0.0 |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<diveSegment version="1.1"> | |
<segmentHeader> | |
<equipmentType>100</equipmentType> | |
<activeUser>0</activeUser> | |
<diveSamples>29</diveSamples> | |
<monotonicTimeS>145036</monotonicTimeS> | |
<UTCStartingTimeS>409911594</UTCStartingTimeS> | |
<surfacePressureMbar>9830</surfacePressureMbar> | |
<lastSurfaceTimeS>-1</lastSurfaceTimeS> |
This file contains 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
# Shrink specific columns down, so the key combination for the constraints | |
# aren't larger than the max legnth, when not using innodb_large_prefix. | |
# Length may require tweaking depending on application requirements | |
SOCIAL_AUTH_UID_LENGTH = 190 | |
SOCIAL_AUTH_NONCE_SERVER_URL_LENGTH = 190 | |
SOCIAL_AUTH_ASSOCIATION_SERVER_URL_LENGTH = 190 | |
SOCIAL_AUTH_ASSOCIATION_HANDLE_LENGTH = 190 | |
SOCIAL_AUTH_EMAIL_LENGTH = 190 |
This file contains 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
// AssetErrorController.getErrors() needs to be exposed to either the window or document scope on pages | |
// i.e. javascript:alert(window.foo); should work with the plugin loaded and return an object/hash back | |
var events = require("sdk/system/events"); | |
var { Ci, Cu } = require("chrome"); | |
// Store errors here | |
var AssetErrorController = new function() { | |
var errors = {}; |
This file contains 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
$ErrorActionPreference = "Stop" | |
$client = new-object System.Net.WebClient | |
# Reset vagrant password so it's not expired | |
([adsi]"WinNT://vagrant-2012-r2/vagrant").SetPassword("P@55w0rd!") | |
# Setup UAC wrapper ;( | |
if(!(Test-Path -Path "C:\uacts_x64.zip")) { | |
Write-Output "Setting up UAC wrapper" | |
$client.DownloadFile("http://www.itknowledge24.com/files/uacts_x64.zip", "C:\uacts_x64.zip") |
NewerOlder