Skip to content

Instantly share code, notes, and snippets.

@mmv-ru
mmv-ru / byobu Shift-F1 help
Last active June 11, 2022 18:02
byobu hotkey help
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@mmv-ru
mmv-ru / Check DNS servers
Last active March 25, 2022 17:23
Check DNS servers for ref-com.ru
for s in ns3-l2.nic.ru. ns4-l2.nic.ru. ns8-l2.nic.ru. ns4-cloud.nic.ru. 8.8.8.8 1.1.1.1 172.17.252.1 ; do echo "$s $(/usr/bin/time -f %e -- host -t A ref-com.ru $s >/dev/null && echo Ok || echo Failed)" ; done
@mmv-ru
mmv-ru / php.yml
Last active January 25, 2021 00:11
php syspaths
---
# Configure VM
- hosts: web_vms
force_handlers: True # http://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html#handlers-and-failure
tasks:
- name: make scl wrapper for php
vars:
/system script
add name=test owner=mmv policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source={
:local content [/file get [/file find name=ip.txt] contents] ;
:local contentLen [:len $content];
:local lineEnd 0;
:local line "";
:local lastEnd 0;
:local domail false
/:-------------:\ mmv@rwmmv2.mmv.lan
:-------------------:: ------------------
:-----------/shhOHbmp---:\ OS: Fedora release 24 (Twenty Four) x86_64
/-----------omMMMNNNMMD ---: Kernel: 4.11.12-100.fc24.x86_64
:-----------sMMMMNMNMP. ---: Uptime: 8 days, 12 hours, 29 mins
:-----------:MMMdP------- ---\ Packages: 3512
,------------:MMMd-------- ---: Shell: bash 4.3.42
:------------:MMMd------- .---: Resolution: 2560x1600
:---- oNMMMMMMMMMNho .----: DE: GNOME 3.20.4
:-- .+shhhMMMmhhy++ .------/ WM: GNOME Shell
@mmv-ru
mmv-ru / ansible-summary.md
Created February 4, 2018 16:05 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@mmv-ru
mmv-ru / MC7710 GPS and Mikrotik
Last active August 9, 2023 22:20
Sierra Wireless MC7710 GPS and Mikrotik
Sierra Wireless MC7710 Ports
It depends on enumeration scheme. For DIP mode with (default) USB composition #3 selected, /dev/ttyUSBn ports are expected to be mapped as follows:
n=0 - HIP (CnS);
n=1 - QCDM (diag);
n=2 - NMEA;
n=3 - AT command;
n=4 - modem.
Please note that there isn't necessarily a 1-1 relationship between the MCxxxx serial interface numbers and the Linux /dev/ttyUSBn devices. The latter number space is shared between all USB serial devices in the system, and there is no guarantee that the AT port always will be /dev/ttyUSB2 (or whatever).
@mmv-ru
mmv-ru / burp on QNAP.md
Last active June 25, 2022 23:27
burp backup on qnap nas

BURP

ipkg dependencies

ipkg install openssl-dev librsync zlib

ipkg install gcc ipkg install make automake autoconf libtool binutils autoconf

ipkg install optware-devel

ipkg install crosstool-native