Skip to content

Instantly share code, notes, and snippets.

View s-celles's full-sized avatar

Sébastien Celles s-celles

View GitHub Profile
@s-celles
s-celles / boxstarter.ps1
Created July 3, 2023 17:13 — forked from ghostinthewires/boxstarter.ps1
Boxstarter Commands for a new Windows machine.
# Description: Boxstarter Script
# Author: https://twitter.com/GhostInTheWire5
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# NOTE the "." above is required.
#
# Run this boxstarter by calling the following from **elevated** powershell:
# example: Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/ghostinthewires/033276015ba9d58d1f162e7fd47cdbd3/raw/boxstarter.ps1 -DisableReboots
# Learn more: http://boxstarter.org/Learn/WebLauncher
#! /usr/bin/python
# coding=utf-8
import requests
# Track ids to download
tracks = [
'9319946',
'9319955',
...
@s-celles
s-celles / luxorminifb.jl
Created November 16, 2021 13:23 — forked from cormullion/luxorminifb.jl
Luxor -> MiniFB test
using Luxor, MiniFB, Colors
mutable struct Guilloche
f1::Float64
f2::Float64
f3::Float64
f4::Float64
# damping factors: increase to make the energy losses faster
xd1::Float64
xd2::Float64
@s-celles
s-celles / gist:e0eb768a78198197e1a59ee10a94805e
Created April 4, 2021 19:57 — forked from cquest/gist:9db8aebcaa1fb1b53b2424c74b821b39
Téléchargement couche DRONES depuis Géoportail
# génération auto par gdal du fichier XML de description du service WMTS
gdal_translate "WMTS:https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/wmts?Service=WMTS&Request=GetCapabilities&Version=1.0.0,layer=TRANSPORTS.DRONES.RESTRICTIONS" drones.xml -of WMTS
# téléchargement des tuiles et sortie en geotiff
gdal_translate drones.xml drones.tif -co COMPRESS=DEFLATE -co TILED=YES
@s-celles
s-celles / Out-AIRACCycles.ps1
Created February 5, 2021 08:06 — forked from a4099181/Out-AIRACCycles.ps1
AIRAC dates generator - enumerates AIRAC cycles: previous, current and next.
Function Out-AIRACCycles
{
Param ( [DateTime] $currentDay = ( Get-Date )
, [DateTime] $initialDay = ( Get-Date -Year 2015 -Month 1 -Day 8 )
, $interval = 28
, $culture = [System.Globalization.CultureInfo]::GetCultureInfo("en-US") )
$offset = (New-TimeSpan -Start $initialDay -End ( Get-Date -Year ( $currentDay.Year - 1 ) -Month 1 -Day 1 ) ).Days
$offset .. ( $offset + 365 * 3 ) |
@s-celles
s-celles / Vagrantfile
Created January 2, 2021 21:19 — forked from akrabat/Vagrantfile
Example Vagrantfile for Windows
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Base box: https://github.com/akrabat/packer-templates
Vagrant.configure("2") do |config|
config.vm.box = "19ft/windows2016"
config.vm.guest = :windows
config.vm.boot_timeout = 600
@s-celles
s-celles / BoxStarter_script_PcBasique
Created January 2, 2021 15:39 — forked from Akipe/BoxStarter_script_PcBasique
Script pour BoxStarter, après installation de Windows pour PC
#######################################################################
#### Script Boxstarter maintenance PC ####
#### Installation et mise en route des application pour PC basique ####
#######################################################################
########## Définition des paramétre Windows
Set-StartScreenOptions -EnableBootToDesktop
Set-TaskbarOptions -Lock
########## Mise à jour Windows
,_---~~~~~----._
_,,_,*^____ _____``*g*\"*,
/ __/ /' ^. / \ ^@q f
[ @f | @)) | | @)) l 0 _/
\`/ \~____ / __ \_____/ \
| _l__l_ I
} [______] I
] | | | |
] ~ ~ |
| |
@s-celles
s-celles / omercy.py
Created February 16, 2018 19:27 — forked from Krazybug/omercy.py
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly.w
Usage:
>pip install requests
>pip install bs4
>mkdir omercy
>cd omercy
>curl ... omercy.py
>python omercy.py