yum install gcc-c++
yum install gcc
yum install libpng
yum install libtiff
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 iptables -I OUTPUT -m owner --uid-owner hilman -j DROP | |
sudo iptables -I OUTPUT -p udp --dport 53 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p tcp --dport 53 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p udp --dport 25 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p tcp --dport 25 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p udp --dport 465 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p tcp --dport 465 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p udp --dport 587 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p tcp --dport 587 -j ACCEPT -m owner --uid-owner hilman | |
sudo iptables -I OUTPUT -p udp --dport 993 -j ACCEPT -m owner --uid-owner hilman |
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
wget https://github.com/containerd/containerd/releases/download/v1.6.2/containerd-1.6.2-linux-amd64.tar.gz | |
sudo tar Czxvf /usr/local containerd-1.6.2-linux-amd64.tar.gz | |
sudo mv containerd.service /usr/lib/systemd/system/ | |
wget https://raw.githubusercontent.com/containerd/containerd/main/containerd.service | |
sudo mv containerd.service /usr/lib/systemd/system/ | |
sudo systemctl daemon-reload | |
sudo systemctl enable --now containerd | |
sudo systemctl status containerd |
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 json | |
import pandas as pd | |
import sys | |
import glob, os | |
def jsonToDataframe(file): | |
classify = file.replace(".json","") | |
print("Reading", file) | |
with open(file, 'r') as f: | |
json_buff = json.load(f) |
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
var sensorLib = require("node-dht-sensor"); | |
var temp = { | |
read: function() { | |
var a = sensorLib.read(11,4); | |
return a.temperature.toFixed(1); | |
} | |
}; | |
var hum = { | |
read: function() { | |
var b = sensorLib.read(11,4); |
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
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | |
/* | |
* Copyright (c) 2009 IITP RAS | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation; | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
a |
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
alfabet = "abcdefghijklmnopqrstuvwxyz" | |
alfabet = [alfabet, upper(alfabet), ' '] | |
plain = 'Aku makan es krim' | |
plainafterdecode = '' | |
key = 33 | |
cipher = '' | |
modulus = length(alfabet) | |
for plainsequence = 1:length(plain) | |
for alfabetsequence = 1:length(alfabet) |
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
class CaisarCipher: | |
def __init__(self, plain): | |
self.plain = plain | |
def encode(self, key): | |
cipher = '' | |
for c in self.plain: | |
decimalstring = self.hexToDecimal(self.charToHex (c)) | |
decimalstring = ( decimalstring + key ) % 256 | |
cipher = cipher + self.hexToChar(self.decimalToHex(decimalstring)) |
$ docker pull gaiterjones/darwin-streaming
$ docker run -it -p 1220:1220 -p 8000:8000 -p 7070:7070 -p 8001:8001 -p 554:554 gaiterjones/darwin-streaming
NewerOlder