Skip to content

Instantly share code, notes, and snippets.

View cmourouvin's full-sized avatar

Cédric Mourouvin cmourouvin

View GitHub Profile
@cmourouvin
cmourouvin / gist:e7c472706ca572011a1f6a120cfe2801
Created February 23, 2018 09:26
aws_s3_copy_file_with_wilcard
aws s3 cp s3://bucket/source/ s3://bucket/destination/ --recursive --exclude "*" --include "MYWILCARD_*"
@cmourouvin
cmourouvin / .sh
Last active February 26, 2021 12:40
Install UT99 v436 under Linux
# 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
@cmourouvin
cmourouvin / start-portainer.sh
Last active August 20, 2020 17:39
Start portainer UI for manage your local docker install
# 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
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'],
@cmourouvin
cmourouvin / gist:4945396
Created February 13, 2013 15:29
Un map, il ne manque plus que le reduce
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);
}