Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
# syntax = docker/dockerfile:1.4.0 | |
FROM node:20 | |
WORKDIR /root | |
RUN npm install sqlite3 |
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
#!/bin/sh | |
# SPDX-FileCopyrightText: 2017-2022 SanderTheDragon <sanderthedragon@zoho.com> | |
# | |
# SPDX-License-Identifier: MIT | |
curlExists=$(command -v curl) | |
echo "Testing Postman version" |
First, install the required software:
geth.exe --dev --ipcpath geth.ipc console
#!/bin/bash | |
# WARNING ! THIS WAS WRITTEN A LONG TIME AGO (2018), IT MAY NOT BE RELEVANT ANYMORE | |
sudo apt-get install vnc4server ubuntu-desktop | |
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal |
Go Ethereum (geth
) is a software for Ethereum. geth doesn't provide secure networking and it should do this, as this kind of built-in functionality would increase complexity and add attack surface to critical blockchain node software. Fortunately, in UNIX world, you can easily combine different tools to work together. The solution to this particular problem is to use VPN/tunneling software for secure connections. The tunnel will expose the server local connections to your own computer. The most popular tool for this (available in every OS by default, nowadays including Windows) is [Secure Shell (SSH)][1].
Note this question only addresses issues how to
[If you are not familiar with SSH please first read SSH tutorial how to safely do passwordless logins using SSH keys][2].
Start a node on server. When the node starts it binds its RPC port to localhost
(127.0.0.1
in IPv4, ::1
in IPv6). This is so-called loopback connection that you can only access from the computer itself and not from external netwo
Bind remote docker.sock with SSH tunnel:
ssh -nNT -L /tmp/docker.sock:/var/run/docker.sock <USER>@<IP> &
Set environment variable for local Docker client:
export DOCKER_HOST=unix:///tmp/docker.sock
#!/bin/bash -e | |
ln -s /usr/lib/x86_64-linux-gnu/amdgpu-pro . | |
ln -s /etc/OpenCL . | |
tar -czvf libs.tar.gz amdgpu-pro/* | |
tar -czvf conf.tar.gz OpenCL/* | |
cat > .dockerignore << EOF | |
OpenCL |