Skip to content

Instantly share code, notes, and snippets.

@asanchez75
asanchez75 / .tmux_theme
Last active December 7, 2018 20:46 — forked from meskarune/.tmux_theme
simple tmux theme
set -g pane-active-border-bg default
set -g pane-active-border-fg "colour14"
set -g pane-border-fg "colour239"
set -g message-fg black
set -g message-bg "colour14"
set -g status-justify left
set -g status-bg "colour236"
set -g status-fg "colour14"
@asanchez75
asanchez75 / deploy_minikube.sh
Created November 26, 2018 23:44 — forked from waja/deploy_minikube.sh
Install minikube on Debian / Ubuntu
#!/bin/sh
# install needed curl package
sudo apt install --no-install-recommends curl -y
# install kubectl
curl -Lo /tmp/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x /tmp/kubectl && \
sudo mv /tmp/kubectl /usr/local/bin/kubectl
# kubectl tab completion
sudo sh -c 'echo "source <(kubectl completion bash)" > /etc/bash_completion.d/kubectl'
# install needed packages for kvm (see https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver)
@asanchez75
asanchez75 / pd.sh
Created November 16, 2018 04:31 — forked from dlanger/pd.sh
Tmux start-up script
#!/bin/sh
cd ~/proj/root
tmux new-session -d -s pdev
tmux new-window -t pdev:1 -n shell
tmux rename-window -t pdev:1 "shell"
tmux send-keys -t pdev:1 "workon pdev" Enter "PS1=\$_OLD_VIRTUAL_PS1" Enter "clear" Enter
@asanchez75
asanchez75 / install-docker.sh
Created August 16, 2018 12:39 — forked from dweldon/install-docker.sh
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@asanchez75
asanchez75 / gist:98b19e7031233fa3cd03323a4b86b22f
Created July 19, 2018 12:31 — forked from drorata/gist:146ce50807d16fd4a6aa
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})
@asanchez75
asanchez75 / tunnelbroker-net.sh
Created June 28, 2018 04:41 — forked from pklaus/tunnelbroker-net.sh
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <[email protected]>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
@asanchez75
asanchez75 / install-postgres-9.6-centos7.md
Created May 17, 2018 10:02 — forked from Ch4s3/install-postgres-9.6-centos7.md
steps for installing postgres 9.6 on Centos7 or RHEL

Update the RPM package

rpm -ivh https://yum.postgresql.org/9.6/redhat/rhel-7.3-x86_64/pgdg-centos96-9.6-3.noarch.rpm

Update packages

yum update
@asanchez75
asanchez75 / index.html
Created April 4, 2018 19:52 — forked from CristinaSolana/index.html
Simple Responsive Grid - Simple SASS mixin generating a grid with nesting and offseting enabled for super quick prototypes. To do: properly clear first in row A CodePen by Cristina Solana
<div class="container">
<header>
<code>
.mod--foo {
@include column-span(6, 3);
}
<br>// $column-count, $offset[optional]
<br>// To do: properly clear first in row
</code>
@asanchez75
asanchez75 / install-php72-osx.md
Created April 3, 2018 19:00 — forked from vukanac/install-php72-osx.md
How to install php72 on Mac OS X with homebrew.

Skip this:

brew tap homebrew/dupes
brew tap homebrew/versions

As:

Warning: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.
Warning: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.