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
<?php | |
class BlueskyProfileBridge extends BridgeAbstract { | |
const NAME = 'Bluesky Profile Posts'; | |
const URI = 'https://bsky.app'; | |
const DESCRIPTION = 'Fetches posts from a Bluesky profile'; | |
const MAINTAINER = 'Code modified from rsshub (TonyRL https://github.com/TonyRL) and expanded'; | |
const PARAMETERS = [ | |
[ | |
'handle' => [ |
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
sensor: | |
- platform: rest | |
# find your station on https://hydrometrie.wallonie.be/home/observations/precipitation.html?mode=map&station=DGH%2F2348 | |
# here DGH%2F2348 | |
resource_template: https://hydrometrie.wallonie.be/services/KiWIS/KiWIS?request=getTimeseriesValues&service=kisters&type=queryServices&datasource=0&format=json&maxquality=206&forceCacheHeaderTime=300&valuesasstring=false&ts_path=DGH%2F2348%2FPrecip%2FDay.Total&metadata=false&md_returnfields=ts_id%2C%20ts_path%2C%20ts_spacing%2C%20ts_name%2C%20ts_shortname%2C%20station_no%2C%20station_id%2C%20station_latitude%2C%20station_longitude%2C%20station_name%2C%20ts_unitname%2C%20ts_unitsymbol%2C%20stationparameter_name%2C%20ca_sta&from={{ today_at("00:00").isoformat() }}&returnfields=Timestamp%2CValue | |
name: "Hydrometrie Lillois" | |
scan_interval: 1800 | |
unit_of_measurement: "mm" | |
device_class: "precipitation" | |
value_template: "{{ value_json[0]['data'][-1][1] }}" |
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
{ | |
"object": "value", | |
"document": { | |
"object": "document", | |
"data": { | |
"version": 4 | |
}, | |
"nodes": [ | |
{ | |
"object": "block", |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
{ | |
"aliasColors": {}, | |
"bars": false, | |
"datasource": "new influx", | |
"editable": true, | |
"error": false, | |
"fill": 1, | |
"grid": { | |
"threshold1": null, | |
"threshold1Color": "rgba(216, 200, 27, 0.27)", |
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
# -*- coding: utf-8 -*- | |
from celery import Celery, group, chain, chord | |
app = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0?new_join=1') | |
app.conf.CELERY_CHORD_PROPAGATE = True | |
@app.task | |
def add(x): | |
if(x == 3): | |
raise Exception('arg') |
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
package GCPlugins::GCfilms::GCAllocine; | |
################################################### | |
# | |
# Copyright 2005-2010 Christian Jodar | |
# | |
# This file is part of GCstar. | |
# | |
# GCstar is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by |
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 http://download.geofabrik.de/europe/belgium-latest.osm.pbf | |
osm2pgsql/osm2pgsql -S /home/chaos/os/default.style -s -v -x -j -U osm -d gis -H 127.0.0.1 -W belgium-latest.osm.pbf --bbox 3.981,50.645,4.761,51.053 | |
#then sql =) |
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
#!/bin/jython | |
''' | |
This code is released under the WTFPL | |
It tries to fix Urbis osm files (missing addresses in relation ) | |
''' | |
from javax.swing import JOptionPane | |
from org.openstreetmap.josm import Main | |
import org.openstreetmap.josm.command as Command |
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
1470,1477c1470 | |
< void removeChar(char *str, char garbage) { | |
< char *src, *dst; | |
< for (src = dst = str; *src != '\0'; src++) { | |
< *dst = *src; | |
< if (*dst != garbage) dst++; | |
< } | |
< *dst = '\0'; | |
< } | |
--- |
NewerOlder