Skip to content

Instantly share code, notes, and snippets.

View jponc's full-sized avatar
🏖️

Julian Ponce jponc

🏖️
  • Serenade
  • Sydney, Australia
View GitHub Profile
@jriquelme
jriquelme / elastic_sample.go
Created November 29, 2019 15:14
Signing of Elastic requests (https://github.com/elastic/go-elasticsearch) according to AWS v4 Signing process
cfg, err := external.LoadDefaultAWSConfig()
if err != nil {
panic(err)
}
esCfg := elasticsearch.Config{
Transport: &awssigner.V4Signer{
RoundTripper: http.DefaultTransport,
Credentials: cfg.Credentials,
Region: cfg.Region,
},
@Integralist
Integralist / docker-machine-mac-osx.md
Last active May 3, 2019 12:05
Docker Machine on Mac OS X

VirtualBox

  • https://www.docker.com/toolbox
  • docker-machine create --driver virtualbox dev
  • docker-machine env dev (add values to ~/.zshrc)
    • e.g. echo eval "$(docker-machine env dev)" >> ~/.zshrc
  • docker-machine ls
  • docker ps (might need to re-source .zshrc file; e.g. . ~/.zshrc)
  • docker run hello-world
  • docker-machine ip dev
@kkc
kkc / statsd+graphite.md
Last active October 5, 2021 10:24
#Statsd + Graphite + Carbon + Grafana #

#Statsd + Graphite + Carbon + Grafana #

Installation

Statsd

install nodejs

sudo update
sudo apt-get -y install software-properties-common
sudo apt-get -y install python-software-properties
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')