Skip to content

Instantly share code, notes, and snippets.

@RuBiCK
RuBiCK / gist:c0cbaa674a6311aeb9546b921e513bf2
Created April 28, 2020 10:28
consul docker build error
from commit d3fa00b1e60bc391d15306a3e5109b520fa13deb (HEAD -> master, origin/master, origin/HEAD)
$ docker build -t consul .
Sending build context to Docker daemon 133.3MB
Step 1/25 : FROM ruby:2.3.8
2.3.8: Pulling from library/ruby
e79bb959ec00: Pull complete
d4b7902036fe: Pull complete
1b2a72d4e030: Pull complete
d54db43011fd: Pull complete
69d473365bb3: Pull complete
@RuBiCK
RuBiCK / gist:4fc768e42469da427c173e3ef77fed6a
Created April 1, 2020 10:45
Marlin firmware - Invalid Mesh (229-233 lines)
Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: [u'/dev/ttyUSB1']
Connecting to: /dev/ttyUSB1
Changing monitoring state from "Detecting serial port" to "Opening serial port"
Connected to: Serial<id=0x716c8d70, open=True>(port='/dev/ttyUSB1', baudrate=250000, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
@RuBiCK
RuBiCK / bumpme
Last active September 6, 2019 13:00
Fri Sep 6 13:00:13 UTC 2019
$ terraform apply 2> debug.log
aws_vpc.main: Refreshing state... (ID: vpc-0132d7e985655ec9a)
aws_internet_gateway.gw: Refreshing state... (ID: igw-0e29787f000389029)
aws_security_group.allow_all: Refreshing state... (ID: sg-05aaaf7737c2e1a91)
aws_subnet.subnet[2]: Refreshing state... (ID: subnet-0c7b42560b2208992)
aws_subnet.subnet[0]: Refreshing state... (ID: subnet-048db1dd9f602891f)
aws_subnet.subnet[1]: Refreshing state... (ID: subnet-025a215a783648507)
aws_subnet.subnet[3]: Refreshing state... (ID: subnet-0b8bee3f1d5b755ec)
aws_eip.nat: Refreshing state... (ID: eipalloc-0057d480fa70e0749)
aws_route_table.public-route: Refreshing state... (ID: rtb-044e7ab173eb7dd2e)
2018/11/22 12:52:32 [INFO] Terraform version: 0.11.10 17850e9a55d33c43d7c31fd6ac122ba97a51d899
2018/11/22 12:52:32 [INFO] Go runtime version: go1.11.1
2018/11/22 12:52:32 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2018/11/22 12:52:32 [DEBUG] Attempting to open CLI config file: /Users/XXX/.terraformrc
2018/11/22 12:52:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/11/22 12:52:32 [INFO] CLI command args: []string{"apply"}
2018/11/22 12:52:32 [INFO] command: empty terraform config, returning nil
2018/11/22 12:52:32 [DEBUG] command: no data state file found for backend config
2018/11/22 12:52:32 [DEBUG] New state was assigned lineage "85b8c411-8ac1-e86a-776a-a96bdaadaf64"
2018/11/22 12:52:32 [INFO] command: backend initialized: <nil>
2018/11/22 12:52:32 [INFO] Terraform version: 0.11.10 17850e9a55d33c43d7c31fd6ac122ba97a51d899
2018/11/22 12:52:32 [INFO] Go runtime version: go1.11.1
2018/11/22 12:52:32 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2018/11/22 12:52:32 [DEBUG] Attempting to open CLI config file: /Users/XXX/.terraformrc
2018/11/22 12:52:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/11/22 12:52:32 [INFO] CLI command args: []string{"apply"}
2018/11/22 12:52:32 [INFO] command: empty terraform config, returning nil
2018/11/22 12:52:32 [DEBUG] command: no data state file found for backend config
2018/11/22 12:52:32 [DEBUG] New state was assigned lineage "85b8c411-8ac1-e86a-776a-a96bdaadaf64"
2018/11/22 12:52:32 [INFO] command: backend initialized: <nil>
@RuBiCK
RuBiCK / Arduino push button power control.ino
Last active July 7, 2017 15:36
Arduino Power control for turning on an arduino with a press button and power off with a continuous press
#define POWERCONTROL 2
#define POWERBUTTON 9
#define PULSETIME 3000
void setup() {
// put your setup code here, to run once:
pinMode(POWERCONTROL, OUTPUT);
digitalWrite(POWERCONTROL, HIGH);
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
@RuBiCK
RuBiCK / gist:90a46507d63a86451c49
Created February 8, 2016 20:35
nfclib hardware details
pi@raspberrypi:~ $ nfc-scan-device -v
nfc-scan-device uses libnfc 1.7.1
1 NFC device(s) found:
- pn532_spi:/dev/spidev0.0:
pn532_spi:/dev/spidev0.0:500000
chip: PN532 v1.6
initator mode modulations: ISO/IEC 14443A (106 kbps), FeliCa (424 kbps, 212 kbps), ISO/IEC 14443-4B (106 kbps), Innovision Jewel (106 kbps), D.E.P. (424 kbps, 212 kbps, 106 kbps)
target mode modulations: ISO/IEC 14443A (106 kbps), FeliCa (424 kbps, 212 kbps), D.E.P. (424 kbps, 212 kbps, 106 kbps)
pi@raspberrypi:~ $ nfc-list -v