Skip to content

Instantly share code, notes, and snippets.

@maxisoft
maxisoft / BloomFilter.cs
Last active March 29, 2022 10:18 — forked from richardkundl/BloomFilter.cs
Bloom filter implementation in c#.
#nullable disable
namespace BloomFilter {
using System;
using System.Collections;
/// <summary>
/// Bloom filter.
/// </summary>
/// <typeparam name="T">Item type </typeparam>
public class Filter<T> {
# remove logicom shits
adb shell pm uninstall --user 0 com.adups.fota
adb shell pm disable-user --user 0 com.sprd.systemupdate
adb shell pm uninstall -k --user 0 com.adups.fota.sysoper
adb shell pm uninstall -k --user 0 com.ruskin.grote
adb shell pm disable-user --user 0 com.cs.cittest
adb shell pm uninstall -k --user 0 kst.ibeuuytgskxtir.dxswrhwo
adb shell pm uninstall -k --user 0 com.logicom.portail
# remove sprd shits
@maxisoft
maxisoft / Program.cs
Last active November 22, 2020 14:52
LamarCrashOnNoNamespace
using System;
using Lamar;
using LamarCrashOnNoNamespace;
namespace LamarCrashOnNoNamespace
{
class Program
{
static void Main(string[] args)
login: yourlogin@somemail.domain
password: yourpassword
# list here the records you want to add/update
record:
# the following will update both the A and AAAA records with your current ips (v4 and v6).
# If you don't have an ipv6 connection, the program'll detect it and will only update the A record (ipv4)
- domain: test.tk
# the following will update both your subdomain's A and AAAA records with your current ips (v4 and v6)
/******************************************************************************
* FILE: mpi_mm.c
* DESCRIPTION:
* MPI Matrix Multiply - C Version
* In this code, the master task distributes a matrix multiply
* operation to numtasks-1 worker tasks.
* NOTE: C and Fortran versions of this code differ because of the way
* arrays are stored/passed. C arrays are row-major order but Fortran
* arrays are column-major order.
* AUTHOR: Blaise Barney. Adapted from Ros Leibensperger, Cornell Theory
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
// macro pour tester le cas de tableaux non egaux.
//mettre a 0 pour que les 2 tableaux soit egaux. 1 sinon.
#define ARRAY_NOT_EQUAL 0
  • ajouter une oeuvre (utilisateur / admin)

  • l'affichage de l'identifiant de l'administrateur doit etre differencié d'un utilisateur lambda

  • l'utilisateur (ou admin) peut se déconnecté

  • l'utilisateur (ou admin) ne peut pas se se reidentifier sans s'etre préalablement déco

  • l'utilisateur (ou admin) reste connecté durant la navigation

  • se logger de maniere secure (comme steam)

package org.examples;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.io.IOException;
import java.net.*;
import java.util.ArrayList;
import java.util.List;
public class Client2 {
@maxisoft
maxisoft / java.xml
Last active November 9, 2015 14:44 — forked from anonymous/java.xml
<?xml version="1.0" encoding="UTF-8"?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.4-b01. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://examples.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://examples.org/" name="ContactBookImplService">
<types>
<xsd:schema>
<xsd:import namespace="http://examples.org/" schemaLocation="http://127.0.0.1:9999/ws/contact-book?xsd=1"></xsd:import>
</xsd:schema>
</types>
<message name="listContacts"></message>
<message name="listContactsResponse">
<part name="return" type="tns:contac
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Reboot" boolean:true