🔐
Github : Signing commits using GPG (Ubuntu/Mac) - Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS
#!/usr/bin/env bash | |
set -e | |
set -u | |
export INPUT_DIR="${HOME}/Pictures/#sync/incoming" | |
export OUTPUT_DIR="${HOME}/Pictures/#sync/timestamps" | |
export REMOTE_DIR="${HOME}/Pictures/#sync/remote" | |
fdupes --recurse --noempty --nohidden --delete --noprompt ${INPUT_DIR} |
#!/usr/bin/env bash | |
echo 'fs.inotify.max_user_watches = 524288' | tee --append /etc/sysctl.conf > /dev/null | |
sysctl -p --system | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
apt-get -y update | |
apt-get -y upgrade |
# Perform the necessary imports | |
import matplotlib.pyplot as plt | |
from scipy.cluster.hierarchy import linkage, dendrogram | |
# Calculate the linkage: mergings | |
mergings = linkage(samples, method='single') | |
# Plot the dendrogram | |
dendrogram(mergings, | |
labels=country_names, |
# Import pipeline | |
from sklearn.pipeline import Pipeline | |
# Import classifiers | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.multiclass import OneVsRestClassifier | |
# Import CountVectorizer | |
from sklearn.feature_extraction.text import CountVectorizer |
[11-28-18 18:51:17] Delete [attachment] pipeline | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Create [attachment] pipeline | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Delete [index1] index | |
{"acknowledged":true} | |
[11-28-18 18:51:17] Create [index1] index |
#!/usr/bin/env bash | |
# elasticsearch-issue-34142.sh | |
# cURL recreation script to reproduce Elaticsearch issue #34142 | |
# https://github.com/elastic/elasticsearch/issues/34142 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
#!/usr/bin/env bash | |
# elasticsearch-issue-34522.sh | |
# cURL recreation script to reproduce Elaticsearch issue #34522 | |
# https://github.com/elastic/elasticsearch/issues/34522 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |
#!/usr/bin/env bash | |
set -e | |
set -u | |
fdupes --recurse --noempty --nohidden --delete --noprompt "#input" | |
exiftool -progress -r -d "#sync/timestamps/%Y/%m/%Y%m%d%H%M%S%%-c.%%ue" "-filename<filemodifydate" "-filename<createdate" "-filename<datetimeoriginal" "#input" | |
rsync -avzh --progress --stats --exclude '._*' --exclude '.DS_Store' "#sync/timestamps/" "/Volumes/NAS/cloud/Pictures/timestamps/" |
#!/usr/bin/env bash | |
# elasticsearch-issue-27178.sh | |
# cURL recreation script to reproduce Elaticsearch issue #27178 | |
# https://github.com/elastic/elasticsearch/issues/27178 | |
NL1="\n" | |
NL2="${NL1}${NL1}" | |
NC='\033[0m' | |
RED='\033[0;31m' |