-
1A Limites des usagers. Etablir des limites claires entres les usagers légitimes et les non-usagers.
-
1B Limites de la resource. Etablir des limites claires de la resource et des parts que chacun peut prélever sans l'épuiser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -*- coding: UTF8 -*- | |
if [ $# -eq 0 ] | |
then | |
echo "usage: $0 <mailbox_pattern>" | |
exit 1 | |
fi | |
PATTERN=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import sys | |
from json import loads, dumps | |
import redis.asyncio as redis | |
async def main(argv): | |
pool = redis.ConnectionPool.from_url("redis://redis") | |
client = redis.Redis.from_pool(pool) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "<h1>Utilisateurs connectes</h1>" | |
set -x | |
total=0 | |
for interface in $(iwinfo |grep "ESSID:" | cut -d' ' -f1); do | |
nb_interface_users=$(iwinfo $interface assoclist | grep dBm | wc -l) | |
total=$((total + nb_interface_users)) | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# from https://gist.github.com/cb372/4567f624894706c70e65 | |
es_url=$1 | |
index=$2 | |
response=$(curl -s -H 'content-type: application/json' $es_url/$index/_search?scroll=1m -d @query.json) | |
scroll_id=$(echo $response | jq -r ._scroll_id) | |
hits_count=$(echo $response | jq -r '.hits.hits | length') | |
hits_so_far=hits_count | |
echo Got initial response with $hits_count hits and scroll ID $scroll_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EVAL "local vals = redis.call('SMEMBERS', KEYS[1]); local len = redis.call('SCARD', KEYS[1]); for k, v in pairs(vals) do redis.call('HSET', KEYS[2], v, '0'); end; return len;" 2 setkey mapkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.icij.datashare; | |
import java.util.LinkedHashSet; | |
import java.util.Map; | |
import java.util.concurrent.*; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.concurrent.atomic.AtomicReference; | |
import java.util.function.Consumer; | |
import java.util.function.Supplier; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.icij.datashare; | |
import java.util.HashMap; | |
import java.util.Map; | |
import static java.util.Arrays.stream; | |
import static java.util.Collections.unmodifiableMap; | |
public class FileExtension { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo woeusb --target-filesystem NTFS --device Downloads/Win10_1809Oct_English_x64.iso /dev/sda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ngrep '' -d lo udp port 514 & | |
logger -n localhost -p local7.info log by udp |
NewerOlder