Skip to content

Instantly share code, notes, and snippets.

View valentineus's full-sized avatar
🏠
Working from home

Valentin Popov valentineus

🏠
Working from home
View GitHub Profile
@valentineus
valentineus / cloud9.service
Last active July 24, 2017 18:49
Cloud9 service for the systemd initialization system.
# /etc/systemd/system/cloud9.service
[Unit]
Description=Cloud9 SDK
After=network.target
[Service]
WorkingDirectory=/home/cloud9/c9sdk
ExecStart=/usr/bin/node server.js -p 22020 -w /home/cloud9/workspace
Restart=always
StandardOutput=null
@valentineus
valentineus / 01 - sources.list
Last active August 15, 2017 00:08
Standard repositories for Debian
deb http://ftp.de.debian.org/debian stretch main contrib non-free
deb-src http://ftp.de.debian.org/debian stretch main contrib non-free
deb http://ftp.de.debian.org/debian stretch-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian stretch-updates main contrib non-free
#!/bin/sh
# Author: Valentin Popov
# Email: info@valentineus.link
# Date: 2017-08-23
# Usage: /bin/sh create_archive.sh /path/to/input /path/to/output
# Description: Packaging applications in the archive.
# Updating the Environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export PATH="$PATH:/usr/local/scripts"
@valentineus
valentineus / system_app.txt
Last active August 29, 2017 14:03
Список с описанием всего ПО в стандартной прошивке ver. 5.1.1 устройства Sony Xperia ZR.
* AnonymousData - Служба сбора и отправки анонимных данных и статистики использования Sony Mobile;
! AptxNotifier - Служба уведомлений при подключении устройства aptX. AptX - стандарт Bluetooth для передачи lossless аудио;
! Backup-Restore - Система резервного копирования Google;
! Backup-wizard - Графическая оболочка системы резервного копирования Google;
* BasicDreams - Встроенные стандартные заставки;
! Bluetooth - Библиотеки и служба для работы Bluetooth;
* Books - Приложение Google Play Книги;
! bootinfo - Библиотека получения информации об устройстве;
* BrowserProviderProxy - Служба синхронизации закладок браузера Chrome и приложений на его основе;
* Calculator - Стандартное приложение "Калькулятор";
@valentineus
valentineus / redmine.service
Created October 2, 2017 21:21
SystemD service for the standard Debian package.
# /etc/systemd/system/redmine.service
[Unit]
Description=Redmine server
After=syslog.target
After=network.target
[Service]
Type=simple
User=redmine
Group=redmine
@valentineus
valentineus / bbb-rebuild.sh
Created October 24, 2017 05:45
A script for rebuilding the timer recording.
#!/bin/sh
FILE='/root/list.txt'
MEETING=`head -n 1 "$FILE"`
sed -i 1d "$FILE"
bbb-record --rebuild "$MEETING" > /dev/null 2>&1
exit 0
@valentineus
valentineus / index.html
Created November 8, 2017 01:58
Simple chat
<!doctype html>
<html lang="en">
<head>
<title>Hello, world!</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
@valentineus
valentineus / 99recommended
Created June 1, 2018 03:33
Disabling recommended packages on systems GNU/Debian and Ubuntu.
# /etc/apt/apt.conf.d/99recommended
# Disable recommended packages
APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";
APT::Get::Install-Recommends "false";
APT::Get::Install-Suggests "false";
APT::Install-Recommends "false";
APT::Install-Suggests "false";
@valentineus
valentineus / image_optimizer.sh
Last active September 10, 2018 13:44
Optimizing images for Google PageSpeed.
#!/bin/bash
# Author: Valentin Popov
# Email: info@valentineus.link
# Date: 2018-09-10
# Usage: /bin/bash image_optimizer.sh /path/to/input
# Description: Optimizing images for Google PageSpeed.
# Updating the Environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export PATH="$PATH:/usr/local/scripts"
@valentineus
valentineus / start-sync.sh
Created January 9, 2019 20:05
Synchronization of backup copies of repositories with code.
#!/bin/bash
# Author: Valentin Popov
# Email: info@valentineus.link
# Date: 2018-11-13
# Usage: /bin/bash start-sync.sh /path/to/input
# Description: Starting repository synchronization.
# Updating the Environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export PATH="$PATH:/usr/local/scripts"