To avoid permission error of loki container:
chown -R 10001:10001 /var/lib/docker/volumes/monitoring_loki_data_rules/*
chown -R 10001:10001 /var/lib/docker/volumes/monitoring_loki_data_chunks/*
body { | |
font-family: Helvetica, Arial, Tahoma,Verdana,sans-serif; | |
} | |
.tabs .tab { | |
box-shadow: 4px 6px 12px 0px rgb(50 50 50 / 20%); | |
} | |
.container { | |
background-color: #fafafa; | |
box-shadow: 4px 10px 14px 0 rgba(70, 70, 70, 0.35) !important; |
To avoid permission error of loki container:
chown -R 10001:10001 /var/lib/docker/volumes/monitoring_loki_data_rules/*
chown -R 10001:10001 /var/lib/docker/volumes/monitoring_loki_data_chunks/*
auth_enabled: false | |
target: all | |
http_prefix: "" | |
ballast_bytes: 0 | |
use_buffered_logger: true | |
use_sync_logger: true | |
common: | |
path_prefix: /loki |
function getXCsrfToken() { | |
const data = JSON.parse(document.querySelector('[data-entry="initParams"]').innerText); | |
return data.csrfToken; | |
} | |
function banRequest(userId, xCsrfToken) { | |
const data = `authors=${userId}&communities=&tags=&keywords=&period=forever&action=add_rule`; | |
const url = 'https://pikabu.ru/ajax/ignore_actions.php'; | |
var crypto = require("crypto"); | |
function encrypt(key, str) { | |
var hmac = crypto.createHmac("sha512", key); | |
var signed = hmac.update(new Buffer(str, 'utf-8')).digest("base64"); | |
return signed | |
} |
I hereby claim:
To claim this, I am signing this object:
.ui_tabs_box .ui_tab, .ui_tabs_box .ui_tab_sel, .ui_tabs_header .ui_tab, .ui_tabs_header .ui_tab_plain, .ui_tabs_header .ui_tab_sel, .ui_tabs_sub_header .ui_tab, .ui_tabs_sub_header .ui_tab_plain, .ui_tabs_sub_header .ui_tab_sel { | |
padding: 12px 3px 12px!important; | |
line-height: 14px!important; | |
height: 22px!important; | |
} | |
.ui_tabs_box .ui_tab:hover, .ui_tabs_box .ui_tab_sel, .ui_tabs_header .ui_tab:hover, .ui_tabs_header .ui_tab_sel, .ui_tabs_sub_header .ui_tab:hover, .ui_tabs_sub_header .ui_tab_sel { | |
padding-bottom: 0!important; | |
} | |
.audio_page_layout .audio_page__main_tabs_btn { | |
margin: 0!important; |
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct |
function median (values) { | |
values.sort(function (a, b) { | |
return a - b; | |
}); | |
var half = Math.floor(values.length / 2); | |
if (values.length % 2) | |
return values[half]; | |
else | |
return (values[half - 1] + values[half]) / 2.0; | |
} |
@mixin box-shadow($value) { | |
-webkit-box-shadow: $value; | |
-moz-box-shadow: $value; | |
box-shadow: $value; | |
} |