Skip to content

Instantly share code, notes, and snippets.

sudo su -s /bin/bash - jenkins
Installation instructions for GCC ARM Embedded cross compiler for amazon linux
yum install glibc.i686
yum install ncurses-libs.i686
wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q2-update/+download/gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2
tar xjf gcc-arm-none-eabi-5_4-2016q2-20160622-linux.tar.bz2
@jeffbk
jeffbk / .gitignore
Last active April 3, 2018 23:02
GCC ARM Utils
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
@jeffbk
jeffbk / CMakeLists.txt
Last active March 12, 2018 16:48
Files for embedded GCC ARM projects with CLion: Project file, tool chain file, and linker script
cmake_minimum_required(VERSION 3.5)
project(LedTest CXX C ASM)
add_definitions(-DSTM32F4)
add_definitions(-DSTM32F405xx)
add_definitions(-DUSE_HAL_DRIVER)
# List your application specific source files here, include header files!
file(GLOB_RECURSE USER_SOURCES
#!/bin/sh
### BEGIN INIT INFO
# Provides: myservice
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Put a short description of the service here
# Description: Put a long description of the service here
@jeffbk
jeffbk / connect
Last active August 29, 2015 14:15
Raspberry Pi /etc/network/interfaces with Sierra Wireless 305
'' at+cfun=1
OK at+cgdcont=3,"IP","tfdata"
OK at!scdftprof=3
OK at!scprof=3,"",0,0,0,0
OK at!scact=1,3
OK
@jeffbk
jeffbk / .bash_profile
Created July 6, 2013 01:09
.bash_profile with git completion and ps1
...
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
...