Skip to content

Instantly share code, notes, and snippets.

View atanasyanew's full-sized avatar

A. Yanev atanasyanew

View GitHub Profile
@atanasyanew
atanasyanew / disable-swap.sh
Created August 8, 2021 11:16
RPI disable swap and log2ram
#!/bin/bash
if [ $1 = "uninstallswap" ]; then
echo "Uninstalling swapfile..."
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
sudo systemctl disable dphys-swapfile
echo "Swap file has been removed"
elif [ $1 = "disableswap" ]; then
@atanasyanew
atanasyanew / docker-compose.omvstack.yml
Created August 8, 2021 09:25
Additional services for my OpenMediaVault build
version: '2.1'
services:
plex:
image: ghcr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:
- VERSION=docker
@atanasyanew
atanasyanew / az-arm-netapi-webapp-st-mssql.json
Last active May 25, 2021 12:58
Azure arm template with - Storage account and Blob, MS SQL, App service plan, .NET Core API, Web app
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location used for the createtion of the resources."
@atanasyanew
atanasyanew / az-arm-netapi-webapp-st-pssql.json
Created May 25, 2021 12:55
Azure arm template with - Storage account and Blob, PostgreSQL, App service plan, .NET Core API, Web app Angular
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.1",
"parameters": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location used for the createtion of the resources."
@atanasyanew
atanasyanew / SPIFFS-formatter.ino
Created February 7, 2021 17:01
ESP8266 SPIFFS formatter, arduino sketch
#include <FS.h>
void setup() {
Serial.begin(9600);
if(SPIFFS.begin())
{
Serial.println("Mounted!");
}
else
{
@atanasyanew
atanasyanew / telegraf-install.sh
Last active October 22, 2020 15:33
Automation script for install Telegtaf agent for Raspbian Buster
# Automation script for instatlling telegraf agent
#
#Set Colors
#
bold=$(tput bold)
underline=$(tput sgr 0 1)
reset=$(tput sgr0)
@atanasyanew
atanasyanew / node-red-ui-theme-rhino-VividCyan.txt
Created May 31, 2020 10:31
Node-RED theme rhino with vivid cyan
// name: ayanev-theme
{
"theme":{
"base-color":{
"default":"#00aa95",
"value":"#273e55",
"edited":true
},
"page-titlebar-backgroundColor":{
"value":"#273e55",
@atanasyanew
atanasyanew / windows-terminal-settings.json
Last active January 29, 2022 08:53
Windows terminal settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"defaultProfile": "{14ad203f-52cc-4110-90d6-d96e0f41b64d}",
"initialCols": 150,
"initialRows": 30,
"keybindings":
[
{
"command": "closeTab",
@atanasyanew
atanasyanew / docker-compose-samba.yml
Created January 23, 2020 14:47
Raspberry Pi docker compose Samba NAS
version: '3.4'
services:
samba:
image: dperson/samba:armhf
container_name: samba
environment:
TZ: Europe/Sofia
USERID: 1000
GROUPID: 1000
@atanasyanew
atanasyanew / telegraf.conf
Last active March 23, 2024 13:29
Raspberry Pi - telegraf.conf used for metrics collect
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.