Skip to content

Instantly share code, notes, and snippets.

View mildred's full-sized avatar

Mildred Ki'Lya mildred

View GitHub Profile
@mildred
mildred / Théorie du Genre et Transsexualité.md
Last active May 10, 2016 06:28
Théorie du Genre et Transsexualité

Théorie du Genre et Transsexualité

Mildred, 1er Février 2014, 9 mai 2016

Qu'est-ce que la transsexualité ? Quel rapport avec la théorie du genre ? Comment les deux vont-ils ou ne vont-ils pas ensemble ? Je vous propose une petite exploration, fruit de mon expérience personnelle.

Définitions

@mildred
mildred / README.md
Created April 29, 2016 13:07
Énergeie libre et force contre électromotrice

Points clefs pour réduire les dépenses énergétiques dans une machine tournante électrique :

  • Lorsque le champ magnétique d'une bobine s'effondre, il est possible de récupérer le courant en sortie de la bobine provenant de l'effondrement du champ magnétique et stocker l'énergeie dans un cendensateur pour la réutiliser et réalimenter une bobine peu après. Le fait qu'une self décale dans le temps le passage du courant permet cela.
  • Trouver un agencement de la machine tournante qui permet d'éviter que le champ magnétique soit orthogonal aux fils. Utiliser une technique de switching qui coupe les bobines lorsqu'elles sont en situation contre productive.
  • Relié au premier point : alimenter les bobines par des impulsions qui prennent fin rapidement et récupérer l'énergie de l'effondrement du champ magnétique
  • Réduire la résistance du fil. En restant sur du cuivre, c'est difficile.

Références : Paul Babcock.

@mildred
mildred / README.md
Created April 11, 2016 07:59
tuleap import script

Run import.sh to import project into tuleap running in docker. For it to work, you must:

cd path/to/tuleap/source/repository/
mkdir -p test_import
vim test_import/import.sh

Usage:

import.sh optvar=value

@mildred
mildred / README.md
Last active February 10, 2022 14:48
multifirefox

multifirefox: have multiple firefox profiles

Equivalent of firefox -P PROFILE_NAME -no-remote but with the remote enabled.

Multifirefox is a way to have multiple firefox profiles and open links in them. There are multiple ways of invocation:

multifirefox PROFILE_NAME ...

Start Firefox with the profile PROFILE_NAME (or open a new window in the existing firefox instance).

@mildred
mildred / README.md
Last active March 4, 2016 13:35
Deploying package with IPFS

Declare a Repository

  • create a IPNS namespace (key pair) for the binary tree
  • create a IPNS namespace (key pair) for the debian repository

Building

  • build the package (manual process or managed by a continuous deployment tool like go.cd or strider
@mildred
mildred / README.md
Last active February 4, 2016 08:41
WebAssembly Dynamic Linking

WebAssembly Modules Virtual Memory and Dynamic Linking

A module can link to another module to access its functions. There are multiple ways to link modules together depending on how we want to share the virtual memory:

  • the importer and the imported share the same virtual memory
  • the importer and the imported don't share any virtual memory segment
  • the imported is loaded in the virtual memory of the importer but doesn't have access to it
  • the imported module have access to the importer virtual memory, but the importer don't have access to the imported memory
@mildred
mildred / README.md
Created February 3, 2016 09:33
Generate Sys-V services managed by daemontools for auto restart

sysvservice.sh usage

Run ./sysvservice.sh generate to generate a Sys-V script that uses daemontools to manage the service (auto restart, ...)

If you want to upgrade to a new version of this script, run ./sysvservice.sh generate old-service-file to keep the same configuration with the new version of the script.

@mildred
mildred / README.md
Created January 29, 2016 20:24
openwrt and raspberry config

OpenWRT Configuration

This configuration makes a WAN interface from a gretun tunnel. The WAN IP is configured in DHCP.

In this configuration, the WAN is the private network of a 4G LTE modem/router that is plugged into a raspberry pi on the house wall. The raspberry py provides the modem/router network on a gretun tunnel.

  • uptun0: gretap tunnel to raspberry py, attaches to upbridge0
  • upbridge0: dhcp client to uplink (the gretap tunnel
@mildred
mildred / freetext.ft
Last active November 20, 2015 13:01
Free Text Language
Section License
===============
This code is in the public domain.
Section Header
This is the name of the compilation unit.
- name := "freetext";
@mildred
mildred / README.md
Created September 14, 2015 10:49
IPLD thoughts

We go round and round on the same topics in IPLD, so I would like to summarize them. Let's start by stating what we would like:

  • we can put raw JSON in it, and that should work
  • we would like to be compatible with JSON-LD (or at least Linked Data)
  • we want to specify a context/schema that the data is to be interpreted against
  • we would like to have easy detection for links where we concatenate each dict key from the first level to the last using / and we get a link path

These are not directly compatible with each other. We can make several decisions, and this would lead to consequences. I'd like to present it as a tree:

  • We want any arbitrary JSON we put in the system to be strictly the same (same model) as the wire format