Skip to content

Instantly share code, notes, and snippets.

View pasrom's full-sized avatar

Roman Passler pasrom

  • 09:52 (UTC +01:00)
View GitHub Profile
@pasrom
pasrom / CMakeLists.txt
Created November 4, 2021 14:34
cmake'ing code composer studio builds (ARM-CGT-CLANG)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ti-cgt-clang-toolchain.cmake")
set(PROJECT_NAME clang-test.elf)
project(${PROJECT_NAME})
set(SYS_CONFIG ${MCU_PLUS_SDK_PATH}/examples/empty/am64x-evm/r5fss0-0_freertos/example.syscfg)
set(LINKER_FILE ${MCU_PLUS_SDK_PATH}/examples/empty/am64x-evm/r5fss0-0_freertos/ti-arm-clang/linker.cmd)
cmake_minimum_required (VERSION 3.18)
@pasrom
pasrom / incidence_at.js
Last active January 30, 2022 12:55 — forked from Baumchen/incidence_at.js
COVID-19 incidence widget for iOS within Austria 🇦🇹 --> https://github.com/pasrom/corona-widget-at
// Lizenz: AGES Dashboard COVID19 AT
// Use 3-digit GKZ (third row of https://covid19-dashboard.ages.at/data/CovidFaelle_Timeline_GKZ.csv).
// Widget Parameter: "204,KFL;312;706" for Klagenfurt Land (shown as KFL), Korneuburg and Landeck
//
// Based on the german variant:
// - kevinkub https://gist.github.com/kevinkub/46caebfebc7e26be63403a7f0587f664
// - Baumchen https://gist.github.com/Baumchen/6d91df0a4c76c45b15576db0632e4329
//
// No guarantee on correctness and completeness of the information provided.
const urlTimelineGkz = "https://covid19-dashboard.ages.at/data/CovidFaelle_Timeline_GKZ.csv"
@pasrom
pasrom / Coronavirus.js
Created October 24, 2020 17:48 — forked from planecore/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Israel"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
@pasrom
pasrom / bcm2835.md
Last active June 9, 2019 19:03
install bcm2835

On target-plattofrm (raspberry pi) (source)

sudo apt-get install html-xml-utils curl
mkdir -p bcm2835 && (wget -qO - `curl -sL http://www.airspayce.com/mikem/bcm2835 | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
./configure
make
sudo make install
@pasrom
pasrom / README.md
Last active May 8, 2018 06:05
Git Commands
git submodule add https://gist.github.com/0965be641547b34618926d404773cd94.git InkscapeConverter
git submodule init
git submodule update

If you run git submodule update --remote, Git will go into your submodules and fetch and update for you.

git submodule update --remote InkscapeConverter
@pasrom
pasrom / InkscapeConvert.bat
Last active November 6, 2020 13:50 — forked from JohannesDeml/README.md
Batch / bash converter for windows / mac / linux using inkscape and the command line
@Echo off
set "inkscapePath=C:\Program Files\Inkscape\inkscape.exe"
set /a count=0
set validInput1=svg
set validInput2=pdf
set validInput3=eps
set validOutput1=eps
set validOutput2=pdf
set validOutput3=png
@pasrom
pasrom / install_eclipse.md
Last active May 2, 2018 06:51
Install Eclipse
  1. install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install -y oracle-java8-installer
sudo apt install -y oracle-java8-set-default
javac -version
  1. get the latest eclipse
@pasrom
pasrom / resize_margin.md
Last active May 2, 2018 06:54
Ubuntu-Mate resize margin problem
sudo nano /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml

change following values to 5 or another value you prefer

"<distance name="left_width" value="1"/>"
""
@pasrom
pasrom / xmrig.service
Created February 27, 2018 10:19 — forked from Ernillew/xmrig.service
systemd-unit for xmrig
[Unit]
Description=XMRig Daemon
After=network.target
[Service]
Type=forking
GuessMainPID=no
ExecStart=/usr/local/bin/xmrig -c /home/miner/config/config.json -l /home/miner/xmrig.log -B
Restart=always
User=miner