updated some files and added dockerproxyscript
This commit is contained in:
0
codegrab/json_save.py
Normal file → Executable file
0
codegrab/json_save.py
Normal file → Executable file
0
codegrab/sort.py
Normal file → Executable file
0
codegrab/sort.py
Normal file → Executable file
3
commands
Executable file → Normal file
3
commands
Executable file → Normal file
@@ -10,3 +10,6 @@ sudo rtcwake -m mem -t +`date -u +%s -d +60minutes`
|
|||||||
|
|
||||||
#Zahlen verteilung analysieren
|
#Zahlen verteilung analysieren
|
||||||
primes 1 100 |gnuplot -p -e 'plot "/dev/stdin"'
|
primes 1 100 |gnuplot -p -e 'plot "/dev/stdin"'
|
||||||
|
|
||||||
|
#use w3m without internet
|
||||||
|
unshare -r -n w3m
|
||||||
|
|||||||
6
depth
6
depth
@@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
file="${1}"
|
||||||
|
stag="${2}"
|
||||||
max=0
|
max=0
|
||||||
open=0
|
open=0
|
||||||
grep -Po "</?div" OFFIZIELLE\ GEWINN...htigung\ und\ letzter\).eml | while read tag; do
|
grep -Po "</?${stag}" "${file}" | while read tag; do
|
||||||
if [[ "$tag" == "<div" ]] ; then
|
if [[ "$tag" == "<${stag}" ]] ; then
|
||||||
(( open++ ))
|
(( open++ ))
|
||||||
else
|
else
|
||||||
(( open--))
|
(( open--))
|
||||||
|
|||||||
1
dockerfiles/docker-waf
Submodule
1
dockerfiles/docker-waf
Submodule
Submodule dockerfiles/docker-waf added at 5137aca176
1
dockerfiles/docker-waf2
Submodule
1
dockerfiles/docker-waf2
Submodule
Submodule dockerfiles/docker-waf2 added at 5137aca176
@@ -1,7 +1,7 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
|
||||||
container_name: elasticsearch
|
container_name: elasticsearch
|
||||||
hostname: elasticsearch
|
hostname: elasticsearch
|
||||||
ports:
|
ports:
|
||||||
@@ -21,7 +21,8 @@ services:
|
|||||||
- elk
|
- elk
|
||||||
|
|
||||||
kibana:
|
kibana:
|
||||||
image: docker.elastic.co/kibana/kibana:6.3.2
|
image:
|
||||||
|
docker.elastic.co/kibana/kibana:6.4.2
|
||||||
hostname: kibana
|
hostname: kibana
|
||||||
ports:
|
ports:
|
||||||
- "5601:5601"
|
- "5601:5601"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
xrandr --output DVI-I-1 --mode 1920x1080 --rotate left --pos 0x0
|
xrandr --output DVI-I-1 --mode 1920x1080 --rotate left --pos 0x0
|
||||||
xrandr --output DP-2 --primary --mode 2560x1440 --pos 1080x350
|
xrandr --output DP-1 --primary --mode 2560x1440 --pos 1080x350
|
||||||
xrandr --output DP-1 --mode 2560x1440 --pos 3640x350
|
xrandr --output DP-2 --mode 2560x1440 --pos 3640x350
|
||||||
|
|||||||
51
screenshot.js
Executable file
51
screenshot.js
Executable file
@@ -0,0 +1,51 @@
|
|||||||
|
//Requires PhantomJS
|
||||||
|
//Install with apt install phantomjs
|
||||||
|
|
||||||
|
var system = require('system');
|
||||||
|
var args = system.args;
|
||||||
|
|
||||||
|
if (args.length === 1) {
|
||||||
|
console.log('Try to pass some arguments when invoking this script!');
|
||||||
|
} else {
|
||||||
|
args.forEach(function(arg, i) {
|
||||||
|
console.log(i + ': ' + arg);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
var scriptname=args.shift()
|
||||||
|
urls=args
|
||||||
|
// var urls = [
|
||||||
|
// "http://www.google.de",
|
||||||
|
// "http://heise.de",
|
||||||
|
// "https://www.test.de"
|
||||||
|
// ]
|
||||||
|
var webpage = require('webpage'),
|
||||||
|
page = webpage.create(),
|
||||||
|
nr = 0;
|
||||||
|
// Seitendimensionen ggf. anpassen
|
||||||
|
//page.viewportSize = {width: 1920, height: 4000};
|
||||||
|
|
||||||
|
var screenshot = function() {
|
||||||
|
if (!urls.length) phantom.exit();
|
||||||
|
var _url = urls.shift();
|
||||||
|
console.log('Öffne Seite ' + (nr+1) + ': ' + _url);
|
||||||
|
page.open(_url, function(status) {
|
||||||
|
if (status !== 'success') {
|
||||||
|
console.log('Netzwerkproblem: ' + status);
|
||||||
|
urls.unshift(_url);
|
||||||
|
setTimeout(screenshot, 1000);
|
||||||
|
} else {
|
||||||
|
++nr;
|
||||||
|
page.evaluate(function() {
|
||||||
|
var style = document.createElement('style'),
|
||||||
|
bg = document.createTextNode('body {background: #fff}; html {width: 1000px};');
|
||||||
|
style.setAttribute('type', 'text/css');
|
||||||
|
style.appendChild(bg);
|
||||||
|
document.head.insertBefore(style, document.head.firstChild);
|
||||||
|
});
|
||||||
|
page.render('screenshot_' + nr + '_' + Date.now() + '.jpg', {format: 'jpeg', quality: 80});
|
||||||
|
setTimeout(screenshot, 2000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
screenshot();
|
||||||
11
update_docker_proxy.sh
Executable file
11
update_docker_proxy.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo -n "Username: "
|
||||||
|
read username
|
||||||
|
echo -n "Password: "
|
||||||
|
read -s password
|
||||||
|
echo "[Service]" > /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||||
|
echo -n "Environment=HTTPS_PROXY='http://" >> /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||||
|
echo -n "${username}:${password}@192.168.193.6:8080/' " >> /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||||
|
echo -n '"NO_PROXY=localhost,127.0.0.1"' >> /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl restart docker
|
||||||
Reference in New Issue
Block a user