Skip to content

Instantly share code, notes, and snippets.

View jolbax's full-sized avatar
💪
learning, enjoying, growing..

José Luis Barahona jolbax

💪
learning, enjoying, growing..
View GitHub Profile
@jolbax
jolbax / .tmux.conf
Created September 4, 2017 09:11 — forked from paulodeleo/.tmux.conf
Tmux configuration to enable mouse scroll and mouse panel select, taken from: http://brainscraps.wikia.com/wiki/Extreme_Multitasking_with_tmux_and_PuTTY
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow mouse dragging to resize panes
set -g mouse-resize-pane on
# Allow mouse to select windows
@jolbax
jolbax / deploy_keys.sh
Created March 17, 2017 15:17 — forked from jihchi/deploy_keys.sh
Add new deployment key to BitBucket via API
#!/usr/bin/env bash
set -e
KEY=public-key
LABEL=key123
###
# Method 1. Authenticate by your account & password
###
AUTH=user:password
@jolbax
jolbax / salt-encrypt.sh
Last active June 9, 2017 07:10 — forked from WillPlatnick/salt-encrypt.sh
Encrypt SaltStack Pillars #saltstack #encryption #pillar
#!/usr/bin/env bash
# Usage: salt-encrypt {optional -f} <input> <keyid>, or just `salt-encrypt` for interactive mode
# Summary: Encrypt some string / file for Salt
# Help: This command can be used to gpg encrypt some content for use in salt pillars or really anything you want to encrypt with GPG
set -e
#Replace below with the default key you encrypt with
DEFAULT_RECIPIENT="XXXXXX"
multi=0
@jolbax
jolbax / slack_webhook_post.py
Created February 13, 2017 06:33 — forked from devStepsize/slack_webhook_post.py
POST a JSON payload to a Slack Incoming Webhook using Python requests
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests