Skip to content

Instantly share code, notes, and snippets.

View juliend2's full-sized avatar

Julien Desrosiers juliend2

View GitHub Profile
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/find /backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6 -type f -name '*.csv' | tee >( xargs bin/bindings-csv-to-redshift --target-directory=/backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6/output ) | /usr/bin/nice /usr/bin/xargs --max-procs=3 --max-args=715 cat | bin/get-active-users-bindings-to-redis'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/find /backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6 -type f -name '*.csv' | tee >( xargs bin/bindings-csv-to-redshift --target-directory=/backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6/output ) | /usr/bin/nice /usr/bin/xargs --max-procs=3 --max-args=715 cat | bin/get-active-users-bindings-to-redis'
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `/usr/bin/find /backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6 -type f -name '*.csv' | tee >( xargs bin/bindings-csv-to-redshift --target-directory=/backups/bindings/bindings/76c1fa90-0316-0133-dc1f-080027880ca6/output ) | /usr/bin/nice /usr/bin/xargs --max-procs=3 --max-args=715 cat | bin/get-active-users-bindings-to-redis'
2015-03-30 15:17:03.893521500 GET /tailored-audience/canada [56/9867]
2015-03-30 15:17:04.181786500 Sequel::DatabaseDisconnectError - PG::ConnectionBad: PQconsumeInput() SSL SYSCALL error: EOF detected
2015-03-30 15:17:04.181789500 :
2015-03-30 15:17:04.181789500 /home/deploy/www/www-frontend/production/shared/gems/ruby/1.9.1/gems/sequel-3.48.0/lib/sequel/adapters/postgres.rb:158:in `async_exec'
2015-03-30 15:17:04.181791500 /home/deploy/www/www-frontend/production/shared/gems/ruby/1.9.1/gems/sequel-3.48.0/lib/sequel/adapters/postgres.rb:158:in `block in execute_query'
2015-03-30 15:17:04.181792500 /home/deploy/www/www-frontend/production/shared/gems/ruby/1.9.1/gems/sequel-3.48.0/lib/sequel/database/logging.rb:33:in `log_yield'
2015-03-30 15:17:04.181824500 /home/deploy/www/www-frontend/production/shared

Keybase proof

I hereby claim:

  • I am juliend2 on github.
  • I am jdesrosiers (https://keybase.io/jdesrosiers) on keybase.
  • I have a public key whose fingerprint is 8982 5A6E DA5D 046D F25C 581E 7E67 5D05 E893 6330

To claim this, I am signing this object:

== CreateBrandCategories: migrating ==========================================
-- create_table(:brand_categories, {:primary_key=>:category_code})
(565.2ms) CREATE TABLE "brand_categories" ("category_code" serial primary key, "category_id" text NOT NULL, FOREIGN KEY ("category_id") REFERENCES "categories" ("id"))
PG::DatatypeMismatch: ERROR: foreign key constraint "brand_categories_category_id_fkey" cannot be implemented
DETAIL: Key columns "category_id" and "id" are of incompatible types: text and integer.
: CREATE TABLE "brand_categories" ("category_code" serial primary key, "category_id" text NOT NULL, FOREIGN KEY ("category_id") REFERENCES "categories" ("id"))
(0.9ms) ROLLBACK
rake aborted!
An error has occurred, this and all later migrations canceled:
<?php
/*
Example script that will import $born events into your Mixpanel projects for your existing users.
Feel free to modify. If you have a high number of users you might want to use some sort of queing system instead of
a sleep command to make sure that all the requests get sent propertly.
*/
/*
Dummy Data:
@juliend2
juliend2 / import.php
Created November 13, 2013 16:16
users import script
<?php
/*
Example script that will import $born events into your Mixpanel projects for your existing users.
Feel free to modify. If you have a high number of users you might want to use some sort of queing system instead of
a sleep command to make sure that all the requests get sent propertly.
*/
/*
Dummy Data:
@juliend2
juliend2 / .slate
Created November 12, 2013 14:12
my .slate file
alias mon-laptop 0
alias mon-acer 1
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias 1-full ${full} ${mon-laptop}
alias 2-full ${full} ${mon-acer}
# Configs
@juliend2
juliend2 / linode.com.txt
Last active December 14, 2015 16:38
version 4
> sudo mtr --report -4 linode.com
HOST: julien Loss% Snt Last Avg Best Wrst StDev
1.|-- orangeours 0.0% 10 0.9 1.0 0.7 1.6 0.3
2.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
3.|-- 216.113.124.17 0.0% 10 17.0 15.8 13.9 18.1 1.5
4.|-- 216.113.123.174 0.0% 10 32.9 33.5 31.6 35.1 1.0
5.|-- te3-5.bbr01.eq01.wdc01.ne 0.0% 10 27.9 27.7 26.3 29.3 0.9
6.|-- ae0.bbr01.tl01.atl01.netw 0.0% 10 41.4 41.4 40.3 42.7 0.7
7.|-- ae13.bbr02.eq01.dal03.net 0.0% 10 60.6 61.8 60.0 65.4 1.5
8.|-- po32.dsr02.dllstx3.networ 0.0% 10 57.6 57.5 56.5 59.4 0.8