Skip to content

Instantly share code, notes, and snippets.

View AmedeeBulle's full-sized avatar

Philippe Vanhaesendonck AmedeeBulle

View GitHub Profile
INFO global: Vagrant version: 2.2.9
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/plugins/synced_folders/nfs/plugin.rb

Keybase proof

I hereby claim:

  • I am amedeebulle on github.
  • I am amedeebulle (https://keybase.io/amedeebulle) on keybase.
  • I have a public key whose fingerprint is 0E6B 420D 6DF2 87E8 90D6 9539 6BC6 0C40 9B34 E138

To claim this, I am signing this object:

@AmedeeBulle
AmedeeBulle / ServiceError.md
Created March 18, 2020 10:49
Handling Service Errors in OCI CLI

Handling Service Error with OCI CLI can be a bit cumbersome but still possible.

Let's take the following example:

$ response=$(oci os object put -ns my-ns -bn my-bucket --file my-file --query etag --raw-output)
Uploading object [####################################] 100%ServiceError:
{
"code": "BucketNotFound",
"message": "Either the bucket named 'my-bucket' does not exist in the namespace 'my-ns' or you are not authorized to access it",
"opc-request-id": "fra-1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
@AmedeeBulle
AmedeeBulle / key_transition_2018_03_02.txt
Created March 2, 2018 22:37
GPG Key Transition Statement
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1,SHA512
OpenPGP Key Transition Statement for Philippe Vanhaesendonck
I have created a new OpenPGP key and will be transitioning away from my old
key. The old key has not been compromised and will continue to be valid for
some time, but I prefer all future correspondence to be encrypted to the new
key, and will be making signatures with the new key going forward.
@AmedeeBulle
AmedeeBulle / build-tmux.sh
Created February 17, 2018 17:40
Script to build tmux on OSX (tested on High Sierra) without package manager (no HomeBrew, MacPorts, ...)
#!/bin/bash
#
# Compile tmux from sources on OSX 10.13.3 (High Sierra)
#
# Latest tmux
TMUX_VER=2.6
# Pre-requisites
# Latest libevent
LIBEVENT_VER=2.1.8-stable
@AmedeeBulle
AmedeeBulle / do_make.sh
Created July 1, 2017 13:30
bUltimaker build scripts
#!/bin/bash
#
# Clone of _do_make.bat for linux/osx
#
# Script is generic for all UM firmwares, but needs the 'right' branch of the sources!
#
# My setups
# rm -rf /tmp/x && ./do_make.sh -t UMOP -D DISPLAY_FAN -D ACTION_COMMAND -D FAN_KICKSTART_TIME=300 -D FAN_MIN_PWM=85 -D TWEAK_TEMP -d /tmp/x -y
# rm -rf /tmp/x && ./do_make.sh -t UMO -fgsc -D ULTIMAKER_GT2 -D FAN_KICKSTART_TIME=300 -D FAN_MIN_PWM=25 -D SLOW_PWM_FAN -D TWEAK_TEMP -d /tmp/x -y
# rm -rf /tmp/x && ./do_make.sh -t HBK -fgsc -D ACTION_COMMAND -D ULTIMAKER_GT2 -D FAN_KICKSTART_TIME=300 -D FAN_MIN_PWM=25 -D SLOW_PWM_FAN -D TWEAK_TEMP -d /tmp/x -y
@AmedeeBulle
AmedeeBulle / e2s.py
Created July 11, 2016 14:34
Simple script to import (Evernote) notes to Simplenote
#!/usr/bin/env python
"""
e2s: simple script to import (Evernote) notes to Simplenote
This script relies on two projects:
- ever2simple (https://github.com/claytron/ever2simple) to covert Evernote ENEX files to JSON
- simplenote python API (https://pypi.python.org/pypi/simplenote) used in this script to upload the notes
Note: Simplenote expects dates in UNIX Timestamp format. I have posted a pull request for ever2simple
to issue dates in this format, but so far the PR is still pending. In the meantime you shoudl use my fork
@AmedeeBulle
AmedeeBulle / gist:f2a02d86aee4f8c8dea0
Created August 21, 2014 12:44
Octoprint logout stack trace
2014-08-21 14:36:12,672 - octoprint - ERROR - Exception on /api/logout [POST]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/Flask-0.9-py2.7.egg/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)