Skip to content

Instantly share code, notes, and snippets.

View sgsharma's full-sized avatar
💭
Sleeping

Sasha Sharma sgsharma

💭
Sleeping
View GitHub Profile
@sgsharma
sgsharma / otel-config.yaml
Created November 1, 2024 19:18 — forked from puckpuck/otel-config.yaml
otel span events to span attributes
receivers:
otlp:
protocols:
grpc:
http:
exporters:
otlp/honeycomb:
endpoint: api.honeycomb.io:443
headers:

1. Create new branch:

git checkout -b otherrepo-master master

2. Get the contents of the PR

git pull https://github.com/otherrepo/my-repo-name.git master
@sgsharma
sgsharma / gist:0eea4756478eb7f1ef957978b357c02a
Created September 19, 2018 17:13 — forked from gaquino/gist:87bdf0e6e852e445c0489379d3e9732a
MacOS (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools))
If you are facing an error like that on new MacOS version.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It means that you need to install XCode command line, open a Terminal and run this command:
$ xcode-select --install
@sgsharma
sgsharma / Gemfile
Created May 30, 2018 04:34 — forked from adamsanderson/Gemfile
Demonstration of hierarchical queries in Postgres using a materialized path. It will create a new database that you can later play around with.
source 'https://rubygems.org'
gem 'activerecord', '4.0.0.rc1'
@sgsharma
sgsharma / jenkins-slave
Created April 12, 2017 18:09 — forked from jacksoncage/jenkins-slave
Bash script to check if a Jenkins slave node is offline and will restart node java process.
#!/bin/sh
#
# jenkins-slave: Launch a Jenkins BuildSlave instance on this node
#
# chkconfig: - 99 01
# description: Enable this node to fulfill build jobs
#
JENKINS_WORKDIR="/var/jenkins"
JENKINS_USER="jenkins"