Skip to content

Instantly share code, notes, and snippets.

View pogorelov-ss's full-sized avatar

Sergii Pogorielov pogorelov-ss

View GitHub Profile
@pogorelov-ss
pogorelov-ss / UbuntuRPIHomeCloud.md
Created February 25, 2024 12:40
UbuntuRPIHomeCloud
sudo yum install git
sudo yum install mysql56
sudo yum install gcc
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
# nano -- edit profile
exit
- Я правильно интерпретирую семантику вопроса, но полностью игнорирую его суть.
- Не могли бы вы привести пример?
- Мог бы.
- I correctly interpret the semantics of the question, but completely ignoring its essence.
- Could you give us an example?
- I could.
#
INPUT="$1"
for i in *.MP4 ; do
ffmpeg -i "$i" -threads 4 -r 50 -an -filter:v "setpts=0.12*PTS" "/home/pssu/Videos/avi/$i.avi"
sleep 3
done
#
ffmpeg -f concat -i <(for f in *.avi; do echo "file '$PWD/$f'"; done) -c copy /home/pssu/Videos/result.avi
access_key = 'AK!!!!!!!!!!!!!!!!7A'
secret_key = 'A!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Qg'
from datetime import datetime, timedelta
---
# test SSH agent forwarding
- shell: echo "Client= [$SSH_CLIENT] Sock= [$SSH_AUTH_SOCK]"
sudo: no
register: myecho
- debug: msg="{{myecho.stdout}}"
- shell: ssh-add -l
sudo: no
register: myecho
- debug: msg="{{myecho.stdout}}"
@pogorelov-ss
pogorelov-ss / gist:9b25007149f9ca0d82d7
Last active August 29, 2015 14:24
rearrange the letters so that they become palindromes
words = ['ivcci', 'oyotta', 'cecaaarar', 'bbb', 'babbb']
def compute_palindromes(words):
def is_palindrom(word):
return word == ''.join(reversed(word))
def try_be_palindrom(word):
char_dict = {}
for char in word:
if char_dict.has_key(char):