Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jgoldring on github.
  • I am zugtug (https://keybase.io/zugtug) on keybase.
  • I have a public key whose fingerprint is 0FFC 1C12 65AB BC9E 237F 1E17 D761 0940 0B68 31DE

To claim this, I am signing this object:

@jgoldring
jgoldring / gist:b2cd473773fe51ca8d517012e8508af4
Created May 30, 2019 20:57
Example wdio config file where onComplete does not wait for the async operation
exports.config = {
runner: 'local',
specs: [ 'test.js'],
maxInstances: 2,
exclude: [],
hostname: 'localhost',
port: 4444,
path: '/wd/hub',
capabilities: [
{
@jgoldring
jgoldring / gist:e03432562a0be69d742e09672f62fdb5
Created February 19, 2019 19:50
web API response when calling getAllOrgs
$ ./gitea web
2019/02/19 12:43:22 [T] AppPath: /home/jgoldring/go/src/code.gitea.io/gitea/gitea
2019/02/19 12:43:22 [T] AppWorkPath: /home/jgoldring/go/src/code.gitea.io/gitea
2019/02/19 12:43:22 [T] Custom path: /home/jgoldring/go/src/code.gitea.io/gitea/custom
2019/02/19 12:43:22 [T] Log path: /home/jgoldring/go/src/code.gitea.io/gitea/log
2019/02/19 12:43:23 Serving [::]:3000 with pid 27224
[Macaron] 2019-02-19 12:43:27: Started GET /api/v1/admin/orgs for 10.1.122.45
[Macaron] 2019-02-19 12:43:27: Completed GET /api/v1/admin/orgs 500 Internal Server Error in 41.432902ms
@jgoldring
jgoldring / gist:5436dc551e10db4848d4d3cfbe128d49
Created February 19, 2019 19:49
gitea log error when trying to call getAllOrgs/getAllUsers admin endpoint
2019/02/19 12:43:27 [...les/context/panic.go:36 1()] [E] PANIC:: runtime error: makeslice: cap out of range
/usr/lib/go/src/runtime/panic.go:513 (0x433a78)
gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/lib/go/src/runtime/slice.go:52 (0x44adf1)
makeslice: panic(errorString("makeslice: cap out of range"))
/usr/lib/go/src/runtime/slice.go:67 (0x44adf1)
makeslice: panicmakeslicecap()
/home/jgoldring/go/src/code.gitea.io/gitea/models/user.go:1437 (0x104bc05)
SearchUsers: users = make([]*User, 0, opts.PageSize)
/home/jgoldring/go/src/code.gitea.io/gitea/routers/api/v1/admin/org.go:83 (0x13ea7f6)
describe('Suite', () => {
it("Go to Google", () => {
browser.url("https://google.ca");
$("#tsf > div:nth-child(2) > div > div.RNNXgb > div > div.a4bIc > input").waitForDisplayed();
});
});
exports.config = {
runner: 'local',
specs: ['simple.test.js'],
exclude: [],
capabilities: [
{
browserName: 'chrome',
"goog:chromeOptions" : {
"args" : [
"no-sandbox",