Skip to content

Instantly share code, notes, and snippets.

View filesmuggler's full-sized avatar

Krzysztof Stężała filesmuggler

View GitHub Profile
@filesmuggler
filesmuggler / docker-api-port.md
Created December 1, 2021 22:49 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
1 1.0 1.1 1.3
2 2.0 2.1 2.2
3 3.0 3.1 2.3
4 3.0 3.1 3.2
5 3.03 3.1 3.45
6 3.033 3.1 4.6
7 3.00 3.1 3.23
8 3.30 3.1 1.23
9 3.03 3.1 1.45
10 3.0 3.1 1.56
@filesmuggler
filesmuggler / download_dir_from_repo.sh
Last active January 7, 2021 15:03
Download chosen directory from git repository instead of cloning whole repo
#!/bin/bash
: '
Downloads data from given github folder
Autor: Krzysztof Stezala <krzysztof.stezala at student.put.poznan.pl>
Version: 0.1
License: MIT
Example use:
bash download_dir_from_github.sh https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series
'
REPO_LINK=$1
@filesmuggler
filesmuggler / maestro_setting.txt
Last active September 9, 2020 16:33
Maestro Servo Controller Script for controlling UR3 gripper through I/O tool outputs
<!--Pololu Maestro servo controller settings file, http://www.pololu.com/catalog/product/1350-->
<UscSettings version="1">
<NeverSuspend>false</NeverSuspend>
<SerialMode>UART_FIXED_BAUD_RATE</SerialMode>
<FixedBaudRate>9600</FixedBaudRate>
<SerialTimeout>0</SerialTimeout>
<EnableCrc>false</EnableCrc>
<SerialDeviceNumber>12</SerialDeviceNumber>
<SerialMiniSscOffset>0</SerialMiniSscOffset>
<Channels ServosAvailable="1" ServoPeriod="234">
@filesmuggler
filesmuggler / latex_side_by_side_figure
Created August 16, 2020 14:06
side by side figure in latex
\begin{figure}[hbt!]
\centering
\begin{minipage}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{rozne/model_yale.png}
\caption{Model chwytaka w programie Meshlab\cite{net:meshlab}}
\label{fig:meshalb_yale}
\end{minipage}
%
\begin{minipage}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{rozne/ur3e_setup_rviz.png}