- Create savedscreenshots folder
mkdir ~/savedscreenshots
- Move to /etc/systemd/system folder
cd /etc/systemd/system
- Create tgsender.sh file and paste code from tgsender.sh in this gist
mkdir ~/savedscreenshots
cd /etc/systemd/system
| // | |
| // Script originally from user @Zer0cool at: | |
| // | |
| // https://forum.unity.com/threads/terrain-leveling.926483/ | |
| // | |
| // Revamped by @kurtdekker as follows: | |
| // | |
| // - put this on the object (or object hierarchy) with colliders | |
| // - drag the terrain reference into it | |
| // - use the editor button to "Stamp" |
| #pragma once | |
| #include "pico/stdlib.h" | |
| #include "pico/binary_info.h" | |
| #include "hardware/flash.h" | |
| #include "hardware/sync.h" | |
| #include <lfs.h> |
The Docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The Docker daemon always runs as the root user.
If you don’t want to preface the docker command with sudo, create a Unix group called docker and add users to it. When the Docker daemon starts, it creates a Unix socket accessible by members of the docker group.
Warning: The
dockergroup grants privileges equivalent to therootuser. For details on how this impacts security in your system, see Docker Daemon Attack Surface.
Note: To run Docker without root privileges, see Run the Docker daemon as a non-root user (Rootless mode) .
| uno.name=Arduino Uno | |
| atmega328.name=Arduino Duemilanove w/ ATmega328 | |
| diecimila.name=Arduino Diecimila or Duemilanove w/ ATmega168 | |
| nano328.name=Arduino Nano w/ ATmega328 | |
| nano.name=Arduino Nano w/ ATmega168 | |
| mega2560.name=Arduino Mega 2560 or Mega ADK | |
| mega.name=Arduino Mega (ATmega1280) | |
| leonardo.name=Arduino Leonardo | |
| esplora.name=Arduino Esplora | |
| micro.name=Arduino Micro |
This guide is adapted from http://reboot.pro/topic/14547-linux-load-your-root-partition-to-ram-and-boot-it/
What you need:
| var Vector = function(x, y) { | |
| this.x = x || 0; | |
| this.y = y || 0; | |
| }; | |
| // return the angle of the vector in radians | |
| Vector.prototype.getDirection = function() { | |
| return Math.atan2(this.y, this.x); | |
| }; |
| #!/bin/sh | |
| # also see http://marc.merlins.org/perso/btrfs/post_2014-03-19_Btrfs-Tips_-Btrfs-Scrub-and-Btrfs-Filesystem-Repair.html | |
| for fs in $(grep ' btrfs ' /proc/mounts | cut -d' ' -f1 | sort -u) | |
| do | |
| starttime="$(date "+%Y-%m-%d %H:%M:%S")" | |
| logger "Starting btrfs scrub on $fs" | |
| btrfs scrub start -Bd "$fs" | |
| journalctl -q -k --since "$starttime" | grep BTRFS |