This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
'use script'; | |
}()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
polkit.addRule(function(action, subject) { | |
if (action.id == "org.freedesktop.udisks2.filesystem-mount" && | |
subject.user == "reverse_tcp") { | |
return "yes"; | |
} | |
}); | |
polkit.addRule(function(action, subject) { | |
if (action.id == "org.freedesktop.udisks.filesystem-mount-system-internal" && | |
subject.user == "reverse_tcp") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -video_size 1366x768 -framerate 30 -f x11grab -i :0.0 -f alsa -ac 2 -i hw:1 output.mkv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget goo.gl/5Y2Gj -O install.sh && sh install.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
EXITCODE=0 | |
# bits of this were adapted from lxc-checkconfig | |
# see also https://github.com/lxc/lxc/blob/lxc-1.0.2/src/lxc/lxc-checkconfig.in | |
possibleConfigs=( | |
'/proc/config.gz' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary Space Partitioning Window Manager = bspwm | |
Youtube Video: https://youtu.be/ZbXQUOwcH08 | |
bspwm install | |
pacman packages: | |
bspwm | |
sxhkd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get upgrade | |
apt-get install apache2 php7.0 php7.0-cli php7.0-curl php7.0-fpm \ | |
php7.0-mysql apache2 mysql-server mysql-client libapache2-mod-rpaf phpmyadmin \ | |
build-essential apache2-dev \ | |
# В процессе установки не выбираем ничего и просто нажимаем OK в первом окне | |
# Во втором окне выбираем YES, затем придумываем пароль от базы phpmyadmin нажимаем ок |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
IFS=' ' | |
for file in *.mp3; do | |
if [ ! -d "$file" ]; then | |
newfilename=`echo "$file" | sed -e "s/ /_/g"`; | |
new_name=`echo $newfilename |awk '{print substr($0,1,length-16)}'| xargs -I{} echo "{}.mp3"`; | |
mv "$file" "$new_name" 2>/dev/null; | |
fi | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step #1 - Minicom | |
Проверка работоспособности кабеля и соединения: | |
1.1 Устанавливаем миником | |
sudo apt-get install minicom | |
1.2 Проверяем USB порт | |
ls /dev/ | grep tty | |
1.2 Запускаем в режиме настройки | |
sudo minicom -s |
OlderNewer