Skip to content

Instantly share code, notes, and snippets.

View Wurstnase's full-sized avatar

Nico Tonnhofer Wurstnase

View GitHub Profile
2019/06/20 07:25:06 [...ules/context/repo.go:555 func1()] [E] GetBranches: No branches in non-bare repository /usr/local/gitea/gitea/gitea-repositories/nico/project.git
2019/06/20 07:27:48 [I] Log Mode: File(Trace)
2019/06/20 07:27:48 [I] XORM Log Mode: File(Trace)
2019/06/20 07:27:48 [I] Cache Service Enabled
2019/06/20 07:27:48 [I] Session Service Enabled
2019/06/20 07:27:50 [I] Git Version: 2.19.2
2019/06/20 07:27:51 [T] Doing: CheckRepoStats
2019/06/20 07:27:51 [T] Doing: ArchiveCleanup
2019/06/20 07:27:51 [T] Doing: DeletedBranchesCleanup
2019/06/20 07:27:51 [I] SQLite3 Supported
#!/bin/bash
set -eu
_UID=$(id -u)
GID=$(id -g)
# give lxd permission to map your user/group id through
grep root:$_UID:1 /etc/subuid -qs || sudo usermod --add-subuids ${_UID}-${_UID} --add-subgids ${GID}-${GID} root
# set up a separate key to make sure we can log in automatically via ssh
# with $HOME mounted
@Wurstnase
Wurstnase / embedded_c_testing_tdd_resources.md
Created September 16, 2018 15:46 — forked from trikitrok/embedded_c_testing_tdd_resources.md
Resources for embedded C testing and TDD
@Wurstnase
Wurstnase / gist:0f5cfddb963e4fb3ee0ae0c104b5ec98
Created April 14, 2018 18:58
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~
@Wurstnase
Wurstnase / root_logger_settings.py
Created December 21, 2017 10:35 — forked from st4lk/root_logger_settings.py
Python logging settings for root logger
"""
Settings for root logger.
Log messages will be printed to console and also to log file (rotated, with
specified size). All log messages from used libraries will be also handled.
Three approaches for defining logging settings are used:
1. using logging classes directly (py25+, py30+)
2. using fileConfig (py26+, py30+)
3. using dictConfig (py27+, py32+)
Choose any variant as you like, but keep in mind python versions, that
@Wurstnase
Wurstnase / printer.zungman.h
Created February 14, 2017 19:33
Printer file for Teacup (Zungman) with different X and Y steps
/***************************************************************************\
* *
* 6. MECHANICAL/HARDWARE *
* *
\***************************************************************************/
/** \def KINEMATICS_STRAIGHT KINEMATICS_COREXY
This defines the type of kinematics your printer uses. That's essential!
@Wurstnase
Wurstnase / uint_fast8_t.patch
Created January 31, 2017 22:50
Test patch for uint8_t
diff --git a/dda.c b/dda.c
index 421755f..2436a81 100644
--- a/dda.c
+++ b/dda.c
@@ -156,7 +156,7 @@ void dda_create(DDA *dda, const TARGET *target) {
enum axis_e i;
#ifdef LOOKAHEAD
// Number the moves to identify them; allowed to overflow.
- static uint8_t idcnt = 0;
+ static uint_fast8_t idcnt = 0;
@Wurstnase
Wurstnase / swan.gcode
Created December 27, 2016 12:45
dda_queue issue
This file has been truncated, but you can view the full file.
; G-Code generated by Simplify3D(R) Version 3.1.1
; Dec 24, 2016 at 5:20:49 AM
; Settings Summary
; processName,PLA-NB-Grey-025
; applyToModels,odile_the_swan
; profileName,Prusa3-BlackSteel (modified)
; profileVersion,2015-05-01 08:00:00
; baseProfile,Prusa Mendel (modified)
; printMaterial,PLA
; printQuality,High
@Wurstnase
Wurstnase / printer.p3steel.h
Created December 27, 2016 12:44
dda_queue issue
/***************************************************************************\
* *
* 6. MECHANICAL/HARDWARE *
* *
\***************************************************************************/
/** \def KINEMATICS_STRAIGHT KINEMATICS_COREXY
This defines the type of kinematics your printer uses. That's essential!
@Wurstnase
Wurstnase / board.ramps-v1.4h
Created December 27, 2016 12:43
dda_queue issue
/***************************************************************************\
* *
* 1. CPU *
* *
\***************************************************************************/
/** \def CPU_TYPE
CPU types a user should be able to choose from in configtool. All
commented out.