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
map_closest | |
function map_closest() { | |
var pitt = [-80.064879, 40.612044]; | |
var phil = [-74.978052, 40.089738]; | |
function distance(a, b) { | |
var dx = a[0] - b[0]; | |
var dy = a[1] - b[1]; | |
return Math.sqrt(dx * dx + dy * dy); | |
} |
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 airflow import DAG | |
from airflow.operators import BashOperator | |
from airflow.operators.sensors import TimeSensor | |
from datetime import datetime, timedelta, time | |
default_args = { | |
'owner': 'cedricm', | |
'depends_on_past': True, | |
'start_date': datetime(2016, 7, 30), | |
'email': ['test@test.fr'], |
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 http://portainer.io/ | |
# Mac and Linux only | |
docker run -it -name porteiner-ui -v "/var/run/docker.sock:/var/run/docker.sock" -p 9000:9000 portainer/portainer | |
# Open portainer in a web browser | |
google-chrome http://localhost:9000 | |
# Enter a password and login => ENjoy :) | |
# Manager images, containers lifecycle |
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 here : http://unrealtournament.99.free.fr/forum/viewtopic.php?f=4&t=7 | |
wget http://unrealtournament.99.free.fr/utfiles/UT_Demo/UnrealTournament-V3.exe | |
# Run with wine | |
wine ./UnrealTournament-V3.exe | |
# Fallow instructions :) | |
# Note : by default only one map (CTF) | |
# More maps : https://www.utzone.de/forum/downloads.php?do=file&id=2352_Classic-MapPack-Collection-by-UTzone | |
# Just unrar for skilled user :) in your wine UT99 install folder : ~/.wine/drive_c/UnrealTournament |
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
aws s3 cp s3://bucket/source/ s3://bucket/destination/ --recursive --exclude "*" --include "MYWILCARD_*" |