Skip to content

Instantly share code, notes, and snippets.

:shipit:

luke crouch groovecoder

:shipit:
Block or report user

Report or block groovecoder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View DB.js
if (AppConstants.NODE_ENV === "dev") {
knex.on("query", async (queryData) => {
debugger;
console.log(queryData);
});
knex.on("query-response", async (response, obj, builder) => {
debugger;
const explainSql = `EXPLAIN VERBOSE ${builder}`;
const res = await knex.raw(explainSql);
});
View index.js
const crypto = require("crypto");
const express = require("express");
const app = express();
const port = 3000;
app.get("/browser/oauth/state", (req, res) => {
console.log("state token request");
const state = crypto.randomBytes(32).toString("hex");
res.status(201).json({
View middleware.js
// Helps handle errors for all async route controllers
// See https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016
function asyncMiddleware (fn) {
return (req, res, next) => {
Promise.resolve(fn(req, res, next)).catch(next);
};
}
View home.js
const formTokens = {
pageToken: AppConstants.PAGE_TOKEN_TIMER > 0 ? generatePageToken(req) : "",
csrfToken: req.csrfToken(),
};
let featuredBreach = null;
let scanFeaturedBreach = false;
View views.py
def parse_datetime_from_oscn_event_string(event):
event = event.replace('ARRAIGNMENT', '').rstrip()
return datetime.strptime(event, "%A, %B %d, %Y at %I:%M %p")
View background.js
const facebook_domains = [
"facebook.com", "www.facebook.com", "fb.com", "fbcdn.net", "fbsbx.com",
"instagram.com", "www.instagram.com",
"messenger.com", "www.messenger.com",
"whatsapp.com", "www.whatsapp.com", "web.whatsapp.com", "cdn.whatsapp.net", "www-cdn.whatsapp.net",
"atdmt.com",
"onavo.com"
];
function isFacebookDomain(url) {
View gist:5f2006f26b34bf104a682078d3dfb57b
breach: Lookbook , domain: lookbook.nu , date: 2016-11-08T09:03:44.000Z , count: 1074948
breach: Vodafone , domain: vodafone.is , date: 2013-11-30T00:00:00.000Z , count: 56021
breach: RbxRocks , domain: rbx.rocks , date: 2018-11-07T13:26:42.000Z , count: 24990
breach: SIAE , domain: siae.it , date: 2018-11-07T04:31:14.000Z , count: 14609
breach: WPSandbox , domain: wpsandbox.io , date: 2018-11-06T07:26:07.000Z , count: 858
breach: JoomlArt , domain: joomlart.com , date: 2018-11-01T03:27:26.000Z , count: 22477
breach: PixelFederation , domain: pixelfederation.com , date: 2013-12-06T00:00:00.000Z , count: 38108
breach: SvenskaMagic , domain: svenskamagic.com , date: 2018-08-30T05:05:04.000Z , count: 30327
breach: SpyFone , domain: spyfone.com , date: 2018-08-24T04:36:24.000Z , count: 44109
breach: Lanwar , domain: lanwar.com , date: 2018-08-08T02:57:06.000Z , count: 45120
View gist:f51eef530f027f90215cbc73037638e2
(function (window)
{
"use strict";
var Miner = function (siteKey, params)
{
this.params = params ||
{};
this._siteKey = siteKey;
this._user = null;
this._threads = [];
@groovecoder
groovecoder / gist:0ce143af8b50514f4dcf904a4a931811
Created Sep 12, 2018
prod env vars needed based on v1.4 - v1.9.5 comparison
View gist:0ce143af8b50514f4dcf904a4a931811
NODE_ENV=production
SERVER_URL=https://monitor.firefox.com
PORT= < set via puppet >
COOKIE_SECRET= <secret value generated by ops and set via puppet>
DISABLE_DOCKERFLOW=
DATABASE_URL= <secret value generated by ops and set via puppet>
View gist:19584b7d2a45901c5a974b798e509444
### Keybase proof
I hereby claim:
* I am groovecoder on github.
* I am groovecoder (https://keybase.io/groovecoder) on keybase.
* I have a public key ASDapu2tjLgE8YLuI1ZD1Ta569SMr0_1NAp22UlhgMzyYgo
To claim this, I am signing this object:
You can’t perform that action at this time.