This file contains hidden or 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
""" | |
Go to https://fr.enerfip.eu/app/accounts/, click "Mon échéancier", then at the bottom of the page click "Exporter au format XLS". | |
""" | |
import os | |
from datetime import datetime | |
import xlrd | |
from ics import Calendar, Event | |
path_to_downloaded_xls_file = os.path.expanduser('~') + '/Downloads/transactions.xls' |
This file contains hidden or 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
# Clone the repository | |
git clone https://github.com/vuejs/vuejs.org.git | |
cd vuejs.org | |
# Install the JS dependencies | |
yarn | |
# Start the server | |
yarn start | |
# The server should now be running on http://localhost:4000/ |
This file contains hidden or 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
[defaults] | |
org=howfast | |
project=frontend |
This file contains hidden or 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
[auth] | |
token = deadbeef |
This file contains hidden or 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
/* eslint-env node */ | |
// ... | |
// We store the release ID in a VUE_APP_SENTRY_RELEASE environment variable | |
export const SENTRY_RELEASE = process.env.VUE_APP_SENTRY_RELEASE; | |
// ... | |
export default { |
This file contains hidden or 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
/* eslint-env node */ | |
import Vue from 'vue'; | |
// You should not have to import anything special before Raven | |
// Import Raven, Sentry's SDK | |
import Raven from 'raven-js'; | |
import RavenVue from 'raven-js/plugins/vue'; | |
// Import our local "config.js" file |
This file contains hidden or 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 main | |
import ( | |
"log" | |
"time" | |
client "github.com/influxdata/influxdb/client/v2" | |
) | |
const database = "poc" |
This file contains hidden or 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 celery import Celery | |
class config(object): | |
CELERY_BROKER_CONNECTION_TIMEOUT = 1 # 1s | |
CELERY_BROKER_CONNECTION_MAX_RETRIES = 0 | |
CELERY_BROKER_CONNECTION_RETRY = False | |
CELERY_TASK_PUBLISH_RETRY = False | |
CELERY_TASK_PUBLISH_RETRY_POLICY = { | |
'max_retries': 0, |
This file contains hidden or 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
#!/usr/bin/python3 | |
import os | |
import time | |
from datetime import datetime | |
while(True): | |
os.system("/usr/bin/raspistill -o 'timelapse-{}.jpg'".format(datetime.now().isoformat())) | |
time.sleep(15) |
This file contains hidden or 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
# Composition of the containers | |
owncloud: | |
image: owncloud | |
ports: | |
- 80:80 | |
volumes_from: | |
- owncloud-data | |
links: | |
- postgres:owncloud-db |
NewerOlder