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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFnX7LkBEADYNw+dXd/9Z7ZwQG1WJF27RYkBualuruarY7yDiXJoanYVkNzk | |
Cs+9AQ3rEnkYCdEBONdGSiKa2735BxQdojpTcSMeRNDEg8PJQJiAhQ5MkN5P2cTL | |
2m6HmOtw+gRKxVerD2e7WsMvt2j2YzpeCGqM72EKmS9coysreeL+7PZy32Oc9MTG | |
k/UhaP9Gu44AFlYg6t5W5aKYHoSujbaABGWKl74V77SQwYUE84lhl5eHKIGZvZ/P | |
HKV06NzyWWBgFv8MH3ISr+xiMzG+MNPTuwaFrnm9tePIMK+fB14mbn0t2mIXKwvx | |
9wB2QjWaXA9n7MCH4znK/eLsVcE1qkHT2S01XtldLCllUikwskHhEKTQOkEjKMH9 | |
IAPYdJncR3ckwzCZo2mQQoVihnERcZ2gtrlwx2GV+900ntvBr8QHTLDUZkcO0bFF | |
o1ICHwwkpansWThgzkTKil6E/bCicPlh7FPmBiFKMqsz5IK8e6DGIAPjDGDJjkMy |
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
from __future__ import division,print_function | |
import os, json | |
from glob import glob | |
import numpy as np | |
np.set_printoptions(precision=4, linewidth=100) | |
from matplotlib import pyplot as plt | |
import sys | |
sys.settrace |
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
shuf -n 10 -e * | xargs -i mv {} path-to-new-folder <-- random file movement |
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
Deleting DAGs in Airflow? Well, womp. | |
set @dag_id = 'etl_dag'; | |
delete from airflow.xcom where dag_id = @dag_id; | |
delete from airflow.task_instance where dag_id = @dag_id; | |
delete from airflow.sla_miss where dag_id = @dag_id; | |
delete from airflow.log where dag_id = @dag_id; | |
delete from airflow.job where dag_id = @dag_id; | |
delete from airflow.dag_run where dag_id = @dag_id; | |
delete from airflow.dag where dag_id = @dag_id; |
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
sudo apt-get install build-essential checkinstall | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz | |
sudo tar -xzf Python-2.7.13.tgz -C /usr/src | |
cd /usr/src/Python-2.7.3 | |
sudo ./configure | |
sudo make | |
sudo make altinstall |
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
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.tar.gz |
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
GRANT ALL PRIVILEGES ON *.* TO 'root'@'172.31.%.%' IDENTIFIED BY 'APASSWORDTHATISNOTREAL' WITH GRANT OPTION; | |
UPDATE mysql.user SET password=PASSWORD('realpasswordzl33t') WHERE User="root"; |
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
--- | |
data_volume: | |
- name: mysql-data-drive | |
device_name: /dev/sdb | |
device_type: gp2 | |
volume_size: 500 | |
delete_on_termination: false |
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
--- | |
# This has been tested with ansible 1.3 with these commands: | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
# NB: The type of the variable is crucial! | |
- name: Ansible Conditionals Examples | |
hosts: $hosts | |
vars_files: |
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
2015-10-30 21:13:04 -0400 | |
cmake | |
.. | |
-DCMAKE_C_FLAGS_RELEASE= | |
-DCMAKE_CXX_FLAGS_RELEASE= | |
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv3/HEAD | |
-DCMAKE_BUILD_TYPE=Release | |
-DCMAKE_FIND_FRAMEWORK=LAST | |
-DCMAKE_VERBOSE_MAKEFILE=ON |