Skip to content

Instantly share code, notes, and snippets.

View xdamman's full-sized avatar
🌍
🌱🌻

Xavier Damman xdamman

🌍
🌱🌻
View GitHub Profile
@xdamman
xdamman / install_ffmpeg_ubuntu.sh
Created July 2, 2014 21:03
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/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
@xdamman
xdamman / upgradeNode.js
Created December 19, 2012 19:19
Upgrade the default Joyent Smart Machine Node Image 1.3.3 to using node 0.8.16 (I don't like the newest 1.4.0 image since it doesn't come with out-of-the box push to a git repo and deploy)
#!/usr/bin/env bash
pkgin -f update
pkgin install gcc-compiler
mkdir src
cd src
curl -O http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
gtar -xpf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure --with-dtrace --prefix=/opt/nodejs/v0.8.16/
gmake install
@xdamman
xdamman / top domains
Last active February 23, 2022 20:23
363202,HOTMAIL.COM
187090,GMAIL.COM
99806,SKYNET.BE
60011,TELENET.BE
59293,YAHOO.COM
56286,YAHOO.FR
22528,HOTMAIL.FR
17766,PANDORA.BE
12912,MSN.COM
11061,SCARLET.BE
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreihgp45kh3pfp6b7lygvqk7mjgeeoc7h5enb5ha7v5lpl5qa323uku ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
@xdamman
xdamman / transparent-funding.md
Created July 19, 2019 17:57
Tool for transparent funding (donations / expenses)

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 February 7, 2019 15:46
npx semantic-release mediumexporter
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 August 25, 2018 09:27
Simple program to add two numbers and say them for my 5 y/o daughter.
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
Verifying my Blockstack ID is secured with the address 1KNrgdqojAyFDx7tWVhsDN2Fbt5YJ2dZMt https://explorer.blockstack.org/address/1KNrgdqojAyFDx7tWVhsDN2Fbt5YJ2dZMt
@xdamman
xdamman / Accept all friends requests.js
Created December 21, 2012 07:13
Facebook friend requests zero I had 236 pending friends requests, so I decided to accept them all as a gesture before the end of the world. I wasn't ready to click on them all so just made that quick script you can run in the console when you are on the page https://www.facebook.com/friends/requests/
var a = document.getElementsByTagName('input');
for(var i=0;i<a.length;i++) if(a[i].getAttribute('value')=='Confirm') a[i].click();