Skip to content

Instantly share code, notes, and snippets.

Mickaël MickaelBergem

Block or report user

Report or block MickaelBergem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MickaelBergem
MickaelBergem / install-vuejs-doc.sh
Created Apr 20, 2019
Download and build the Vue.JS documentation for offline access
View install-vuejs-doc.sh
# 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/
@MickaelBergem
MickaelBergem / .project-sentryclirc
Created Jul 11, 2018
Example project-specific .sentryclirc file
View .project-sentryclirc
[defaults]
org=howfast
project=frontend
@MickaelBergem
MickaelBergem / .home-sentryclirc
Created Jul 11, 2018
Example ~/.sentryclirc file
View .home-sentryclirc
[auth] 
token = deadbeef
@MickaelBergem
MickaelBergem / config.js
Created Jul 11, 2018
Project onfiguration file
View config.js
/* 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 {
@MickaelBergem
MickaelBergem / main.js
Last active Jul 11, 2018
Register Sentry in a Vue.js project
View main.js
/* 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
@MickaelBergem
MickaelBergem / poc-security-influx-go-client.go
Created Jun 12, 2018
PoC for command injection in the InfluxDB Go client
View poc-security-influx-go-client.go
package main
import (
"log"
"time"
client "github.com/influxdata/influxdb/client/v2"
)
const database = "poc"
@MickaelBergem
MickaelBergem / celery_poc.py
Created Dec 1, 2017
PoC about a retry bug on Celery
View celery_poc.py
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,
@MickaelBergem
MickaelBergem / timelapse-pi.py
Created Feb 21, 2016
Quick'n dirty script to capture images for a timelapse
View timelapse-pi.py
#!/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)
@MickaelBergem
MickaelBergem / owncloud-docker-compose.yml
Last active Nov 4, 2017
Docker Compose file for setting up an ownCloud server using a PostgreSQL database
View owncloud-docker-compose.yml
# Composition of the containers
owncloud:
image: owncloud
ports:
- 80:80
volumes_from:
- owncloud-data
links:
- postgres:owncloud-db
@MickaelBergem
MickaelBergem / owncloud-docker-compose.yml
Created Aug 26, 2015
`docker-compose.yml` file for setting up an ownCloud server using a PostgreSQL database
View owncloud-docker-compose.yml
# Composition of the containers
owncloud:
image: owncloud
ports:
- 80:80
volumes_from:
- owncloud-data
links:
- postgres:owncloud-db
You can’t perform that action at this time.