Skip to content

Instantly share code, notes, and snippets.

View odurc's full-sized avatar

Ricardo Crudo odurc

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
timestamp,data
2021-02-01 00:01:24,88
2021-02-01 00:01:54,88
2021-02-01 00:04:24,88
2021-02-01 00:04:59,88
2021-02-01 00:05:58,88
2021-02-01 00:06:16,88
2021-02-01 00:06:33,88
2021-02-01 00:06:35,88
2021-02-01 00:06:42,88
{
"packages": [
{
"name": "arduino",
"maintainer": "MOD Devices",
"websiteURL": "http://www.arduino.cc/",
"email": "packages@arduino.cc",
"help": {
"online": "http://www.arduino.cc/en/Reference/HomePage"
},
@odurc
odurc / bash-utils.sh
Created August 9, 2017 18:27
useful functions for bash scripts
#!/bin/bash
# print green
function info {
echo -e "\e[0;32m"$@"\e[0m"
}
# print yellow
function warn {
echo -e "\e[0;33m"$@"\e[0m"
@odurc
odurc / compare-bom-generators.sh
Created June 12, 2015 22:38
compare BOM files generated by KiCad using python2 and python3
#!/usr/bin/bash
generators=(bom_csv_grouped_by_value.py bom_csv_grouped_by_value_with_fp.py bom_csv_sorted_by_ref.py bom_html_by_value.py bom_html_grouped_by_value.py bom_html_with_advanced_grouping.py bom_sorted_by_ref.py)
for generator in ${generators[@]}; do
python2 ${generator} /tmp/bom-test.xml /tmp/bom-test-py2.out
python3 ${generator} /tmp/bom-test.xml /tmp/bom-test-py3.out
[[ `diff /tmp/bom-test-py2.out /tmp/bom-test-py3.out` ]] && echo "Fail: ${generator}" && exit 1
done