- Write the iptables commands that set the default POLICY to ACCEPT on INPUT and OUTPUT chains and DROP on FORWARD chain.
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
package org.example.structures.tree; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
public class Trie { |
package org.example.structures.tree; | |
import java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.Consumer; | |
public class Traversal { | |
public static class Node { |
type Node[T any] struct { | |
Value T | |
Prev *Node[T] | |
} | |
type Stack[T any] struct { | |
Head *Node[T] | |
Size int | |
} |
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo -e "\n\tUsage: $(basename $0) <filename.mov>\n" | |
exit -1 | |
fi | |
INPUT=$1 | |
FILENAME=${INPUT%.*} |
package org.sandbox.jfx; | |
import javafx.animation.Interpolator; | |
import javafx.animation.KeyFrame; | |
import javafx.animation.KeyValue; | |
import javafx.animation.Timeline; | |
import javafx.embed.swing.JFXPanel; | |
import javafx.geometry.Pos; | |
import javafx.scene.Scene; | |
import javafx.scene.control.Button; |
package com.github.zjor; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ScheduledExecutorService; | |
import java.util.concurrent.TimeUnit; | |
import static com.github.zjor.Sandbox.State.GREEN; | |
import static com.github.zjor.Sandbox.State.RED; |
RIGHT = (0, 1) | |
LEFT = (0, -1) | |
UP = (-1, 0) | |
DOWN = (1, 0) | |
def rotate(d): | |
if d == RIGHT: | |
return DOWN | |
elif d == DOWN: | |
return LEFT |
package org.sandbox; | |
import lombok.AllArgsConstructor; | |
import lombok.Builder; | |
import lombok.Data; | |
import java.time.LocalDate; | |
import java.time.LocalDateTime; | |
import java.time.temporal.ChronoField; | |
import java.util.Arrays; |
#include <Arduino_LSM6DSOX.h> | |
#include <WiFiNINA.h> | |
#define TOLERANCE 0.25 | |
enum Side { | |
TOP, BOTTOM, RIGHT, LEFT, FRONT, BACK | |
}; | |
typedef struct { |