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
// Open 'Messages', then go to developer tools console, paste this in, and watch it do all the work | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
while (true) { | |
// Click first conversation "three dots" for dropdown menu | |
document.querySelector('[data-testid=conversation] div:has(+svg)').click(); |
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
from google.cloud import bigquery | |
import json | |
GITHUB_USERNAME = 'crwilcox' | |
START_DATE = "2019-08-26" | |
END_DATE = "2020-02-16" | |
client = bigquery.client.Client() | |
query = f"""SELECT repository, type, event AS status, COUNT(*) AS count |
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
const assert = require('assert') | |
const async = require('async') | |
var pad = require('pad'); | |
const Spanner = require('./src') | |
const spanner = new Spanner() | |
const instance = spanner.instance('issue-180-instance') | |
const database = instance.database('issue-180-database') | |
const table = database.table('issuetable') |
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
const assert = require('assert') | |
const async = require('async') | |
var pad = require('pad'); | |
const Spanner = require('./src') | |
const spanner = new Spanner() | |
const instance = spanner.instance('issue-180-instance') | |
const database = instance.database('issue-180-database') | |
const table = database.table('issuetable') |
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
const assert = require('assert') | |
const async = require('async') | |
var pad = require('pad'); | |
const Spanner = require('./src') | |
const spanner = new Spanner() | |
const instance = spanner.instance('issue-180-instance') | |
const database = instance.database('issue-180-database') | |
const table = database.table('issuetable') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Quick and Dirty script to create issues in a new repo and | |
# close them in the old one. There is no error handling. | |
# Set these variables as appropriate | |
GITHUB_ACCESS_TOKEN = 'INSERT ACCESS TOKEN HERE' | |
SOURCE_REPO = 'Azure/some-source-repo' | |
DEST_REPO = 'Azure/some-dest-repo' | |
LABEL_TO_MOVE = 'Interesting Label' | |
LABEL_TO_LABEL_IN_DEST = 'Migrated from {}'.format(SOURCE_REPO) |