Skip to content

Instantly share code, notes, and snippets.

View vanushwashere's full-sized avatar

Vanush Ghamaryan vanushwashere

View GitHub Profile
@vanushwashere
vanushwashere / links.txt
Last active February 1, 2018 15:43
Link for tunning up CPU in Ubuntu
@vanushwashere
vanushwashere / vahag.preset
Created February 3, 2018 19:16
Preset for pulseeffects
[limiter]
input gain = 3.0
limit = 0.0
release time = 1.0
[compressor]
rms-peak = 1.0
attack = 2.0
release = 2.0
threshold = -30.0
@vanushwashere
vanushwashere / shutter-shorcuts.kksrc
Created December 15, 2019 09:54
Shutter hotkey configuration for KDE Plasma 5. Import it in Shorcuts settings
[shutter.desktop][Global Shortcuts]
Active=Meta+Print
Redo=none
Screen=Print
Select=Ctrl+Shift+Print
Window=none
_launch=Meta+Ctrl+Print
@vanushwashere
vanushwashere / twc_cli.php
Last active March 3, 2021 13:50
A 'Hello World' for WP CLI
<?php
/*
Plugin Name: 10web Hello World
Plugin URI: https://10web.io/
Description: Teaching the basics of WP-CLI
Author: Vanush 10web
Version: 1.0.0
Author URI: https://10web.io/
*/
@vanushwashere
vanushwashere / Redis-cli commands.md
Last active July 26, 2022 21:48
Redis CLI most used and basic commands

Source

https://habrahabr.ru/post/204354/

Authentication

bash> redis-cli -h 127.0.0.1 -p 6379 -a mysupersecretpassword //with ip bash> redis-cli -s /tmp/redis.sock -p 6379 -a mysupersecretpassword //with socket

or

redis> AUTH mysupersecretpassword

@vanushwashere
vanushwashere / tenweb-speed-optimizer-force-caching.php
Last active November 21, 2023 09:50
Overriding DONOTCACHEPAGE constant via Wordpress Filter for 10Web Booster plugin
<?php
defined('ABSPATH') or die('YOU SHALL NOT PASS!');
/**
* Plugin Name: 10Web Booster Force Caching Drop-in
* Plugin URI: https://10web.io/page-speed-booster/
* Description: Overrides the DONOTCACHEPAGE constant to force caching.
* Author: 10Web - Website speed optimization team
* Author URI: https://10web.io/
@vanushwashere
vanushwashere / README.md
Last active April 18, 2024 03:14
Systemd unit file for supervisord service

Systemd unit file for supervisord service

  • place this config in /etc/systemd/system/supervisord.service
  • kill all supervisord processes
  • sudo systemctl daemon-reload
  • sudo systemctl enable supervisord
  • start with sudo systemctl start supervisord if already not started