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
<!-- usage : | |
xsltproc --param dep 01 colXml2CSV.xsl 01.xml | |
use a loop on files an write in a single csv: | |
for i in {01..95} ; do xsltproc --param dep "$i" colXml2CSV.xsl $i.xml >> cols_fr.csv ; done | |
--> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" encoding="utf-8" /> | |
<xsl:param name="dep" /> |
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
function tempo_price(date,hour) { | |
datespec = date " " hour | |
gsub(/[:-]/," ", datespec) | |
ts = mktime(datespec)-(6*3600) | |
tempo_date = strftime("%Y-%m-%d", ts) | |
tempo_hour = strftime("%H",ts) | |
tempo["2022-11-29"]="blanc" | |
tempo["2022-11-30"]="blanc" | |
tempo["2022-12-01"]="blanc" |
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
import './style.css'; | |
import {Map, View} from 'ol'; | |
import TileLayer from 'ol/layer/WebGLTile'; | |
import OSM from 'ol/source/OSM'; | |
import {useGeographic} from 'ol/proj.js'; | |
import {Vector as VectorLayer} from 'ol/layer.js'; | |
import VectorSource from 'ol/source/Vector.js'; | |
import {Fill, Stroke, Style} from 'ol/style.js'; | |
import GeoJSON from 'ol/format/GeoJSON.js'; |
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
.activityDetailMetrics[0].metrics[3] as $startime | | |
.activityDetailMetrics[] | | |
[ (((.metrics[3] - $startime) / 1000) | strftime("%H:%M:%S")), ((.metrics[10]//0)*3.6)] | | |
@tsv |
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
# A domain zone not hosted on AWS::Route53 and we want domain root record to exists (require a A record). | |
# ELB/Cloudfront is not static and change IP all the time. | |
# We cannot associare ElasticIP with ELB. | |
# We want some failover on this tiny stack | |
# AutoscaleGroup cannot associate ELasticIP to an instance. | |
# In internet gateway enabled subnet, instance without ElasticIP cannot use AWS API (no public network) | |
# Here is my solution : | |
# * AutoscaleGroup for resilience of spot instance | |
# * Lambda runing python for ElasticIP association on ASG launch instance event. | |
# LIMITATION: |
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
Verifying that +dhardy is my blockchain ID. https://onename.com/dhardy |
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
2014-07-10 16:25:50,889 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@202] - Accepted socket connection from /192.168.2.74:46653 | |
2014-07-10 16:25:50,890 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@202] - Accepted socket connection from /192.168.2.74:46654 | |
2014-07-10 16:25:50,890 [myid:1] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@785] - Connection request from old client /192.168.2.74:46653; will be dropped if server is in r-o mode | |
2014-07-10 16:25:50,890 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@831] - Client attempting to establish new session at /192.168.2.74:46653 | |
2014-07-10 16:25:50,890 [myid:1] - WARN [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@785] - Connection request from old client /192.168.2.74:46654; will be dropped if server is in r-o mode | |
2014-07-10 16:25:50,890 [myid:1] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@831] - Client a |