Links collected from Sledilnik community on #climate-change
>Calculator: Ogljične emisije električnega osebnega avtomobila
| ffmpeg -i timelapse1.mov -c:v libx264 -preset slow -crf 18 -vf "scale=1280:-1,format=yuv420p" /home/drola/Videos/timelapse1_720.mp4 |
| #!/bin/bash | |
| # See https://rclone.org/filtering/ | |
| FILTER_LIST=" | |
| # Exclude timelapse temporary files | |
| - /LRTimelapse/** | |
| - /LRTimelapse_frames/** | |
| # Include everything else |
| /** | |
| * Create a new array without the n-th element from the original array | |
| * | |
| * @param arr | |
| * @param n | |
| * @returns New array without the n-th element from the original array | |
| */ | |
| export function arrayWithoutNth(arr: Array<any>, n: number) { | |
| return arr.filter((_, i) => i !== n); | |
| } |
| #!/usr/bin/env python3 | |
| import random | |
| characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%&*1234567890" | |
| print(''.join([random.choice(characters) for i in range(0, 32)])) |
| unbind C-b | |
| set -g prefix C-a | |
| set -g mouse on | |
| set -g status-keys vi | |
| set-window-option -g mode-keys vi | |
| set -g history-limit 100000 | |
| bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard" | |
| # set -g set-clipboard on | |
Params:
Pipeline:
#Gcodes for my i3 style printer
#Homing, step 1 M852 S-0.0118108; G28; G0 Z8; G0 X110 Y110
#Homing, after manual touch of the bed G92 Z0; G0 Z5; G0 X0
| #!/bin/bash | |
| sudo apt-get install --yes nemo | |
| xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search | |
| gsettings set org.gnome.desktop.background show-desktop-icons false | |
| gsettings set org.nemo.desktop show-desktop-icons true | |