Skip to content

Instantly share code, notes, and snippets.

@Romancha
Romancha / synology-media.yml
Last active February 25, 2024 19:20
Synology Sonarr + Radarr + Jackett + qBittorrent under OpenVPN
---
version: "2"
services:
qbittorrent:
image: linuxserver/qbittorrent:4.5.0
container_name: qbittorrent
mem_limit: 3000m
mem_reservation: 128M
depends_on:
- openvpn
@IronButterfly
IronButterfly / mobile-ui.yaml
Last active March 26, 2022 12:13
Mobile interface of my HomeAssistant
title: My Sweet Home
kiosk_mode:
mobile_settings:
hide_header: true
swipe_nav:
wrap: false
animate: swipe
prevent_default: true
swipe_amount: 15
views:
import { withAppBuildGradle } from '@expo/config-plugins';
const withFFmpegPackageOptions = (config) => {
return withAppBuildGradle(config, async config => {
const packagingOptions =
"\nandroid {\n \
packagingOptions {\n \
pickFirst 'lib/x86/libc++_shared.so'\n \
pickFirst 'lib/x86_64/libc++_shared.so'\n \
pickFirst 'lib/armeabi-v7a/libc++_shared.so'\n \
@sfloess
sfloess / *nix.md
Last active March 25, 2024 13:51
*nix
@riggaroo
riggaroo / create_release_branch.yml
Last active July 14, 2024 11:39
Github Action workflow for creating release branch, updating versionName and versionCode, copying strings.xml to another repo, submitting PRs as per GitFlow.
name: Create Release Branch
on:
workflow_dispatch:
inputs:
versionName:
description: 'Name of version (ie 5.5.0)'
required: true
versionCode:
description: 'Version number (50500)'
required: true
@OoHerbethoO
OoHerbethoO / Smartphone USB Tethering to an OpenWrt router
Created July 12, 2020 15:09
USB tethering is used to connect your OpenWrt Router to the Internet by using the your smartphone. It's more convenient and has better performance (lower latency) than turning your smartphone into an access point and using that. It also is less of a CPU load on your phone, charges your phone, and allows you the flexibility of doing things with y…
Installation
For the easiest installation, have a wired ethernet upstream internet connection to boot-strap this process. You will need: the router, your tethering phone, necessary cables, a laptop and an upstream internet connection via ethernet for initial setup. Instead of a wired upstream connection to plug into the router WAN port, is also possible to download necessary packages below, through your laptop while tethered to your phone, the same way you can get the OpenWrt distribution for your router. That is not covered in this guide.
Once OpenWRT is installed on the router,
Install some Kernel packages to get USB tethering support: Go to http://192.168.1.1 and log in to the router. Click on System, Administration, and SSH. Set the 'Interface' to 'LAN', then click 'Save & Apply'. You can now use an SSH client like Putty to connect to the router and issue commands. SSH into the router on 192.168.1.1 and log in.
Enter the commands:
opkg update
@sfloess
sfloess / Entware.md
Last active December 28, 2022 07:52
Entware Tips and Tricks

Entware

Helpful tips and tricks for Entware

General Stuff

Install

  • ARMv7
cd /opt
@mariodian
mariodian / zte-sms-control.sh
Created December 4, 2019 11:39
Read SMS on ZTE
#!/bin/bash
URL=http://192.168.0.1
REFERER="$URL/index.html"
URL_SET="$URL/goform/goform_set_cmd_process"
URL_GET="$URL/goform/goform_get_cmd_process"
CONTENT_PREVIEW_LENGTH=40
command -v jq >/dev/null 2>&1 || { echo >&2 "'jq' is required but not installed. Aborting."; exit 1; }
@tomasevich
tomasevich / remove-all-from-docker.md
Last active July 17, 2024 11:21 — forked from beeman/remove-all-from-docker.sh
Удалить/очистить все данные Докера (контейнеры, образы, тома и сети)

Удалить/очистить все данные Докера (контейнеры, образы, тома и сети)

Одной строкой

docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q)

Описание команд

@mariodian
mariodian / zte-sms-forwarder.sh
Last active May 16, 2024 00:21
ZTE 3G/4G Modem SMS Forwarder
#!/bin/bash
PUSHOVER_TOKEN="<token>"
PUSHOVER_USER="<user>"
# The list of blocked keywords
declare -a BLOCKED=("uber eats" "block another keyword")
URL=http://192.168.0.1
REFERER="$URL/index.html"
URL_SET="$URL/goform/goform_set_cmd_process"