Skip to content

Instantly share code, notes, and snippets.

View snandam's full-sized avatar

Sanjeev Nithyanandam snandam

View GitHub Profile

Chef Fundamentals Labs

Exercise 1 - Download and Modify Haproxy Cookbook

a. Search for a copy of the haproxy cookbook by issuing the following commands.

 knife cookbook site search haproxy

 knife cookbook site show haproxy
sudo npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
@snandam
snandam / gist:7de8d471ab375a3ea932
Created October 22, 2014 21:32
npm install error
sudo npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb readDependencies using package.json deps
@snandam
snandam / gist:b22b86880eaee3a8aa39
Created October 23, 2014 14:59
Error stack plus npm debug log for centOS box
[] ~ () $ npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb node symlink /usr/bin/node
@snandam
snandam / gist:c113a0b882e7fdb5b9f3
Created October 23, 2014 15:12
node and npm upgraded on centos
[] ~ () $ npm install node-stringprep --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli 'node-stringprep',
npm verb cli '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb config Skipping project config: /home/nithyans/.npmrc. (matches userconfig)
@snandam
snandam / gist:8a124b2ed9002d3097d5
Created October 30, 2014 19:41
exml error centos 6.1
==> exml (compile)
Compiled src/exml.erl
Compiled src/exml_query.erl
Compiled src/exml_event.erl
Compiled src/exml_stream.erl
Compiling /root/sources/mongooseim/deps/exml/c_src/exml_event.c
In file included from /root/sources/mongooseim/deps/exml/c_src/exml_event.c:1:
c_src/exml_event.h:5:19: error: expat.h: No such file or directory
In file included from /root/sources/mongooseim/deps/exml/c_src/exml_event.c:1:
c_src/exml_event.h:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ms’
@snandam
snandam / check_for_directory.yml
Created November 4, 2014 16:28
Ansible playbook to check for a directory/file in ansible
---
-
hosts: dev
gather_facts: yes
vars:
app_name: creditcompliance
path_to_verify: /var/www/edge-app/{{app_name}}/web/config/app.conf.json
tasks:
-
name: "Check if path exists for {{ path_to_verify }}"
@snandam
snandam / gist:4794f6a5bfa81c3a815d
Created February 16, 2015 21:20
librarian-puppet install
➜ librarian-test librarian-puppet install --verbose
[Librarian] Ruby Version: 2.0.0
[Librarian] Ruby Platform: universal.x86_64-darwin13
[Librarian] Rubygems Version: 2.0.14
[Librarian] Librarian Version: 0.1.2
[Librarian] Librarian Adapter: puppet
[Librarian] Librarian Adapter Version: 2.0.1
[Librarian] Project: /Users/nithyans/Documents/CDK/Stash/ALM/Puppet_Testing/librarian-test
[Librarian] Specfile: Puppetfile
[Librarian] Lockfile: Puppetfile.lock
@snandam
snandam / nvm-install.sh
Last active April 3, 2025 16:51
Remove node, npm, nvm and install again
#!/bin/bash
# node-reinstall
# credit:
# http://stackoverflow.com/a/11178106/2083544
# https://gist.github.com/brock/5b1b70590e1171c4ab54
## program version
## Update versions accordingly. https://github.com/creationix/nvm/releases
VERSION="0.31.0"
@snandam
snandam / US_zipcode_to_geopoint.yaml
Created November 30, 2015 04:06
Data to use to translate zipcode or postal code to geopoint : logstash transform filter
This file has been truncated, but you can view the full file.
"70175": "30.06, -89.93"
"11542": "40.86, -73.63"
"11547": "40.82, -73.63"
"11545": "40.84, -73.61"
"11548": "40.81, -73.62"
"11549": "40.7, -73.61"
"19399": "40.05, -75.41"
"19398": "40.05, -75.41"
"19397": "40.05, -75.41"
"19395": "39.93, -75.55"