Skip to content

Instantly share code, notes, and snippets.

Liviu Ionescu ilg-ul

Block or report user

Report or block ilg-ul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ilg-ul
ilg-ul / script-cwd.sh
Last active Sep 10, 2017
Sequence to set the current folder.
View script-cwd.sh
# Include this part after the bash-init.sh part
script_path="$0"
if [[ "${script_path}" != /* ]]
then
# Make relative path absolute.
script_path="$(pwd)/$0"
fi
@ilg-ul
ilg-ul / generic.mac.command
Last active Sep 10, 2017
macOS Finder command that calls the peer name.sh script from the same folder
View generic.mac.command
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d).
if [[ ! -z ${DEBUG} ]]
then
set -x # Activate the expand mode if DEBUG is anything but empty.
fi
@ilg-ul
ilg-ul / bintray-test.sh
Created Mar 10, 2017
Bintray test script to upload Eclipse p2 repositories
View bintray-test.sh
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d).
if [[ ! -z ${DEBUG} ]]
then
set -x # Activate the expand mode if DEBUG is anything but empty.
fi
@ilg-ul
ilg-ul / .gitignore
Last active Nov 4, 2016
Install MacPorts (DEPRECATED)
@ilg-ul
ilg-ul / .gitignore
Last active Jan 2, 2017
Install local build tools in $HOME/opt/ (multiple Homebrew instances and TeX)
View .gitignore
vscode.mac.command
@ilg-ul
ilg-ul / license-mit-c-header-micro-os-plus.txt
Last active Mar 25, 2016
MIT license for the µOS++ project.
View license-mit-c-header-micro-os-plus.txt
/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2016 Liviu Ionescu.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or
@ilg-ul
ilg-ul / bash-inits.sh
Last active Mar 1, 2019
BASH recommended initialisation sequence
View bash-inits.sh
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d).
if [[ ! -z ${DEBUG} ]]
then
set ${DEBUG} # Activate the expand mode if DEBUG is anything but empty.
else
DEBUG=""
@ilg-ul
ilg-ul / license-gpl-c-header.txt
Last active Apr 29, 2019
C header with GPL license text.
View license-gpl-c-header.txt
/*
* This file is part of the XXX distribution (https://github.com/xxxx or http://xxx.github.io).
* Copyright (c) 2015 Liviu Ionescu.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@ilg-ul
ilg-ul / gnuarmeclipse-c-cpp-formatter-style.xml
Created Oct 19, 2015
GNU ARM Eclipse C/C++ formatter style
View gnuarmeclipse-c-cpp-formatter-style.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="1">
<profile kind="CodeFormatterProfile" name="GNU with spaces" version="1">
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_exception_specification" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
<setting id="org.eclipse.cdt.core.formatter.indent_statements_compare_to_body" value="true"/>
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_colon_in_base_clause" value="insert"/>
@ilg-ul
ilg-ul / build-arm-none-eabi-gdb.sh
Created Oct 7, 2015
Build the ARM version of GDB on OS X.
View build-arm-none-eabi-gdb.sh
#! /bin/bash
set -euo pipefail
IFS=$'\n\t'
GDB_VERSION="7.10"
GDB_BUILD_FOLDER="~/Work/gdb"
mkdir -p "${GDB_BUILD_FOLDER}"
cd "${GDB_BUILD_FOLDER}"
You can’t perform that action at this time.