mathz.nu Asterisk Blacklist Hobby webbhotell

2018/11/26

Selinux – Permission denied on accessing host directory in docker

Filed under: Docker — Mathz @ 11:18

chcon -Rt svirt_sandbox_file_t /path/to/volume

2018/11/18

Audacity startar inte “Audacity is already running” OSX

Filed under: OsX — Mathz @ 18:07


cd ~/Library/Application Support/audacity/SessionData
rm -rf audacity-lock-*

2018/11/12

Elasticsearch commands

Filed under: Server — Mathz @ 14:21

curl localhost:9200/_cat/indices?v
curl -XGET ‘http://127.0.0.1:9200/wikidb/page/_search?q=wikidb’

2018/10/02

Vilmas API

Filed under: Server — Mathz @ 11:19

Det verkar som att Vilma ska släppa ett öppet API. Första steget är att publicera sina priser.
https://api.vimla.se/abroad

2018/08/30

Zoneminder in Docker

Filed under: Docker,Server — Mathz @ 17:15

docker swarm init
docker stack deploy -c docker-compose.yml zm
echo “wait for a few seconds to MySQL start for the first time”
docker service scale zm_web=1
echo “go to ZoneMinder console Options-Servers and declare node.0->stream0.localhost and node.1 … node.3, finally start”
docker service scale zm_stream=3
docker service ls

Good debug commands
sudo docker service ps zm_web
sudo docker service ls
sudo docker service rm

Boot Raspberry PI from iSCSI

Filed under: Server — Mathz @ 16:49

https://www.berryterminal.com/doku.php/berryboot

2018/08/29

Docker

Filed under: Docker,Server — Mathz @ 20:37

docker build

docker-compose up

docker ps

docker exec -i -t <NAMES> /bin/bash

docker logs <NAMES>

docker-compose.yaml

version: '3'
services:
influxdb:
image: influxdb:1.5.4
restart: always
volumes:
- /media/space/dockerVolumes/influxdb.1.5.4:/var/lib/influxdb
ports:
- 8086:8086

/lib/systemd/system/docker.service with your favorite text editor and replace the following line where /new/path/docker is a location of your new chosen docker directory:
FROM:
ExecStart=/usr/bin/docker daemon -H fd://
TO:
ExecStart=/usr/bin/docker daemon -g /new/path/docker -H fd://

2018/05/14

Insert Joomla admin

Filed under: Uncategorized — Mathz @ 21:15

INSERT INTO `s12kv_users` (`name``username``password``params``registerDate``lastvisitDate`, lastResetTime) VALUES (‘Administrator2’‘admin2’,‘d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199’‘2018-01-01 00:00:00’‘2018-01-01 00:00:00’‘2018-01-01 00:00:00’)

 

INSERT INTO `s12kv_user_usergroup_map` (`user_id`,`group_id`)
VALUES (LAST_INSERT_ID(),'8');

2018/04/15

Recreate kernel image

Filed under: Server — Mathz @ 13:01

sudo update-initramfs -u -k 3.13.0-143-generic

sudo update-grub

2018/03/30

Asus P8P67 PRO

Filed under: Uncategorized — Mathz @ 19:53

UserBenchmarks: Game 19%, Desk 57%, Work 40%
CPU: Intel Core i7-2600K – 67.8%
GPU: Nvidia Quadro K2000 – 10.9%
SSD: Freenas iSCSI Disk 1TB – 23.9%
SSD: Intel(r) 910 200GB – 171.9%
SSD: Intel(r) 910 200GB – 172%
SSD: Intel(r) 910 200GB – 172%
SSD: Intel(r) 910 200GB – 172.1%
SSD: Freebsd iSCSI Disk 107GB – 29.3%
SSD: Intel 530 Series 240GB – 55.7%
HDD: Seagate ST3160815AS 160GB – 39.3%
RAM: Corsair Vengeance DDR3 1600 C9 4x4GB – 49.4%
MBD: Asus P8P67 PRO

Older Posts »

Powered by WordPress