Skip to content

Instantly share code, notes, and snippets.

View diptanu's full-sized avatar

Diptanu Choudhury diptanu

  • Facebook
  • San Francisco
View GitHub Profile
error: typedef redefinition with different types ('::std::size_t' (aka 'unsigned long') vs 'unsigned int')
using SizeType = ::std::size_t;
^
/usr/local/osquery/include/rapidjson/rapidjson.h:380:18: note: previous definition is here
typedef unsigned SizeType;
set nocompatible
filetype off
let mapleader=","
set t_Co=256
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
# There can only be a single job definition per file. This job is named
# "example" so it will create a job with the ID and Name "example".
job "example" {
# Run the job in the global region, which is the default.
# region = "global"
# Specify the datacenters within the region this job can run in.
datacenters = ["dc1"]
# Service type jobs optimize for long-lived services. This is
# There can only be a single job definition per file. This job is named
# "example" so it will create a job with the ID and Name "example".
job "example" {
# Run the job in the global region, which is the default.
# region = "global"
# Specify the datacenters within the region this job can run in.
datacenters = ["dc1"]
# Service type jobs optimize for long-lived services. This is
# THIS IS AN EXAMPLE
# Increase log verbosity
log_level = "INFO"
# Setup data dir
data_dir = "/tmp/client1"
enable_debug = true
@diptanu
diptanu / gist:19c1d7d0efc5fe7265c8
Created January 16, 2015 18:29
Mesos Server startup errors
#Command - ./bin/mesos-master.sh --zk=zk://localhost:2181/mesos --work_dir=/tmp/master --quorum=1
I0116 10:25:22.632302 119017472 group.cpp:385] Trying to create path '/mesos' in ZooKeeper
terminate called recursively
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >'
*** Aborted at 1421432722 (unix time) try "date -d @1421432722" if you are using GNU date ***
what(): bad lexical cast: source type value could not be interpreted as target
PC: @ 0x7fff97525282 __pthread_kill
*** SIGABRT (@0x7fff97525282) received by PID 12475 (TID 0x107181000) stack trace: ***
@ 0x7fff998bff1a _sigtramp
### Keybase proof
I hereby claim:
* I am diptanu on github.
* I am diptanu (https://keybase.io/diptanu) on keybase.
* I have a public key whose fingerprint is FAA6 4F09 564E 48E4 2E67 04AF CA12 304B F9A8 D609
To claim this, I am signing this object:
@diptanu
diptanu / gist:6269415
Created August 19, 2013 13:56
Omibus stacktrace
No configuration file `/home/vagrant/vagrant_data/omnibus-tasseo/omnibus.rb', using defaults
No configuration file `/home/vagrant/vagrant_data/omnibus-tasseo/omnibus.rb', using defaults
Something went wrong...the Omnibus just ran off the road!
Error raised was:
Could not load the Omnibus projects.
Backtrace:
Error: exit status 1: bsdtar: Error opening archive: Lzma library error: No progress is possible
@diptanu
diptanu / gist:4495765
Created January 9, 2013 18:53
Syslog configuration error
Error at line 7, column 15: "{ \n embedded => true \n}\n}\n\n"
Error at line 7, column 15: "{ \n embedded => true \n}\n}\n\n"