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
grammar Expr; | |
prog: (formula NEWLINE)* ; | |
formula: expr (LOGICAL expr)*; | |
expr : expr_real | |
| '(' expr_real ')'; | |
expr_real : 'A' OPERATOR A_value | |
| 'A' IN '(' A_value (',' A_value )* ')' | |
'B' OPERATOR B_value |
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
# -*- encoding: utf-8 -*- | |
# | |
# This script aim to reboot list of scaleway baremetal instance | |
# | |
# prerequisite are the following : | |
# - scw cli installed and can be found in PATH | |
# - root ssh key access without password | |
# - vm os is debian based | |
# - python 3.6 minimum | |
# |
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 s4e.scheduler; | |
import akka.actor.typed.ActorRef; | |
import akka.actor.typed.ActorSystem; | |
import akka.actor.typed.Behavior; | |
import akka.actor.typed.Terminated; | |
import akka.actor.typed.javadsl.AbstractBehavior; | |
import akka.actor.typed.javadsl.ActorContext; | |
import akka.actor.typed.javadsl.Behaviors; | |
import akka.actor.typed.javadsl.Receive; |
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
#!/usr/bin/python3 | |
# this script aim to renew an ovh dyndns record | |
# it musts be executed in cron. | |
# first it check if DNS is up-to-date | |
# and then if necessary update the IP | |
# | |
# it needs two python packages : requests and dnspython | |
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 requests | |
import sys | |
import configparser | |
import json | |
import pathlib | |
# | |
# cli that aim to query the filer REST API | |
# setup a ~/.seaweedfs.cfg | |
# |
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 seaweed.test; | |
import seaweedfs.client.FilerClient; | |
import seaweedfs.client.SeaweedOutputStream; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; |
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 seaweedfs.client; | |
import org.junit.Test; | |
import java.io.IOException; | |
import static org.junit.Assert.assertEquals; | |
public class SeaweedWriteTest { | |
@Test |
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 seaweedfs.client; | |
import org.junit.Test; | |
import java.io.IOException; | |
import java.util.List; | |
public class SeaweedCaseTest { |