Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Tiryoh / I2C1
Last active August 26, 2015 05:52
i2cdetect error
root@Edison:~# i2cdetect -r -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
@Tiryoh
Tiryoh / # npm install -g galileo-io
Last active August 29, 2015 14:28
galileo-io@0.8.18 install error
root@Edison:~# npm install -g galileo-io
-
> galileo-io@0.8.18 postinstall /usr/lib/node_modules/galileo-io
> node scripts/postinstall
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Do not quit the program until npm completes the installation process.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
{ [Error: Command failed: ] killed: false, code: 255, signal: null }
@Tiryoh
Tiryoh / build.py
Created November 8, 2015 17:02
building NUCLEO_F042K6 uVision Project
$ python workspace_tools/build.py -m NUCLEO_F042K6 -t uARM
[WARNING] Using default settings. Define your settings in the file "workspace_tools/private_settings.py" or in "./mbed_settings.py"
Building library CMSIS (NUCLEO_F042K6, uARM)
Copy: core_ca9.h
Copy: core_caFunc.h
Copy: core_caInstr.h
Copy: core_ca_mmu.h
Copy: core_cm0.h
Copy: core_cm0plus.h
Copy: core_cm3.h
@Tiryoh
Tiryoh / CDT Build Console [Samp_Monitor]
Created November 21, 2015 12:10
Samp_Monitor/EndDevice_Input/Source/EndDevice_Input.c - Eclipse
20:59:18 **** ビルド of configuration EndDevice_Input (JN5164)( for TWE-Lite 2525A ) for project Samp_Monitor ****
make TWE_CHIP_MODEL=JN5164 BOARD=LITE2525A -j8 all
rm -f objs_JN5164_LITE2525A/ProcessEv_UART.o
rm -f objs_JN5164_LITE2525A/ProcessEv_L3GD20.o
rm -f objs_JN5164_LITE2525A/ProcessEv_LIS3DH.o
rm -f objs_JN5164_LITE2525A/ProcessEv_MPL115A2.o
rm -f objs_JN5164_LITE2525A/ProcessEv_ADXL345_LowEnergy.o
rm -f objs_JN5164_LITE2525A/ProcessEv_ADXL345.o
rm -f objs_JN5164_LITE2525A/ProcessEv_TSL2561.o
rm -f objs_JN5164_LITE2525A/ProcessEv_ADT7410.o
@Tiryoh
Tiryoh / nodebrew_install_0.12.9.log
Last active February 6, 2016 08:20
nodebrew install log on RPi2 typeB
This file has been truncated, but you can view the full file.
Fetching: http://nodejs.org/dist/v0.12.9/node-v0.12.9.tar.gz
creating ./icu_config.gypi
{ 'target_defaults': { 'cflags': [],
'default_configuration': 'Release',
'defines': [],
'include_dirs': [],
'libraries': []},
'variables': { 'arm_float_abi': 'hard',
'arm_fpu': 'vfpv3',
'arm_neon': 0,
@Tiryoh
Tiryoh / mbed_lpc1768.txt
Created February 22, 2016 13:14
LPC1768 pin assign
// ___________
// GND --------| |--- VOUT(3.3V)
// VIN --------| |--- VU(5.0V)
// VB ---------| |--- IF-
// nR ---------| |--- IF+
// p5(mosi) ---| |--- RD-(Ether)
// p6(miso) ---| |--- RD+(Ether)
// p7(sck) ----| |--- TD-(Ether)
// p8 ---------| |--- TD+(Ether)
// p9(tx/sda) -| mbed |--- D-(USB)
@Tiryoh
Tiryoh / interfaces
Created May 9, 2016 01:17
RaspberryPi2_WiFiConfig
#/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
@Tiryoh
Tiryoh / set_date.sh
Created August 1, 2016 01:43
Ubuntu date setup
#!/bin/bash
# Check https://raw.githubusercontent.com/Tiryoh/oneliners/master/set_date.sh for new version
sudo date -s "$(curl -s --head http://www.google.co.jp | grep '^Date' | cut -b 7-)"
@Tiryoh
Tiryoh / github_ssh_config
Last active September 22, 2016 05:29
~/.ssh/config
Host github.com
HostName ssh.github.com
Port 443
IdentityFile ~/.ssh/id_rsa
@Tiryoh
Tiryoh / bitbucket_ssh_config
Created September 22, 2016 05:29
~/.ssh/config
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
IdentityFile ~/.ssh/id_rsa