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
- van egy host | |
- van neki mondjuk 1000 mbit uplinkje | |
- van benne x db guest (mondjuk 30) | |
guest-ekből backupot kéne nyomni felfelé (duply) | |
a probléma az, hogy ha egyszerre kettőnél több backup job fut (két külön guestben) akkor túlzottan megeszi a gépet (I/O-ban) | |
nem akarjuk a backupot nagyon szétteríteni 23-tól 6-ig jó lenne ha végezne | |
a backupok hossza kb. megjósolhatatlan | |
hogyan oldanád meg? |
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
#include <PubSubClient.h> | |
#include <ESP8266WiFi.h> | |
const char* ssid = "................."; | |
const char* password = "................"; | |
char* topic = "esp8266_arduino_out"; | |
char* server = "iot.eclipse.org"; | |
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
# Sets CORS headers for request from example1.com and example2.com pages | |
# for both SSL and non-SSL | |
SetEnvIf Origin "^https?://[^/]*(example1|example2)\.com$" ORIGIN=$0 | |
Header set Access-Control-Allow-Origin %{ORIGIN}e env=ORIGIN | |
Header set Access-Control-Allow-Credentials "true" env=ORIGIN | |
# Always set Vary: Origin when it's possible you may send CORS headers | |
Header merge Vary Origin |
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 base64 | |
s='abc' | |
b = s.encode("UTF-8") | |
e = base64.b64encode(b) | |
f = e.decode("UTF-8") | |
print(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
#cloud-config | |
runcmd: | |
- [touch, /root/cloud-init-started] | |
- [dd, if=/dev/zero, of=/swapfile, bs=1M, count=2048 ] | |
- [chmod, "0600", /swapfile] | |
- [mkswap, /swapfile] | |
- [swapon, /swapfile] | |
- [touch, /root/cloud-init-finished] |
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
#cloud-config | |
package_update: true | |
package_upgrade: true | |
swap: | |
filename: /swapfile | |
size: "2147483648" | |
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 org.openqa.selenium.By as By | |
import org.openqa.selenium.winium.DesktopOptions as DesktopOptions | |
import org.openqa.selenium.winium.WiniumDriver as WiniumDriver | |
import com.kms.katalon.core.logging.KeywordLogger | |
WiniumDriver driver = null | |
KeywordLogger log = new KeywordLogger() | |
String appPath = 'C:/windows/system32/calc.exe' | |
DesktopOptions option = new DesktopOptions() |
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
docker volume create awstats-db | |
d1.sh: | |
docker run -e LOG_FORMAT="%host %other %other %time1 %methodurl %code %bytesd" --rm -v /Users/gabrielakos/workspace/alfa/awstats/logs:/web-logs:ro -v awstats-db:/var/lib/awstats openmicroscopy/awstats /web-logs/access_* | |
d2.sh: | |
docker run --rm -p 8080:8080 -v awstats-db:/var/lib/awstats openmicroscopy/awstats httpd |
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
{ | |
"chrome": { | |
"default": "77.0", | |
"versions": { | |
"76.0": { | |
"image": "selenoid/chrome:76.0", | |
"port": "4444", | |
"path": "/" | |
}, | |
"77.0": { |
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
APT::Periodic::Enable "1"; | |
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; |