This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
############################### FOLDER ICONS ################################### | |
folder="$(pwd)" | |
# Construct the path for the folder icon | |
FOLDER_ICON_PATH="$folder/.icon" | |
if [ -f $FOLDER_ICON_PATH ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install tmux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
es: | |
container_name: sandbox_elasticsearch | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.3 | |
ports: | |
- "9200:9200" | |
container_name: es | |
environment: | |
ELASTIC_USER: elastic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /restaurants/_doc?refresh | |
{ | |
"name": "Gloria's", | |
"name_suggest": "Gloria's", | |
"city": "Port Royal" | |
} | |
POST /restaurants/_doc?refresh | |
{ | |
"name": "Morgan's Harbour", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import logging | |
import os | |
from watchdog.observers import Observer | |
from watchdog.observers.polling import PollingObserver | |
from watchdog.events import PatternMatchingEventHandler | |
import subprocess | |
class DocsCompiler(PatternMatchingEventHandler): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "deb http://www.rabbitmq.com/debian/ testing main" | tee -a /etc/apt/sources.lst | |
echo "deb http://packages.erlang-solutions.com/ubuntu precise contrib" | tee -a /etc/apt/sources.lst | |
# Upgrade Erlang | |
wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | |
sudo apt-key add erlang_solutions.asc | |
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install virtualenvwrapper library | |
sudo pip install virtualenvwrapper | |
# Configure .bashrc | |
echo "export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=/vagrant | |
source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# We need to invoke Byobu just so that it'll create the ~/.byobu directory | |
byobu-tmux new-session -d | |
byobu kill-server | |
echo "bind-key -n F1 new-window | |
bind-key -n F2 previous-window | |
bind-key -n F3 next-window" > ~/.byobu/keybindings.tmux |
NewerOlder