Skip to content

Instantly share code, notes, and snippets.

🌍
🔥⌛️(⧖)

Xavier Damman xdamman

🌍
🔥⌛️(⧖)
Block or report user

Report or block xdamman

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
@xdamman
xdamman / transparent-funding.md
Created Jul 19, 2019
Tool for transparent funding (donations / expenses)
View transparent-funding.md

Transparency is important, especially when it comes to funding. As the [Extinction Rebellion] movement grows internationally, everyone should be able to know at all times how much has been raised at the global level and how is the money used to develop the movement. First, I'll share our experience at XR Belgium, then I'll share a proposal for the movement in general.

How we do it at XR Belgium

We are using Open Collective. See https://opencollective.com/XR-Belgium

People can donate money online or by bank transfer. Every time anyone needs money (for supplies and material, renting a place for our general assemblies, etc.), they simply submit the expense or the invoice of the vendor to the collective. All expenses are public and transparent (see https://opencollective.com/XR-belgium/expenses).

@xdamman
xdamman / gist:9a6774d758c1333e651947ad5e104860
Created Feb 7, 2019
npx semantic-release mediumexporter
View gist:9a6774d758c1333e651947ad5e104860
npx semantic-release
[4:44:39 PM] [semantic-release] › ℹ Running semantic-release version 15.13.3
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
[4:44:40 PM] [semantic-release] › ✔ Loaded plugin "success" from "@semantic-release/github"
@xdamman
xdamman / laura-addition.sh
Created Aug 25, 2018
Simple program to add two numbers and say them for my 5 y/o daughter.
View laura-addition.sh
run() {
Q1="Enter a first number:"
echo $Q1
say $Q1
read A
say $A
Q2="Enter a second number $1:"
echo $Q2
say $Q2
read B
View blockstack
Verifying my Blockstack ID is secured with the address 1KNrgdqojAyFDx7tWVhsDN2Fbt5YJ2dZMt https://explorer.blockstack.org/address/1KNrgdqojAyFDx7tWVhsDN2Fbt5YJ2dZMt
View .profile
alias reload="source ~/.profile"
#function ssh {
# ~/.scripts/iterm-setName $1
# /usr/bin/ssh $1
#}
# git alias
alias gco="git commit -am"
alias glog='git log --date-order --all --graph --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d %Creset%s"'
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created Jul 2, 2014
Install latest ffmpeg on ubuntu 12.04 or 14.04
View install_ffmpeg_ubuntu.sh
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
View gist:e3387e1adf51aeb021d0

Compile avconv on Ubuntu

This guide supports Ubuntu Precise Pangolin 12.04, Ubuntu Oneiric Ocelot 11.10, Ubuntu Natty Narwhal 11.04, and Ubuntu Maverick Meerkat 10.10. Separate guides are available for Ubuntu Lucid Lynx 10.04 and Ubuntu Hardy Heron 8.04. This guide will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the Filtering Guide).

Note: Copy and paste the whole code box

View keybase.md

Keybase proof

I hereby claim:

  • I am xdamman on github.
  • I am xdamman (https://keybase.io/xdamman) on keybase.
  • I have a public key whose fingerprint is 44A7 D05F F1F6 D0B8 0F79 15A6 1426 1B13 FD43 0CDC

To claim this, I am signing this object:

@xdamman
xdamman / install ghost on macosx 10.9.sh
Last active Dec 30, 2015
How to install https://ghost.org on your local machine (MacOSX 10.9)
View install ghost on macosx 10.9.sh
#!/bin/bash
git clone https://github.com/TryGhost/Ghost.git
cd Ghost
git submodule update --init
sudo gem install sass && sudo gem install sass
sudo npm install -g grunt-cli
npm install
grunt init
npm start
open "http://localhost:2368/ghost/"
@xdamman
xdamman / varnish-jsonp.vcl
Last active Dec 27, 2015
Make Varnish 3.x handle jsonp requests so that we can cache them (even when jQuery generates random callback function names when using $.getJSON). Inspired by https://gist.github.com/simonw/640331 and adapted for Varnish 3.x.
View varnish-jsonp.vcl
#<jsonp>
# We go BACK to varnish to get it to generate an ESI template that
# generates a JSON-P response.
backend jsonp_template_backend {
.host = "127.0.0.1";
.port = "80"; # use the port that varnish is listening on
}
# <jsonp>
# How the jsonp_template_backend dispatches to the ESI generating code:
You can’t perform that action at this time.