docker pull elasticsearch:7.16.3
docker pull kibana:7.16.3
docker network create eks
docker run --rm --name es-node01 --net eks -p 9200:9200 \
-p 9300:9300 -e "discovery.type=single-node" \
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 time | |
import random | |
import string | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import Select | |
from seleniumwire import webdriver | |
def random_with_N_digits(n): |
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
## Show git branch in prompt | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[31m\]\$(parse_git_branch)\[\033[00m\]\$ " |
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
snippet pod "kubernetes Pod" | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ${1:PodName} | |
namespace: ${2:Namespace} | |
labels: | |
${3:LabelName}: ${4:LabelValue} | |
spec: | |
containers: |
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
" ************************************* | |
" PLUGIN SECTION for Vim-Plug | |
" ************************************* | |
call plug#begin('~/.config/nvim/plugged') | |
" Make sure you use single quotes | |
"" | |
"" |
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
git_helper() { | |
usage(){ | |
echo "Usage: git_aid [command]" | |
echo "" | |
echo "Where [command] is any of," | |
echo " * last commit. Shows last commit" | |
echo " * last branch. Shows last commit" | |
echo " * recent branches. Shows a list of recent branches and commits with committer" | |
echo " * recent commits. Shows a list of recent branches and commits with committer" | |
echo " * diff commits. Shows the difference between the two last commits" |
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
git config --global url.git@github.com:.insteadOf https://github.com/ | |
git config --global url.git@gitlab.com:.insteadOf https://gitlab.com/ | |
git config --global url.git@bitbucket.org:.insteadOf https://bitbucket.org/ |
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
# Install the pre-requisites for the application | |
apt install qtwebengine5-dev libqt5x11extras5-dev libqtexengine-dev qtbase5-dev qtbase5-private-dev libssl-dev libxss-dev | |
git clone git@github.com:toggl/toggldesktop.git | |
cd toggldesktop | |
mkdir build | |
cd build | |
git checkout v7.4.377 | |
cmake -DTOGGL_PRODUCTION_BUILD=ON .. | |
make -j5 |
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
; Global settings | |
[redshift] | |
temp-day=6500K | |
temp-night=3600 | |
transition=1 | |
;location-provider=geoclue2 | |
location-provider=manual | |
; Solar elevation thresholds. | |
; By default, Redshift will use the current elevation of the sun to determine |
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
Install the project... | |
-- Install configuration: "RelWithDebInfo" | |
-- Installing: /usr/local/lib/libOAuth2.so | |
-- Installing: /usr/local/lib/libBugsnag.so | |
-- Installing: /usr/local/lib/libLua.so | |
-- Installing: /usr/local/lib/libjsoncpp.so | |
-- Installing: /usr/local/lib/libQxt.so | |
-- Installing: /usr/local/lib/cmake/Poco/PocoConfig.cmake | |
-- Installing: /usr/local/lib/cmake/Poco/PocoConfigVersion.cmake | |
-- Installing: /usr/local/include/Poco |
NewerOlder