Skip to content

Instantly share code, notes, and snippets.

View jordanbtucker's full-sized avatar

Jordan Tucker jordanbtucker

View GitHub Profile
@jordanbtucker
jordanbtucker / unwanted-commits-in-pr.txt
Last active January 17, 2022 14:51
Remove unwanted commits from your PR
> git reset --hard <commit>
> git rebase -i upstream/<branch>
> git push -f origin <branch>
@jordanbtucker
jordanbtucker / parse.js
Created July 21, 2021 20:11
JSON5 parsing simple references as strings
// see https://github.com/json5/json5/issues/249
const util = require('./util')
let source
let parseState
let stack
let pos
let line
let column
10.0.1.2 - - [16/Jul/2020:03:57:51 +0000] "POST /dns-query HTTP/1.1" 200 1300 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:57:52 +0000] "POST /dns-query HTTP/1.1" 200 722 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:57:54 +0000] "POST /dns-query HTTP/1.1" 200 826 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:57:54 +0000] "POST /dns-query HTTP/1.1" 200 1299 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:13 +0000] "POST /dns-query HTTP/1.1" 200 1299 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:14 +0000] "POST /dns-query HTTP/1.1" 200 783 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:21 +0000] "POST /dns-query HTTP/1.1" 200 1303 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:45 +0000] "POST /dns-query HTTP/1.1" 200 1300 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:53 +0000] "POST /dns-query HTTP/1.1" 200 1289 "-" "Chrome"
10.0.1.2 - - [16/Jul/2020:03:58:54 +0000] "POST /dns-query HTTP/1.1" 200 917 "-" "Chrome"
const app = require('@feathersjs/feathers')
const service = require('feathers-knex')
const knex = require('knex')
const db = knex({
client: 'mysql',
connection: 'mysql://user:pass@localhost/test',
})
app.use('todos', service({
Date
= FourDigits '-' TwoDigits '-' TwoDigits 'T' TwoDigits ':' TwoDigits ':' TwoDigits { return new Date(text()) }
FourDigits
= Digit Digit Digit Digit
TwoDigits
= Digit Digit
Digit
#include "pch.h"
#include <windows.h>
#include <bthsdpdef.h>
#include <bthdef.h>
#include <BluetoothAPIs.h>
#include <strsafe.h>
#include <tchar.h>
#pragma comment(lib, "Bthprops.lib")

Keybase proof

I hereby claim:

  • I am jordanbtucker on github.
  • I am jordanbtucker (https://keybase.io/jordanbtucker) on keybase.
  • I have a public key whose fingerprint is 4276 5DD0 DA7A 832C A48A 5ADB 12B0 D328 B7B6 541D

To claim this, I am signing this object:

@jordanbtucker
jordanbtucker / index.d.ts
Created April 5, 2019 05:09
@types/feathersjs__feathers using `export =` instead of `export default`
// Type definitions for @feathersjs/feathers 3.1
// Project: http://feathersjs.com/
// Definitions by: Jan Lohage <https://github.com/j2L4e>
// Abraao Alves <https://github.com/AbraaoAlves>
// Tim Mensch <https://github.com/TimMensch>
// Definitions: https://github.com/feathersjs-ecosystem/feathers-typescript
// TypeScript Version: 2.3
/// <reference types="node" />
var JSON5 =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
// Endpoint info excluded.
TcpClient client = new TcpClient();
var stream = client.GetStream();
// Assume pre-shared keys are used and set at this point.
AesManaged aes = new AesManaged();
var aesEncryptor = aes.CreateEncryptor();
CryptoStream aesStream = new CryptoStream(
stream, aesEncryptor, CryptoStreamMode.Write);