October 24, 2015: Being slightly bitter about Apple oversights into their seemingly thoughtful approaches and finding zero solutions in my fully updated OS X 10.1 (El Capitan!) macbook, I stopped waiting. This problem was easy enough; small oversight and lines 228 and 250 are modified to keep things moving on OS X. To be fair these fixes may also apply to the blocks for tvOS, watchos, ios, etc. The solution to this kind of stuff is to simply test these headers before pushing them out to the public.
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
@ECHO OFF | |
REM Set default sock file | |
SET SSH_AUTH_SOCK=/tmp/ssh-agent.sock | |
REM Check socket is available | |
IF NOT EXIST "%TMP%\ssh-agent.sock" GOTO:RUNAGENT | |
REM Check if an ssh-agent is running | |
FOR /f "tokens=*" %%I IN ('ps ^| grep ssh-agent ^| sed "s/^ *\([0-9]\+\) .*/\1/"') DO SET VAR=%%I |
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
find . -maxdepth 3 -noleaf -type d -exec sh -c "ls -ltaR \"{}\" | wc -l | tr \"\n\" \" \" && echo \"{}\"" \; | sort -n | |
# or more simply without a sort: | |
find . -type d -maxdepth 1 -print0 -exec sh -c 'find "{}" -type f | wc -l' \; |
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 |
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
--- | |
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
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
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
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
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; |