This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'net/ssh' | |
| print "Host: " | |
| host = gets.chomp! | |
| print "Host alias: " | |
| host_alias = gets.chomp! || host |
This file contains hidden or 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
| load average: 0.02, 0.21, 0.58 | |
| # cat /proc/cpuinfo | grep -i Mhz | |
| cpu MHz : 796.334 | |
| cpu MHz : 862.515 | |
| cpu MHz : 838.770 | |
| cpu MHz : 871.286 | |
| # sensors | grep Core | |
| Core 0: +38.0°C (high = +105.0°C, crit = +105.0°C) |
This file contains hidden or 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
| (oki@~/tmp/jarek)⋆⭑ git init . | |
| Initialized empty Git repository in /Users/oki/tmp/jarek/.git/ | |
| (oki@~/tmp/jarek)(master)⋆⭑ echo "1" > README | |
| (oki@~/tmp/jarek)(master)⋆⭑ git add README | |
| (oki@~/tmp/jarek)(master✱)⋆⭑ git ci -a -m "Init commit" | |
| [master (root-commit) 928e28e] Init commit | |
| 1 file changed, 1 insertion(+) | |
| create mode 100644 README | |
| (oki@~/tmp/jarek)(master)⋆⭑ echo 1 > 1 | |
| (oki@~/tmp/jarek)(master)⋆⭑ echo 2 > 2 |
This file contains hidden or 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
| 019-08-01 17:06:31 INFO (MainThread) [mysensors.gateway_serial] Trying to connect to /dev/ttyACM0 | |
| 2019-08-01 17:06:31 INFO (MainThread) [mysensors] Connected to Serial<id=0xb4f34530, open=True>(port='/dev/ttyACM0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False) | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors.message] Error decoding message from gateway, bad data received: �Eij"Mh1�D��"9b�O | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors] Not a valid message: not enough values to unpack (expected 5, got 0) | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors.message] Error decoding message from gateway, bad data received: )Mh��D��"9��P | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors] Not a valid message: not enough values to unpack (expected 5, got 0) | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors.message] Error decoding message from gateway, bad data received: !�Mhc�%D��"9���Q | |
| 2019-08-01 17:06:34 WARNING (MainThread) [mysensors] Not a |
This file contains hidden or 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
| # modprobe usbserial | |
| # modprobe cp210x | |
| - insert conbee | |
| # lsusb | |
| root@banana-pi-m3:/# lsusb | |
| Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | |
| Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub | |
| Bus 001 Device 012: ID 0451:16a8 Texas Instruments, Inc. | |
| Bus 001 Device 014: ID 1cf1:0030 Dresden Elektronik | |
| Bus 001 Device 003: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| TOPIC="tasmota/cmnd/sonoff1/POWER" | |
| echo "ON and waiting 3 sec" | |
| mosquitto_pub -h localhost -t "$TOPIC" -m "ON" | |
| sleep 3 | |
| echo "Go!" | |
| for ((i=1;i<=6;i++)); |
This file contains hidden or 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
| const path = require("path"); | |
| module.exports = { | |
| entry: ["./src/app.js"], | |
| entry: { | |
| filters: './src/datatable-filters/filters.js', | |
| widgets: './src/widgets/widgets.js', | |
| fileupload: './src/fileupload/fileupload.js', | |
| actions: './src/actions/actions.js', | |
| geo_fences: './src/geo_fences/geo_fences.js', | |
| calendar: './src/calendar/calendar.js', |
This file contains hidden or 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
| Archiving built core (caching) in: /var/folders/ms/xbym8wys30x9573d3grnzt680000gn/T/arduino_cache_1224/core/core_esp8266_esp8266_generic_CpuFrequency_80,VTable_flash,ResetMethod_ck,CrystalFreq_26,FlashFreq_40,FlashMode_qio,FlashSize_512K0,led_2,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,FlashErase_none,UploadSpeed_115200_67fc896dd5a3da059f5174dcb5a3deeb.a | |
| Sketch uses 247904 bytes (49%) of program storage space. Maximum is 499696 bytes. | |
| Global variables use 28008 bytes (34%) of dynamic memory, leaving 53912 bytes for local variables. Maximum is 81920 bytes. | |
| /Users/oki/Library/Arduino15/packages/esp8266/tools/esptool/0.4.13/esptool -vv -cd ck -cb 115200 -cp /dev/cu.usbserial-A900NBTG -ca 0x00000 -cf /var/folders/ms/xbym8wys30x9573d3grnzt680000gn/T/arduino_build_16420/sonoff.ino.bin | |
| esptool v0.4.13 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de> | |
| setting board to ck | |
| setting baudrate from 115200 to 115200 | |
| setting port from /dev/tty.usbserial to /dev/cu.usbserial-A900NBTG | |
| setting address from 0x000 |
This file contains hidden or 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
| const path = require("path"); | |
| module.exports = { | |
| entry: ["./src/app.js"], | |
| entry: { | |
| filters: './src/datatable-filters/filters.js', | |
| widgets: './src/widgets/widgets.js', | |
| fileupload: './src/fileupload/fileupload.js', | |
| actions: './src/actions/actions.js', | |
| geo_fences: './src/geo_fences/geo_fences.js', | |
| charts: './src/charts/main.js', |
This file contains hidden or 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
| #!/usr/bin/perl -w | |
| # Skrypt pisany na ostatnich wakacjach. Miał on na celu wygrywanie nagród | |
| # w internetowym konkursie jednej z tytoniowych firm. Konkurs polegał na | |
| # wpisaniu kodu z paczki papierosów, wygrywała ta osoba, która wpisała kod | |
| # jako pierwsza w danej minucie. Skrypt po odczytaniu kodu z "konfiga" | |
| # robił to automatycznie, a że skrypt działający na serwerze www | |
| # "chwalił się czasem" z którego korzysta, mozna bylo przewidzieć w której | |
| # minucie kliknąć. Statystki działania skryptu: na 36 kodów z paczek króre | |
| # posiadałem aż 17 zostało trafionych, 17 drobnych nagród typu koszulki, |