Instalace vscode https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/ sudo apt update sudo apt install software-properties-common apt-transport-https wget wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add – sudo add-apt-repository „deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main“ sudo apt update sudo apt install code Instalace pluginu vscode – https://lemariva.com/blog/2018/12/micropython-visual-studio-code-as-ide instalace pymakr instalace esptools.py node.js Instalace micropython na device esp32 nebo esp8266 https://lemariva.com/blog/2020/03/tutorial-getting-started-micropython-v20 následně připojení […]
Rubrika: Linux
spree ecommerce howto
Instalace Ruby on Rails and git account sudo snap install ruby –classic nebo https://gorails.com/setup/ubuntu/18.04 https://websiteforstudents.com/installing-postgresql-10-on-ubuntu-16-04-17-10-18-04/ Debuging on vscode https://dev.to/dnamsons/ruby-debugging-in-vscode-3bkj create databasse spree and cms http://www.brice-sanchez.com/5-easy-steps-to-use-refinery-cms-and-spree-e-commerce-on-the-same-ruby-on-rails-application/
Proxmox opravy virtualu
https://icicimov.github.io/blog/virtualization/Adding-RBD-CEPH-remote-cluster-storage-to-Proxmox/ root@hpnode1:~# rbd showmapped id pool image snap device 0 rbd vm-101-disk-1 – /dev/rbd0 1 rbd vm-106-disk-1 – /dev/rbd1 10 rbd vm-180-disk-0 – /dev/rbd10 rbd snap rm rbd/vm-142-disk-1@vzdump ceph health detail ceph pg repair 4.90 pvesm status
proxmox windows 10 poor cpu idle
https://forum.proxmox.com/threads/high-cpu-load-for-windows-10-guests-when-idle.44531/ if somebody can test with editing /usr/share/perl5/PVE/QemuServer.pm if ($winversion >= 7) { push @$cpuFlags , ‚hv_relaxed‘; } to if ($winversion >= 7) { push @$cpuFlags , ‚hv_relaxed‘; push @$cpuFlags , ‚hv_synic‘; push @$cpuFlags , ‚hv_stimer‘; } then systemctl reload pvedaemon and stop/start the vm, to see if it’s reduce cpu.
HomeAssistant a grafy flask
https://github.com/LarsBergqvist/Home-Assistant_configuration pridani iframe ….
Zimbra ActiveSync
The easy way to install Z-Push (support for ActiveSync) on Zimbra 8. It does not require additional servers. The installation happens on the Zimbra server where the Proxy is installed. Since the Zimbra Proxy is nginx, we will use php-fpm to provide a nice way of separating the Z-Push components from the main Zimbra […]
Unbrick Linksys e2600 and upload new firmware
Download firmware from https://advancedtomato.com/downloads/router/e2500v3 add connnector on board near blue WPS button and connect RX,TX and GND to TTL Serial usb minicom connect to /dev/ttyUSB0, 115200, Ctrl+C Work upload by TFTP client, but need classificate what parttion you update https://www.dd-wrt.com/phpBB2/viewtopic.php?p=895421#895421 flash -ctheader : flash1.trx # after this command run tftp # tftp -m binary -c put [firmware] […]
Asterisk – odkazy
https://getvoip.com/blog/2016/09/23/best-open-source-pbx-software/
CLI import CSV into suiteCRM
convert from windows-1250 to UTF8 iconv -f WINDOWS-1250 -t UTF-8 customer.csv > customer.u.csv inspired by this web http://www.jsmackin.co.uk/suitecrm/large-imports-in-suitecrm/ LOAD DATA INFILE '/tmp/customer.u.csv' INTO TABLE contacts FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' (id,description,department,first_name,last_name,primary_address_street,primary_address_city,primary_address_postalcode,phone_home,phone_work,phone_other,phone_fax,phone_mobile,description,alt_address_street,alt_address_street,salutation,alt_address_street,title,primary_address_country,primary_address_state); REBUILD INDEX DB ALTER TABLE contacts DROP KEY idx_cont_last_first; ALTER TABLE contacts DROP KEY idx_contacts_del_last; ALTER TABLE contacts […]
upgrade openwrt and build own image zabbix
download OpenWrt-ImageBuilder untar and jump into directory make image PROFILE=TLWA901 PACKAGES="-wpad-mini wpad luci zabbix-extra-mac80211 zabbix-extra-network zabbix-extra-wifi" copy image into old running AP scp ./bin/ar71xx/openwrt-15.05.1-ar71xx-generic-tl-wa901nd-v2-squashfs-fact ory.bin root@192.168.1.23:/tmp/ ssh into AP ssh root@[ip] cd /tmp sysupgrade -b backup.tar.gz # backup old config sysupgrade -f ./backup.tar.gz ./openwrt-15.05.1-ar71xx -generic-tl-wa901nd-v2-squashfs-factory.bin # install new image and restore old config configure zabbix echo […]
