Skip to content

Instantly share code, notes, and snippets.

View pcothenet's full-sized avatar
🌋
We're hiring!

Paul Cothenet pcothenet

🌋
We're hiring!
View GitHub Profile
UNLOAD ("SELECT event_text, event_timestamp, contact_key, event_attribute_1, event_attribute_2 FROM [your_table]")
TO 's3://madkudu-data-in-[your_org_id]/track/track.csv'
CREDENTIALS 'aws_access_key_id=[your_access_key];aws_secret_access_key=[your_secret_key]'
DELIMITER '~'
ADDQUOTES
ESCAPE
MANIFEST
GZIP
ALLOWOVERWRITE
UNLOAD ("SELECT contact_key, account_key, account_attribute_1, account_attribute_1 FROM [your_table]")
TO 's3://madkudu-data-in-[your_org_id]/group/group.csv'
CREDENTIALS 'aws_access_key_id=[your_access_key];aws_secret_access_key=[your_secret_key]'
DELIMITER '~'
ADDQUOTES
ESCAPE
MANIFEST
GZIP
ALLOWOVERWRITE
@pcothenet
pcothenet / segment_button.js
Created March 23, 2016 17:45
Segment_button
! function t(e, n, r) {
function i(t) {
if (n[t]) return n[t].exports;
if (e[t]) return o(t, i);
throw new Error('cannot find module "' + t + '"')
}
function o(i, o) {
var u = n[i] = {
exports: {}
@pcothenet
pcothenet / coverage.md
Last active January 14, 2017 00:38
madkudu.js tests
File % Stmts % Branch % Funcs % Lines Uncovered Lines
lib/ 71.52 50.94 60.36 73.89
cookie.js 94.87 90 100 94.59 80,115
entity.js 100 92.5 100 100
form.js 23.57 6.06 2.86 24.44 ... 271,277,278
group.js 100 100 100 100
index.js 69.23 66.67 100 75 38,39,40
madkudu.js 87.3 65.88 96.43 93.57 ... 251,417,418
memory.js 100 100 100 100
const params = {
clientId: hubspot_app.clientId,
clientSecret: hubspot_app.clientSecret,
redirectUri: `${hubspot_app.redirectUri}?state=${tenant}`,
refreshToken: refresh_token
}
const hubspot = new Hubspot(params)
if (refresh_token) {
return hubspot.refreshAccessToken()

Keybase proof

I hereby claim:

  • I am pcothenet on github.
  • I am pcothenet (https://keybase.io/pcothenet) on keybase.
  • I have a public key ASCT1VpLS_NyxrEKtbvA23DkoWiy9OsobxQNF73zlyM3igo

To claim this, I am signing this object:

# /etc/systemd/system/docker.service.d/startup_options.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376