Skip to content

Instantly share code, notes, and snippets.

View ejemba's full-sized avatar

Epo Jemba ejemba

  • Kametic
  • France
View GitHub Profile
@ejemba
ejemba / extension.js
Created March 12, 2020 18:31
fix for firefox extension gTile on gnome 3.36
/*****************************************************************
This extension has been developed by vibou
With the help of the gnome-shell community
Edited by Kvis for gnome 3.8
Edited by Lundal for gnome 3.18
Edited by Sergey to add keyboard shortcuts and prefs dialog
@ejemba
ejemba / plop.md
Created August 9, 2018 12:10
Peut-on faire du libre sans vision politique ?

Peut-on faire du libre sans vision politique ? Suite à sa campagne "Dégooglisons Internet" (oct 2014 - oct 2017), l'association a fait le bilan, calmement. Et il n'est pas brillant. En quelques années, les GAFAM/BATX/NATU (Google, Apple, Facebook, Amazon, Microsoft, Baidu, Alibaba, Tencent, Xiaomi, Netflix, AirBnb, Tesla, Uber) ont "colonisé" le monde, en formattant nos interactions, en normalisant nos relations, en orientant nos consommations, en contrôlant notre pouvoir d'agir. À l'oeuvre derrière cette mécanique, une mutation économique et sociale : le capitalisme de surveillance.

Avec sa nouvelle feuille de route "Contributopia", Framasoft souhaite mettre en place des outils et accompagner des dynamiques collectives qui permettraient de pouvoir agir, plutôt que de subir. Il ne s'agit plus seulement de savoir « ce que nous refusons » (le logiciel propriétaire, les attaques contre nos libertés fondamentales, etc), mais aussi de définir « quel monde nous souhaitons », et comment le logiciel libre et les co

// Server.java
@Retention(RetentionPolicy.RUNTIME)
@Qualifier
@Documented
public @interface Server
{
}
// Main.java
@ejemba
ejemba / Test.java
Created March 20, 2017 15:58
How to get Method Reference for all methods in a class (Java)?
import java.lang.invoke.LambdaMetafactory;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodType;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@ejemba
ejemba / txt
Created February 13, 2017 11:14
Erreur Maven
AVERTISSEMENT: Error injecting: org.seedstack.maven.GenerateMojo
com.google.inject.ProvisionException: Guice provision errors:
1) No implementation for org.eclipse.aether.RepositorySystem was bound.
at ClassRealm[plugin>org.seedstack:seedstack-maven-plugin:2.4.0, parent: sun.misc.Launcher$AppClassLoader@677327b6]
while locating org.seedstack.maven.components.ArtifactResolver
while locating org.seedstack.maven.GenerateMojo
1 error
@ejemba
ejemba / map_filter_reduce.go
Created December 14, 2016 20:16 — forked from icholy/map_filter_reduce.go
chaining channels in go
package main
import (
"unicode/utf8"
)
type Item string
type Stream chan Item
type Acc string
@ejemba
ejemba / translate.go
Created April 28, 2016 14:49 — forked from hvoecking/translate.go
Golang reflection: traversing arbitrary structures
// Traverses an arbitrary struct and translates all stings it encounters
//
// I haven't seen an example for reflection traversing an arbitrary struct, so
// I want to share this with you. If you encounter any bugs or want to see
// another example please comment.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Heye Vöcking
//
@ejemba
ejemba / gist:6f49c3a4c85b0fc20ca8871c4ff1a03e
Created March 31, 2016 08:00 — forked from sidnei/gist:7041338
Using lvm thin provisioning
# Using lvm thin provisioning, per https://github.com/lxc/lxc/pull/67
# First we create a volume group to hold the thin pool
$ sudo vgcreate lxc /dev/sde3
# Then create a thin-pool named 'tp' within that volume group
$ sudo lvcreate -l 90%VG --type thin-pool --thinpool tp lxc
@ejemba
ejemba / README.txt
Created January 15, 2016 23:04 — forked from ncw/README.txt
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh [email protected]
Run the server in one terminal
go run server.go