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
| lsusb | |
| ls /dev/ttyUSB? | |
| ifconfig -a | |
| ssh -oHostKeyAlgorithms=+ssh-rsa root@192.168.2.2 | |
| config get TCU500 | |
| qca9377 wifi ap start | |
| echo 1 > /sys/class/gpio/gpio24/value | |
| cm info |
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
| version: "3.4" | |
| # ------------------------------------------------------------------ | |
| # This runs your local FlexMeasures code in a docker compose stack. | |
| # Two FlexMeasures instances are spun up, one for serving the web | |
| # UI & API, one to work on computation jobs. | |
| # The server is adding a toy account when it starts. | |
| # (user: toy-user@flexmeasures.io, password: toy-password) | |
| # | |
| # Instead of local code (which is useful for development purposes), |
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
| security.fileuri.strict_origin_policy |
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
| SET statement_timeout TO 1200000; | |
| -- | |
| UPDATE your_table SET your_column = ((your_column & 0xFF) << 8) | ((your_column >> 8) & 0xFF); | |
| -- | |
| \COPY (SELECT * FROM "traccar"."tc_devices" ORDER BY "id" ASC) TO '/goodenough_0/devices.csv' WITH CSV DELIMITER ',' HEADER QUOTE '"' ESCAPE ''''; | |
| \COPY (SELECT * FROM "traccar"."tc_users" ORDER BY "id" ASC) TO '/goodenough_0/users.csv' WITH CSV DELIMITER ',' HEADER QUOTE '"' ESCAPE ''''; |
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
| # journalctl --disk-usage | |
| journalctl --vacuum-size=50M | |
| journalctl --vacuum-time=10d | |
| echo SystemMaxUse=500M | tee -a /etc/systemd/journald.conf |
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
| [ | |
| { | |
| "id": "f1ffeb7e.f6451", | |
| "type": "http in", | |
| "z": "c29865fe.249648", | |
| "name": "", | |
| "url": "/upload", | |
| "method": "get", | |
| "upload": false, | |
| "swaggerDoc": "", |
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
| import wmi | |
| c = wmi.WMI() | |
| t = wmi.WMI(moniker = "//./root/wmi") | |
| batts1 = c.CIM_Battery(Caption = 'Portable Battery') | |
| for i, b in enumerate(batts1): | |
| print 'Battery %d Design Capacity: %d mWh' % (i, b.DesignCapacity or 0) | |
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
| ls -v | cat -n | while read n f; do mv -n "$f" "$n.png"; convert "$n.png" "$n.pdf"; done |
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
| Move a group of components around a schematic: | |
| move (>0 0) (0 -0.5); | |
| Generate statistics of a board: | |
| run length-freq-ri | |
| Smash all & Change the typeface, ratio, and size of all elements: | |
| group all; smash (> 0 0); change font vector (>0 0); change ratio 8 (>0 0); change size 0.07 (>0 0); |
NewerOlder